svn: /php/php-src/ branches/PHP_5_3/Zend/tests/bug54372.phpt trunk/Zend/tests/bug54372.phpt
| From: | Dmitry Stogov | Date: | Thu, 07 Apr 2011 14:34:07 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/Zend/tests/bug54372.phpt trunk/Zend/tests/bug54372.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-64801@lists.php.net to get a copy of this message | ||
dmitry Thu, 07 Apr 2011 14:34:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310010
Log:
Missed tests
Changed paths:
A php/php-src/branches/PHP_5_3/Zend/tests/bug54372.phpt
A php/php-src/trunk/Zend/tests/bug54372.phpt
Added: php/php-src/branches/PHP_5_3/Zend/tests/bug54372.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/Zend/tests/bug54372.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/Zend/tests/bug54372.phpt 2011-04-07 14:34:07 UTC (rev 310010)
@@ -0,0 +1,23 @@
+--TEST--
+Bug #54372 (Crash accessing global object itself returned from its __get() handle)
+--FILE--
+<?php
+class test_class
+{
+ public function __get($name)
+ {
+ return $this;
+ }
+
+ public function b()
+ {
+ echo "ok\n";
+ }
+}
+
+global $test3;
+$test3 = new test_class();
+$test3->a->b();
+?>
+--EXPECT--
+ok
Added: php/php-src/trunk/Zend/tests/bug54372.phpt
===================================================================
--- php/php-src/trunk/Zend/tests/bug54372.phpt (rev 0)
+++ php/php-src/trunk/Zend/tests/bug54372.phpt 2011-04-07 14:34:07 UTC (rev 310010)
@@ -0,0 +1,23 @@
+--TEST--
+Bug #54372 (Crash accessing global object itself returned from its __get() handle)
+--FILE--
+<?php
+class test_class
+{
+ public function __get($name)
+ {
+ return $this;
+ }
+
+ public function b()
+ {
+ echo "ok\n";
+ }
+}
+
+global $test3;
+$test3 = new test_class();
+$test3->a->b();
+?>
+--EXPECT--
+ok