diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2006-07-26 23:18:41 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2006-07-26 23:18:41 +0000 |
| commit | 7b409b2276606583c07274d260d5921807a9652c (patch) | |
| tree | c712cc1cf02fb72aad3fff6635299579f5bffc2c /ext/reflection/tests | |
| parent | 30f4d3f9593d3add25510901de3c5811e9a0a2a5 (diff) | |
| download | php-git-7b409b2276606583c07274d260d5921807a9652c.tar.gz | |
Improved fix for bug #38132
Diffstat (limited to 'ext/reflection/tests')
| -rwxr-xr-x | ext/reflection/tests/bug38132.phpt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ext/reflection/tests/bug38132.phpt b/ext/reflection/tests/bug38132.phpt index eaaca850d8..aeb6246b89 100755 --- a/ext/reflection/tests/bug38132.phpt +++ b/ext/reflection/tests/bug38132.phpt @@ -12,22 +12,23 @@ class foo { $class = new ReflectionClass('foo'); $properties = $class->getStaticProperties(); var_dump($properties, array_keys($properties)); -var_dump(isset($properties['*bar'])); // false -var_dump(isset($properties["\0*\0bar"])); // true - +var_dump(isset($properties['*bar'])); +var_dump(isset($properties["\0*\0bar"])); +var_dump(isset($properties["bar"])); ?> --EXPECT-- array(2) { - ["*bar"]=> + ["bar"]=> string(3) "baz" ["a"]=> string(1) "a" } array(2) { [0]=> - string(4) "*bar" + string(3) "bar" [1]=> string(1) "a" } -bool(true) bool(false) +bool(false) +bool(true) |
