From: [EMAIL PROTECTED]
Operating system: Linux debian woody
PHP version: 4.3.0RC2
PHP Bug Type: Class/Object related
Bug description: error_reporting and overload
// like everyday
error_reporting(E_ALL);
class Foo
{
function __get($var)
{
// ... some code to retrieve var
}
};
overload('Foo'); // activate overload
$f = new Foo();
echo $f->bar; // issued a NOTICE ERROR (unknown
// property)
Of course we can't declare a var $bar in Foo as
overload (for an obscure reason and unlike any other
language) only works if $bar does not exists in Foo.
Don't ask me to remove error_reporting line, i won't and
i'm sure you know why :)
ZendEngine2 has the same problem, __get, __set, __call are
just unusable. They need to be activated even if the target
property or function exists.
Thank for thinking about that, and thousands thanks if you
correct it.
--
Edit bug report at http://bugs.php.net/?id=20882&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20882&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20882&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20882&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20882&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20882&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20882&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20882&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20882&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20882&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20882&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20882&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20882&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20882&r=isapi