Commit Graph

60 Commits

Author SHA1 Message Date
Felipe Pena
1f44875c1b - Year++ 2009-01-02 20:36:30 +00:00
Scott MacVicar
b80786d066 Fix bug #45991 - UTF-8 BOM breaks ini parser 2008-12-24 13:46:59 +00:00
Arnaud Le Blanc
c0039b30be Added parse_ini_string() function (grange at lemonde dot fr, Arnaud)
[DOC] new function parse_ini_string()
      proto array parse_ini_string(string ini_string
          [, bool process_sections [, int scanner_mode]])
      Same as parse_ini_file() except that it takes a string instead of a
      filename.
2008-11-05 21:33:19 +00:00
Stanislav Malyshev
0eafa6b080 MF5: Fix BC issue with ini scanner.
# Now in "": \LETTER is literal, \" is escaped ", value ending with \" is literal
2008-09-11 00:49:18 +00:00
Arnaud Le Blanc
c9789b9eb3 Allow underscore at start of labels as underscore has no meaning here
(fixes #44842)
2008-08-17 21:51:36 +00:00
Arnaud Le Blanc
f093167ece Fixed #45384 (parse_ini_file will result in parse error with no trailing
newline)
2008-08-17 20:57:34 +00:00
Nuno Lopes
230eb4c442 MFB: fix crash 2008-08-07 12:23:54 +00:00
Scott MacVicar
c69476dbb5 MFB: Fixed bug #44609 (Dollar in ini variables are not parsed correctly) 2008-04-07 11:50:00 +00:00
Nuno Lopes
099d515279 MFB: add sanity check for ZEND_MMAP_AHEAD 2008-04-04 15:13:32 +00:00
Scott MacVicar
e55a0de496 MFB 5.3: Rewrite scanner to be based on re2c instead of flex
There are still changes in regards to parsing of Unicode encoded scripts to come.
2008-03-26 14:23:02 +00:00
Jani Taskinen
71e3d357ef - Fixed bugs #43915, #43923 and #44019, a tiny performance issue fixed too 2008-02-04 20:45:16 +00:00
Jani Taskinen
9ac0e1e130 - Use non-unicode input method (other one crashes for some reason in ZTS mode) 2007-10-02 16:52:53 +00:00
Jani Taskinen
f964370a35 - Added ".htaccess" style user-defined php.ini files support for
CGI/FastCGI.
- Added support for special [PATH=/opt/httpd/www.example.com/] sections
  in php.ini. All directives set in these sections will not be able to be
  overridden in user-defined ini-files or during runtime in the specified
  path.

- Improved php.ini handling:
  . Added better error reporting for syntax errors in php.ini files
  . Allowed "ini-variables" to be used almost everywhere ini php.ini files
  . Allowed using alphanumeric/variable indexes in "array" ini options
  . Fixed get_cfg_var() to be able to return "array" ini options

- Fixed bug #27372 (parse error loading browscap.ini at apache startup)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
  characters)

@DOC Pierre promised to handle the manual part of this :D
2007-09-28 02:04:28 +00:00
Jani Taskinen
ea5a211256 - Fixed bug #42071 (ini scanner allows NULL to be used as option name)
# Also fixed a warning
2007-07-23 15:57:08 +00:00
Dmitry Stogov
b424a32610 Preparation for portable string API (use macroses to access zval). 2006-02-20 19:03:43 +00:00
Dmitry Stogov
09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +00:00
Ilia Alshanetsky
b0b79b138d MFB51: Fixed bug #36046 (parse_ini_file() miscounts lines in multi-line
values).
2006-01-17 19:56:41 +00:00
Andi Gutmans
5de7cc3194 - Update copyright notices to 2006 2006-01-04 23:54:12 +00:00
Andrei Zmievski
b80cb7bd2f Unicode support 2005-08-11 23:35:03 +00:00
foobar
916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
Zeev Suraski
17537ac500 Correct fix for #28804 2005-02-06 23:51:59 +00:00
foobar
77ee4950dd - Fixed bug #28804 (ini-file section parsing pattern is buggy). 2005-02-03 03:01:56 +00:00
foobar
91962aafad ws fix 2005-02-03 02:58:21 +00:00
foobar
4cf9d27072 - Fixed bug #28930 (PHP sources pick wrong header files generated by bison) 2004-12-30 15:18:24 +00:00
Andrei Zmievski
fe5c131a0d Re-add my patch for .ini variable access. 2004-08-18 16:58:20 +00:00
Andrei Zmievski
427561446f Revert the .ini vars patch. Will have to try again next Christmas
apparently.
2004-05-17 20:09:37 +00:00
Andrei Zmievski
e97f733515 Adding ability to refer to existing .ini variables from within .ini
files. Example:

open_basedir = ${open_basedir} ":/new/dir"
2004-05-14 20:58:15 +00:00
Andi Gutmans
6b87194bd9 - - A belated happy holidays (by two years) 2004-01-08 08:23:23 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Rasmus Lerdorf
0b5ffc4f1c MFB: We know ini file scanning will never be interactive, so speed it up a
bit.  Need a dynamic check for the language scanner.
2003-02-27 00:11:43 +00:00
Wez Furlong
e52aac940f Implement simple stream support in the ZE scanners. 2003-02-18 09:37:54 +00:00
Ilia Alshanetsky
616578d1d1 Added feature #19645 (ini parser can now handle quoted multi-line values). 2003-02-15 22:06:45 +00:00
Sebastian Bergmann
729e470ced Fix build. 2003-02-01 07:32:09 +00:00
foobar
333406bdc2 - Added some missing CVS $Id$ tags, headers and footers. 2003-02-01 01:49:15 +00:00
Harald Radi
697398e18e ini patch to allow 'entry[] = value' entries 2003-01-19 12:01:38 +00:00
Ilia Alshanetsky
fac8eaff1a MFZE1 2002-10-14 23:41:32 +00:00
Derick Rethans
733ebde160 - Fix for bug #17462 (Patch by Edin Kadribasic) 2002-06-04 21:58:05 +00:00
Andi Gutmans
1f2f2571e4 - MFZE1 2002-01-13 17:51:18 +00:00
Sebastian Bergmann
62dc854bb0 Happy New Year. 2002-01-06 15:21:36 +00:00
Sebastian Bergmann
d863d52a5d Update headers. 2001-12-11 15:16:21 +00:00
Zeev Suraski
17352812a3 MFZE1 2001-09-22 00:09:24 +00:00
Zeev Suraski
483fc4c73a MFZE1 2001-09-19 22:34:11 +00:00
Zeev Suraski
9f61e47c24 MFZE1 (nuke cplusplus code) 2001-09-10 00:08:24 +00:00
Zeev Suraski
77c52275a1 MFZE1 2001-08-16 20:38:56 +00:00
Zeev Suraski
4f6c95d17a Whitespace 2001-08-11 15:56:40 +00:00
Zeev Suraski
609d58a4d6 Merge from branch - move to standard C scanners in thread safe mode 2001-08-06 13:48:51 +00:00
Zeev Suraski
0b7fdbb690 More TSRMLS_FETCH work 2001-07-31 06:07:25 +00:00
Zeev Suraski
8ce8324e59 More TSRMLS_FETCH annihilation 2001-07-30 04:54:16 +00:00
Zeev Suraski
b4f3b9d3ce Redesigned thread safety mechanism - nua nua 2001-07-28 10:51:54 +00:00
Andi Gutmans
5aec595716 - Support \r as newline in the ini scanner 2001-05-02 21:52:30 +00:00