diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-02-14 09:46:16 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-02-14 09:46:16 +0000 |
| commit | c65d61a301db232f6f656300370707c0cb51d2b2 (patch) | |
| tree | 57f9c659ece64f75909605d36562492bcc352304 | |
| parent | 1a170a3de2b64fb4ec76054040798cadc4383eaf (diff) | |
| download | php-git-c65d61a301db232f6f656300370707c0cb51d2b2.tar.gz | |
add test for bug #36337
| -rw-r--r-- | ext/reflection/tests/bug36337.phpt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/reflection/tests/bug36337.phpt b/ext/reflection/tests/bug36337.phpt new file mode 100644 index 0000000000..f4d78f9901 --- /dev/null +++ b/ext/reflection/tests/bug36337.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #36337 (ReflectionProperty fails to return correct visibility) +--FILE-- +<?php + +abstract class enum { + protected $_values; + + public function __construct() { + $property = new ReflectionProperty(get_class($this),'_values'); + var_dump($property->isProtected()); + } + +} + +final class myEnum extends enum { + public $_values = array( + 0 => 'No value', + ); +} + +$x = new myEnum(); + +echo "Done\n"; +?> +--EXPECT-- +bool(false) +Done |
