Quoting Marcus Boerger <[EMAIL PROTECTED]>:

  actually it was a bug. We, sorry I, did not spot this in earlier versions.
Now saying you rely on a bug in PHP 5 to be able to execute PHP 4 code
simply does not work.

The bug is that with callbacks in PHP 5.3+, E_STRICT is enforced even when E_STRICT is turned off. See bug #43231 (I've been unable to use PHP 5.3 since November because of this):

http://bugs.php.net/bug.php?id=43231

This works fine:

class foo {
  function bar() {
    echo 'hi';
  }
}

foo::bar();

This throws a warning:

call_user_func(array('foo', 'bar'));


Both should certainly be E_STRICT errors. The 2nd one should not throw a warning if E_STRICT is off, though.

-chuck

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to