com php-src: made failing test more meaningful: Zend/tests/bug69551.phpt

From: Date: Wed, 10 Jun 2015 08:39:36 +0000
Subject: com php-src: made failing test more meaningful: Zend/tests/bug69551.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87161@lists.php.net to get a copy of this message
Commit: 2ba9681e8efaeddb96a0e2e7d43c50df363d8723 Author: Christoph M. Becker <cmbecker69@gmx.de> Thu, 4 Jun 2015 02:25:43 +0200 Committer: Anatol Belski <ab@php.net> Wed, 10 Jun 2015 10:39:36 +0200 Parents: 616b932ab0e45a5bcb3c6209fc0ab8bc369cf0cb Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2ba9681e8efaeddb96a0e2e7d43c50df363d8723 Log: made failing test more meaningful Changed paths: M Zend/tests/bug69551.phpt Diff: diff --git a/Zend/tests/bug69551.phpt b/Zend/tests/bug69551.phpt index 0b391e7..096852a 100644 --- a/Zend/tests/bug69551.phpt +++ b/Zend/tests/bug69551.phpt @@ -2,10 +2,15 @@ Bug #69551 - parse_ini_file() and parse_ini_string() segmentation fault --FILE-- <?php -$ini = '[Network.eth0] -SubnetMask = "' . "\x0A\x1B" . '"'; -parse_ini_string($ini, false, INI_SCANNER_RAW); -echo 'Ready'; // do we reach this line? +$ini = <<<INI +[Network.eth0] +SubnetMask = " +" +INI; +$settings = parse_ini_string($ini, false, INI_SCANNER_RAW); +var_dump($settings); ?> ---EXPECT-- -Ready +--EXPECTF-- +Warning: syntax error, unexpected '"' in Unknown on line %d + in %s on line %d +bool(false)

« previous php.cvs (#87161) next »