diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-09-19 20:33:12 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-09-19 20:33:12 +0000 |
commit | 7d14dad02ea58db34594e91f759424c51071c5a8 (patch) | |
tree | 95a32d750a5c9b0e626bfbe4d02ebd5f4609a53b /Zend/zend_ini_scanner.l | |
parent | 2332e4f9fc134b2ddec3779bcaf1ea237631b7c2 (diff) | |
download | php-git-7d14dad02ea58db34594e91f759424c51071c5a8.tar.gz |
MFH: Fixed mess with CGI/CLI -d command line option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests).
Diffstat (limited to 'Zend/zend_ini_scanner.l')
-rw-r--r-- | Zend/zend_ini_scanner.l | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/zend_ini_scanner.l b/Zend/zend_ini_scanner.l index 2495c60360..e2740261d6 100644 --- a/Zend/zend_ini_scanner.l +++ b/Zend/zend_ini_scanner.l @@ -83,6 +83,17 @@ int zend_ini_open_file_for_scanning(zend_file_handle *fh TSRMLS_DC) } +int zend_ini_prepare_string_for_scanning(char *str TSRMLS_DC) +{ + int len = strlen(str); + + yyin = NULL; + yy_scan_buffer(str, len + 2 TSRMLS_CC); + ini_filename = NULL; + return SUCCESS; +} + + void zend_ini_close_file(zend_file_handle *fh TSRMLS_DC) { zend_stream_close(fh); |