cvs: php-src /ext/reflection/tests bug36337.phpt

From: Date: Tue, 14 Feb 2006 09:46:45 +0000
Subject: cvs: php-src /ext/reflection/tests bug36337.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36874@lists.php.net to get a copy of this message
tony2001 Tue Feb 14 09:46:45 2006 UTC Modified files: /php-src/ext/reflection/tests bug36337.phpt Log: add test for bug #36337 http://cvs.php.net/viewcvs.cgi/php-src/ext/reflection/tests/bug36337.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/reflection/tests/bug36337.phpt diff -u /dev/null php-src/ext/reflection/tests/bug36337.phpt:1.2 --- /dev/null Tue Feb 14 09:46:45 2006 +++ php-src/ext/reflection/tests/bug36337.phpt Tue Feb 14 09:46:45 2006 @@ -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

« previous php.cvs (#36874) next »