com php-src: Add test for recursive __debugInfo(): Zend/tests/recursive_debug_info.phpt

From: Date: Wed, 15 Apr 2015 20:38:50 +0000
Subject: com php-src: Add test for recursive __debugInfo(): Zend/tests/recursive_debug_info.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86321@lists.php.net to get a copy of this message
Commit: 5c214fc10ddc640549b0a703a4bf9a8f38f2d8a2 Author: Nikita Popov <nikic@php.net> Wed, 15 Apr 2015 22:32:19 +0200 Parents: 7c2fbdf58ddc495917beba2b757bff76ddf305bc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5c214fc10ddc640549b0a703a4bf9a8f38f2d8a2 Log: Add test for recursive __debugInfo() This also got fixed by switching to object apply count. Changed paths: A Zend/tests/recursive_debug_info.phpt Diff: diff --git a/Zend/tests/recursive_debug_info.phpt b/Zend/tests/recursive_debug_info.phpt new file mode 100644 index 0000000..6667650 --- /dev/null +++ b/Zend/tests/recursive_debug_info.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test recursive __debugInfo() method +--FILE-- +<?php + +class Test { + public function __debugInfo() { + return [$this]; + } +} + +var_dump(new Test); + +?> +--EXPECT-- +object(Test)#1 (1) { + [0]=> + *RECURSION* +}

« previous php.cvs (#86321) next »