mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
15 lines
259 B
PHP
15 lines
259 B
PHP
--TEST--
|
|
GH-22658: ReflectionConstant with a string value with a null byte
|
|
--FILE--
|
|
<?php
|
|
|
|
define('DEMO', "f\0oo");
|
|
$r = new ReflectionConstant('DEMO');
|
|
echo $r;
|
|
var_dump( $r->getValue() );
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Constant [ string DEMO ] { f%0oo }
|
|
string(4) "f%0oo"
|