com php-src: Update test script to make sure the error occurred: Zend/tests/bug64578.phpt
| From: | Xinchen Hui | Date: | Thu, 04 Apr 2013 06:55:17 +0000 |
| Subject: | com php-src: Update test script to make sure the error occurred: Zend/tests/bug64578.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71856@lists.php.net to get a copy of this message | ||
Commit: 4f2acd8cded99c12a9ff6ca3693978562267b6d9
Author: Xinchen Hui <laruence@php.net> Thu, 4 Apr 2013 14:55:17 +0800
Parents: 846d298f9bda138ccfe47cbcec6596390a5b293a
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4f2acd8cded99c12a9ff6ca3693978562267b6d9
Log:
Update test script to make sure the error occurred
Changed paths:
M Zend/tests/bug64578.phpt
Diff:
diff --git a/Zend/tests/bug64578.phpt b/Zend/tests/bug64578.phpt
index 73b3ec4..6cb5392 100644
--- a/Zend/tests/bug64578.phpt
+++ b/Zend/tests/bug64578.phpt
@@ -3,11 +3,12 @@ Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault)
--FILE--
<?php
-set_error_handler(function() { debug_backtrace(); });
+set_error_handler(function($no, $err) { var_dump($err); });
function x($s) { $s['a'] = 1; };
$y = '1';
x($y);
print_r($y);
--EXPECTF--
+string(25) "Illegal string offset 'a'"
1