mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
1a3bdb4a2c
run-tests.php enforces error_reporting=E_ALL (including E_STRICT), setting this explicitly in not necessary. Conversely, after the removal of some E_STRICT errors, explicitly excluding it is no longer necessary in some places.
18 lines
351 B
PHP
18 lines
351 B
PHP
--TEST--
|
|
Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
function hello() {
|
|
echo "Hello World\n";
|
|
}
|
|
}
|
|
$y[0] = 'hello';
|
|
A::{$y[0]}();
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Deprecated: Non-static method A::hello() should not be called statically in %s on line %d
|
|
Hello World
|
|
===DONE===
|