diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/json/tests/003.phpt | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/json/tests/003.phpt')
-rw-r--r-- | ext/json/tests/003.phpt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ext/json/tests/003.phpt b/ext/json/tests/003.phpt deleted file mode 100644 index f10baa9d12..0000000000 --- a/ext/json/tests/003.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -json_encode() & endless loop - 1 ---SKIPIF-- -<?php if (!extension_loaded("json")) print "skip"; ?> ---FILE-- -<?php - -$a = array(); -$a[] = &$a; - -var_dump($a); -var_dump(json_encode($a)); - -/* Break circular data structure to prevent memory leaks */ -unset($a[0]); - -echo "Done\n"; -?> ---EXPECTF-- -array(1) { - [0]=> - &array(1) { - [0]=> - &array(1) { - [0]=> - *RECURSION* - } - } -} - -Warning: json_encode(): recursion detected in %s on line %d -string(8) "[[null]]" -Done |