mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
8d00385871
Per RFC https://wiki.php.net/rfc/reclassify_e_strict While reviewing this, found that there are still three E_STRICTs left in libraries - need to discuss those.
19 lines
352 B
PHP
19 lines
352 B
PHP
--TEST--
|
|
Calling non-static method with call_user_func()
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
public function teste() {
|
|
$this->a = 1;
|
|
}
|
|
}
|
|
|
|
call_user_func(array('foo', 'teste'));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: %son-static method foo::teste() should not be called statically in %s on line %d
|
|
|
|
Fatal error: Using $this when not in object context in %s on line %d
|