mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
19 lines
356 B
PHP
19 lines
356 B
PHP
--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
|
|
|