Commit Graph

196 Commits

Author SHA1 Message Date
Antony Dovgal
b2b4b308b1 initialize variable and fix WS 2008-08-20 13:46:29 +00:00
Felipe Pena
2985b4f9e3 - Removed some TSRMLS_FETCH()s 2008-08-15 19:45:25 +00:00
Dmitry Stogov
bb15ca0a56 Fixed bug #45779 (regression with shebang lines processing) 2008-08-13 06:17:15 +00:00
Marcus Boerger
e37b9e7b6d - Fix warning 2008-08-12 09:39:39 +00:00
Felipe Pena
7da7c81320 - Fixed BC break: The magic constants must be case-insensitive. 2008-07-30 01:24:00 +00:00
Moriyoshi Koizumi
210a5353d0 - Another portion to merge. 2008-07-28 06:09:24 +00:00
Moriyoshi Koizumi
dea723c1fb - Sync function signature with the 5.3 branch 2008-07-28 06:07:19 +00:00
Dmitry Stogov
ef5f3cfdf2 . Added support for using static HEREDOCs to initialize static variables and class members or constants. (Matt)
. Improved syntax highlighting and consistency for variables in double-quoted strings and literal text in HEREDOCs and backticks. (Matt)
. Optimized interpolated strings to use one less opcode. (Matt)
2008-07-26 15:31:38 +00:00
Nuno Lopes
6c844a9d1c MFB: fix remaining # comments issues 2008-07-08 15:24:25 +00:00
Nuno Lopes
96258d4a76 MFB 2008-07-06 16:42:10 +00:00
Matt Wilmas
6c13101979 MFB: Fixed yyleng calculation after the yyless change 2008-06-09 10:20:30 +00:00
Nuno Lopes
1c5df1565f backport the yyless patch from 5.3 branch. it seems I forgot to commit this..
# you'll probably need re2c 0.13.5 or newer to regenerate this file
# Matt: please advise if there's still somrthing pending (i.e. was the heredoc/nowdoc patch MFB already?
2008-06-06 17:34:43 +00:00
Matt Wilmas
ff34ca0b93 Restore end check for "escape" strings (not needed for single-quoted strings as they can't have an unescaped backslash at the end) 2008-05-10 09:15:17 +00:00
Matt Wilmas
6ed07458e1 Fix loss of backslash at end of heredoc; For bug #44830 (Very minor issue with backslash in heredoc) 2008-05-09 10:25:42 +00:00
Scott MacVicar
a000866c43 MFB: Fixes to heredoc and cleanup of new re2c scanner. (Patch by Matt Wilmas) 2008-04-09 21:07:45 +00:00
Felipe Pena
cdf42e7638 MFB:
- Allow HEREDOC syntax with double quotes [DOC]
(http://wiki.php.net/rfc/heredoc-with-double-quotes)
2008-04-05 23:13:21 +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
Dmitry Stogov
87a8f72f49 Added NOWDOC 2008-02-12 09:28:30 +00:00
Stanislav Malyshev
c38d56e371 MFB __DIR_ constant support 2008-02-12 01:02:06 +00:00
Dmitry Stogov
306369985b Fixed compilation warnings 2008-01-24 18:08:06 +00:00
Dmitry Stogov
27d1e925e2 Changed exception handling. Now each op_array doesn't contain ZEND_HANDLE_EXCEPTION opcode in the end 2008-01-21 19:41:41 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
e860d95d24 T_IMPORT -> T_USE 2007-11-06 07:29:41 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Antony Dovgal
c53602571d remove \u, \U and \C support in single quotes, as they are meant to contain binary data only and no escape sequences except \'
fixes bug #42746
2007-10-03 18:38:35 +00:00
Antony Dovgal
90e7e2cf85 use macros 2007-09-09 22:49:31 +00:00
Antony Dovgal
ff77b89984 unicode part of \v and \t patch 2007-09-09 22:41:38 +00:00
Ilia Alshanetsky
c1ceea1e94 MFB: Fixed bug #42590 (Make the engine recornize \v and \f escape sequences) 2007-09-09 16:34:47 +00:00
Dmitry Stogov
1f413bbc37 Namespaces 2007-07-12 09:23:48 +00:00
Dmitry Stogov
89a13e70fe Impoved error reporting on parser errors (Matt, Dmitry) 2007-05-24 08:56:50 +00:00
Dmitry Stogov
5dc51fecf8 Improved compilation of heredocs and interpolated strings. (Matt) 2007-05-18 13:12:47 +00:00
Antony Dovgal
66be352817 fix #41118 (PHP does not handle overflow of octal integers)
MFB a small part of optimization patch applied only to 5_2
2007-04-19 11:24:48 +00:00
Dmitry Stogov
cb5ae2b82c Fixed bug #40236 (php -a function allocation eats memory) 2007-02-15 10:42:52 +00:00
Ilia Alshanetsky
ce8285d289 Copyright update 2007-01-29 04:40:46 +00:00
Andrei Zmievski
1c68a4cff7 Fix 'b' prefix in highlighting and tokenizer. (Matt W) 2007-01-09 17:39:59 +00:00
Antony Dovgal
7d4abedf5a nullify opened_path and filename (when required)
fixes invalid reads with `php-cli -F <script>`
2006-11-23 22:04:32 +00:00
Andrei Zmievski
75c272440e Turn doc comments into zstr strings with corresponding adjustments. 2006-10-27 21:22:05 +00:00
Andrei Zmievski
81b83f327b More work on Unicode support in PCRE. When UG(unicode) is on, all
strings passed to PCRE have to be IS_UNICODE or IS_STRING in UTF-8
encoding. Failure to do so will result in unpredictable results.
2006-09-18 17:59:10 +00:00
Antony Dovgal
f5715ee86f implement zend_unicode_to_string() and zend_string_to_unicode()
part #1 (of 2)
2006-08-08 16:58:06 +00:00
Andrei Zmievski
0667864631 Callable checks and class fetching and lookup should support identifer
normalization now. (Marcus, Andrei)
2006-07-18 17:52:45 +00:00
Andrei Zmievski
8eb6c59e10 Be more explicit. 2006-06-12 17:06:39 +00:00
Andrei Zmievski
f1a98a1d52 Adjust API for scanning INI files as UTF-8. 2006-05-11 18:22:09 +00:00
Andrei Zmievski
88b15b79a2 Don't use fixed size buffer in zend_uchar_from_uname(); 2006-05-04 21:44:54 +00:00
Dmitry Stogov
a2a69a3ba2 Fixed bug #36513 (comment will be outputed in last line) 2006-04-13 13:48:40 +00:00
Andrei Zmievski
a27b78c2d2 Add (binary) cast operator. 2006-03-23 21:54:00 +00:00
Dmitry Stogov
b7933917f6 "jump" -> "goto" 2006-03-14 11:20:19 +00:00
Dmitry Stogov
f8576f84dc Implemented "jump label" operator (limited "goto") 2006-03-10 08:29:43 +00:00
Dmitry Stogov
e3b7f3fd0d Unicode support: MS Visual C compatibility 2006-02-26 11:57:14 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00