summaryrefslogtreecommitdiff
path: root/Zend/zend_ini_scanner.l
Commit message (Collapse)AuthorAgeFilesLines
* Change Zend Stream API to use zend_string* instead of char*.Dmitry Stogov2021-03-161-4/+3
| | | | | This allows to eliminate re-calculation of string lenght and hash value. See the detailed list of changes in UPGRADING.INTERNALS.
* Improve type declarations for Zend APIsGeorge Peter Banyard2020-08-281-4/+4
| | | | | | | | | Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
* Implement 'Saner Numeric Strings' RFC:George Peter Banyard2020-07-291-1/+1
| | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/saner-numeric-strings This removes the -1 allow_error mode from is_numeric_string functions and replaces it by a trailing boolean out argument to preserve BC in a couple of places. Most of the changes can be resumed to "numeric" strings which emitted a E_NOTICE now emit a E_WARNING and "numeric" strings which emitted a E_WARNING now throw a TypeError. This mostly affects: - String offsets - Arithmetic operations - Bitwise operations Closes GH-5762
* Remove proto comments from C filesMax Semenik2020-07-061-14/+7
| | | | Closes GH-5758
* Fixed bug #79244 (php crashes during parsing INI file). (Laruence)Xinchen Hui2020-02-101-7/+8
| | | | | | | | | | | Cherry-picked the fix(not sure why this wasn't merged to 7.4) for: Fixed bug #77589 (Core dump using parse_ini_string with numeric sections) Section name should not be typed(NULL, FALSE, TRUE etc) Conflicts: Zend/zend_ini_scanner.c
* Revert "Rename *.l files to *.re"Joe Watkins2019-05-201-0/+661
| | | | This reverts commit 969047749d33bb88a0573aa91a57e2070335111a.
* Rename *.l files to *.rePeter Kokot2019-05-171-661/+0
| | | | | This syncs PHP lexer files to all use *.re extension. The *.re files are processed with the RE2C tool.
* Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.Dmitry Stogov2019-03-141-0/+1
|
* Adios, yearly copyright rangesZeev Suraski2019-01-301-1/+1
|
* Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-1/+1
|
* Merge branch 'PHP-7.2' into PHP-7.3Pierrick Charron2018-10-091-9/+16
|\
| * Fixed bug #76965 INI_SCANNER_RAW doesn't strip trailing whitespacePierrick Charron2018-10-091-9/+16
| |
| * year++Xinchen Hui2018-01-021-1/+1
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|/
* Fix stack management in ini scannerNikita Popov2016-12-161-5/+5
|
* Fixed memory leaks in parse_ini_file()Dmitry Stogov2016-11-181-1/+3
|
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-10-201-2/+2
|\ | | | | | | | | Conflicts: Zend/zend_ini_scanner.c
| * Fixed bug #70748 (Segfault in ini_lex () at Zend/zend_ini_scanner.l)Xinchen Hui2015-10-201-2/+2
| |
* | Mark parse error functions as coldDmitry Stogov2015-08-261-2/+2
| |
* | Merge branch 'PHP-5.6'Anatol Belski2015-06-101-1/+1
|\ \ | |/ | | | | | | | | | | | | | | * PHP-5.6: updated NEWS updated NEWS fixed bug, where a linebreak immediately after an opening quote of a value caused a segfault made failing test more meaningful added failing test
| * Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-06-101-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: updated NEWS fixed bug, where a linebreak immediately after an opening quote of a value caused a segfault made failing test more meaningful added failing test
| | * fixed bug, where a linebreak immediately after an opening quote of a value ↵Christoph M. Becker2015-06-101-1/+1
| | | | | | | | | | | | caused a segfault
| | * Bump yearXinchen Hui2015-01-151-1/+1
| | |
| | * Bump yearXinchen Hui2014-01-031-1/+1
| | |
| * | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Fixed bug #68805 (Double define)Xinchen Hui2015-01-171-0/+4
| | |
* | | Remove for #-style comments in ini filesNikita Popov2015-01-171-7/+0
| | |
* | | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | trailing whitespace removalStanislav Malyshev2015-01-101-4/+4
| | |
* | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-28/+28
| | |
* | | fix datatype mismatch warningsAnatol Belski2014-10-291-2/+2
| | |
* | | Fixed 'long' -> 'zend_long' for call to 'is_numeric_string_ex()'Tjerk Meesters2014-09-011-1/+1
| | |
* | | Merge branch 'PHP-5.6'Tjerk Meesters2014-09-011-5/+56
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Updated UPGRADING for #38409 Updated NEWS for #38409 Added test case Making ini parser typed - Added ZEND_INI_SCANNER_TYPED mode for parse_ini_string() and parse_ini_file() - Added NULL_NULL token to separate it from BOOL_FALSE and BOOL_TRUE - Added zend_ini_copy_typed_value() function for zval initialisation - Updated RETURN_TOKEN() to observe scanner_mode Conflicts: Zend/zend_ini_parser.y Zend/zend_ini_scanner.c
| * | Making ini parser typedTjerk Meesters2014-09-011-5/+56
| | | | | | | | | | | | | | | | | | | | | - Added ZEND_INI_SCANNER_TYPED mode for parse_ini_string() and parse_ini_file() - Added NULL_NULL token to separate it from BOOL_FALSE and BOOL_TRUE - Added zend_ini_copy_typed_value() function for zval initialisation - Updated RETURN_TOKEN() to observe scanner_mode
* | | Fix compiler warningsNikita Popov2014-08-251-1/+1
| | |
* | | master renames phase 1Anatol Belski2014-08-251-3/+3
| | |
* | | first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-2/+2
| | |
* | | zend_stack_top() now returns pointer directlyNikita Popov2014-05-011-2/+1
| | |
* | | Don't allocate zend_stack elements individuallyNikita Popov2014-05-011-2/+2
| | | | | | | | | | | | | | | Instead allocate a vector of elements. Size must now be specified on initialization rather than on push.
* | | Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), ↵Dmitry Stogov2014-04-031-1/+1
| | | | | | | | | | | | candidate for GC, etc)
* | | Use better data structures (incomplete)Dmitry Stogov2014-02-101-5/+3
|/ /
* | Bump yearXinchen Hui2014-01-031-1/+1
|/
* Added XOR support for expressions in INI parserDejan Marjanovic2013-03-271-4/+4
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* Fixed bug #63512 parse_ini_file() with INI_SCANNER_RAW removes quotes from valuePierrick Charron2012-11-161-18/+25
| | | | Restore the old behavior but keep bug 51094 fixed
* Fixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that ↵Pierrick Charron2012-06-071-6/+27
| | | | | | | includes a semi-colon) Modify the scanner to check if the first char of the raw data is an opening " in which case we need to find the closing one. Otherwise just search for the next end of value char [\r\n;\000]