mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
149029b9d6
This was missing entirely for the internal function case.
14 lines
238 B
PHP
14 lines
238 B
PHP
--TEST--
|
|
Testing __toString() declaration with wrong modifier
|
|
--FILE--
|
|
<?php
|
|
|
|
class a {
|
|
static protected function __toString($a, $b) {
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Method a::__toString() cannot take arguments in %s on line %d
|