svn: /pecl/hidef/trunk/ hidef.c tests/hidef_001.phpt tests/hidef_test.ini
| From: | Gopal Vijayaraghavan | Date: | Thu, 22 Dec 2011 13:11:56 +0000 |
| Subject: | svn: /pecl/hidef/trunk/ hidef.c tests/hidef_001.phpt tests/hidef_test.ini | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-17407@lists.php.net to get a copy of this message | ||
gopalv Thu, 22 Dec 2011 13:11:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321331
Log:
ensure semicolons are not parsed in RAW mode
Changed paths:
U pecl/hidef/trunk/hidef.c
U pecl/hidef/trunk/tests/hidef_001.phpt
U pecl/hidef/trunk/tests/hidef_test.ini
Modified: pecl/hidef/trunk/hidef.c
===================================================================
--- pecl/hidef/trunk/hidef.c 2011-12-22 13:11:46 UTC (rev 321330)
+++ pecl/hidef/trunk/hidef.c 2011-12-22 13:11:56 UTC (rev 321331)
@@ -475,7 +475,7 @@
ctxt->filename = ini_file;
fh.type = ZEND_HANDLE_FP;
#ifdef ZEND_ENGINE_2_3
- zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_RAW, (zend_ini_parser_cb_t)
hidef_ini_parser_cb, ctxt TSRMLS_CC);
+ zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_NORMAL, (zend_ini_parser_cb_t)
hidef_ini_parser_cb, ctxt TSRMLS_CC);
#else
zend_parse_ini_file(&fh, 1, hidef_ini_parser_cb, ctxt);
#endif
Modified: pecl/hidef/trunk/tests/hidef_001.phpt
===================================================================
--- pecl/hidef/trunk/tests/hidef_001.phpt 2011-12-22 13:11:46 UTC (rev 321330)
+++ pecl/hidef/trunk/tests/hidef_001.phpt 2011-12-22 13:11:56 UTC (rev 321331)
@@ -12,6 +12,8 @@
echo "PIE=".PIE."\n";
echo "ART=".ART."\n";
echo "bleh=".bleh."\n";
+echo "simplified=".simplified."\n";
+echo "unescaped=".unescaped."\n";
?>
===DONE===
<?php exit(0); ?>
@@ -21,4 +23,6 @@
PIE=3.1419
ART=1
bleh=<><<MLM<>>
+simplified=We're all really strings; Even if we're punctuated.
+unescaped=will this always work, I dont know.
===DONE===
Modified: pecl/hidef/trunk/tests/hidef_test.ini
===================================================================
--- pecl/hidef/trunk/tests/hidef_test.ini 2011-12-22 13:11:46 UTC (rev 321330)
+++ pecl/hidef/trunk/tests/hidef_test.ini 2011-12-22 13:11:56 UTC (rev 321331)
@@ -3,3 +3,5 @@
float PIE = 3.1419
bool ART = true
str bleh = "<><<MLM<>>"
+simplified="We're all really strings; Even if we're punctuated."
+unescaped=will this always work, I dont know.