mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
fbe30592d6
From now on, we always display the given object's type instead of just reporting "object". Additionally, make the format of return type errors match the format of argument errors. Closes GH-5625
20 lines
390 B
PHP
20 lines
390 B
PHP
--TEST--
|
|
Bug #54305 (Crash in gc_remove_zval_from_buffer)
|
|
--FILE--
|
|
<?php
|
|
class TestClass {
|
|
public function methodWithArgs($a, $b) {
|
|
}
|
|
}
|
|
abstract class AbstractClass {
|
|
}
|
|
$methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs');
|
|
try {
|
|
echo $methodWithArgs++;
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Cannot increment ReflectionMethod
|