Package for lexical scoping

Has there been any solution to PHP's lack of lexical scoping ( a PEAR module for example )? The only thing I've been able to find on debugging my variables is setting error_reporting to E_ALL. Is there any way to make error_reporting die on an undefined variable, rather than just simply outputting an error to the screen? Thanks...

Comments

  • : Has there been any solution to PHP's lack of lexical scoping ( a
    : PEAR module for example )?
    My preferred solution is to use Perl instead. ;-) But I think something like scoping is a fairly deep language thing, so I would be very surprised to see it as a module. The only thing I can run across on it at all is about a patch that I'm not sure has been accepted AND only introduces it in very, very limited cases:
    http://www.sitepoint.com/blogs/2007/12/23/lexical-scope-to-appear-in-php/

    : The only thing I've been able to find on
    : debugging my variables is setting error_reporting to E_ALL. Is
    : there any way to make error_reporting die on an undefined variable,
    : rather than just simply outputting an error to the screen? Thanks...
    Maybe these will help:
    http://es2.php.net/manual/en/function.set-error-handler.php
    http://es2.php.net/manual/en/function.error-reporting.php

    Jonathan
    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion