mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
19 lines
356 B
Plaintext
19 lines
356 B
Plaintext
|
--TEST--
|
||
|
ReflectionObject::getConstants() - invalid params
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class X {
|
||
|
}
|
||
|
|
||
|
$rc = new ReflectionObject(new X);
|
||
|
|
||
|
$rc->getConstants('X');
|
||
|
$rc->getConstants(true);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 7
|
||
|
|
||
|
Warning: Wrong parameter count for ReflectionClass::getConstants() in %s on line 8
|
||
|
|