#47136 [NEW]: namespace reserved set_error|exception_handler

From: Date: Sat, 17 Jan 2009 12:40:56 +0000
Subject: #47136 [NEW]: namespace reserved set_error|exception_handler
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132959@lists.php.net to get a copy of this message
From: info at netmosfera dot it Operating system: irrelevant PHP version: 5.3.0alpha3 PHP Bug Type: Feature/Change Request Bug description: namespace reserved set_error|exception_handler Description: ------------ hello is possibile to define errors/exceptions handlers reserved to namespaces? because argument 2 is optional maybe it is hard to write set_error_handler("debug", E_ALL, __NAMESPACE__); so: // for functions: set_error_handler(array("", "debug", __NAMESPACE__)); // for classes (static way): set_error_handler(array("myclass", "debug", __NAMESPACE__)); // for objects: set_error_handler(array($this, "debug", __NAMESPACE__)); thank you -- Edit bug report at http://bugs.php.net/?id=47136&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47136&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47136&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47136&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47136&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47136&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47136&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47136&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47136&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47136&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47136&r=support Expected behavior: http://bugs.php.net/fix.php?id=47136&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47136&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47136&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47136&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47136&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47136&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47136&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47136&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47136&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47136&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47136&r=mysqlcfg

« previous php.bugs (#132959) next »