Andi Gutmans [Sun, 6 Jun 1999 17:35:42 +0000 (17:35 +0000)]
Work around a compiler bug - mark variables that are sent to functions that aren't yet
defined as FETCH_W (because they might end up being sent by reference)
Andrey Hristov [Sat, 5 Jun 1999 20:43:36 +0000 (20:43 +0000)]
Added push(), pop(), shift(), unshift(), splice(), and slice() array functions.
The first 5 work like their Perl counterparts. slice() returns a chunk of the array
specified by offset and length arguments.
Zeev Suraski [Fri, 4 Jun 1999 12:22:19 +0000 (12:22 +0000)]
Fix that GLOBALS leak. We were explicitly adding GLOBALS to the main symbol table,
but there's no reason to do it (INIT_GLOBALS takes care of it if necessary.)
Zeev Suraski [Fri, 4 Jun 1999 10:45:54 +0000 (10:45 +0000)]
* Add a new workspace for dynamic PHP extensions.
* Add a few functions to PHP's API.
* Get the MySQL extension up-to-date and thread safe.
* Add a project for building the MySQL extension under Win32.
Andi Gutmans [Thu, 3 Jun 1999 21:06:03 +0000 (21:06 +0000)]
- We weren't counting newlines in heredocs. The only place which is still questionable
is when there's a \ followed by a newline but it seems we have a parse error in this
case anyways.
- Fixed the alloca() macros so that the alloca() #define in win32 mode won't clash
with the real win32 alloca().
Andrey Hristov [Fri, 28 May 1999 20:54:52 +0000 (20:54 +0000)]
-Modified PCRE library slightly to do what needs to be done
-Updated preg_replace() code to handle stuff properly
-Removed ability to specify external PCRE library source to link against
(since our bundled version is patched now)
Zeev Suraski [Fri, 28 May 1999 12:06:59 +0000 (12:06 +0000)]
* Support getThis() for internal functions.
* Fix 'new object or die' and AiCount issue thoroughly (earlier fix didn't
work with the optimizer).
* Add new macros for standardized definition of classes.
* Only report AiCount problems if shutdown was not silent.
Zeev Suraski [Fri, 28 May 1999 11:09:39 +0000 (11:09 +0000)]
* Use new Zend macros for standardized definition of classes.
* Reverse bogus shutdown order.
* Use the new object/class support of Zend to make the dir functions work again.
Andrey Hristov [Thu, 27 May 1999 13:59:39 +0000 (13:59 +0000)]
Really fix the configuration now so that it's possible to compile both
against the bundled PCRE library and the one external to the source tree.
Crossing my fingers while Zeev compiles this. :)
Andrey Hristov [Wed, 26 May 1999 15:22:02 +0000 (15:22 +0000)]
A few changes here.
First of all, as per extensive discussion on the list, the functions are now
prefixed with "preg" instead of "pcre".
Secondly, global matching is now possible using preg_match_all. Please, give
suggestions on a better name if this one doesn't sit well with you. Possible
names are preg_global_match and preg_gmatch.
preg_match_all takes 4 arguments: a regex pattern, a subject string,
the array for capturing subpatterns, and a parameter that tells how the results
in the subpatterns array are arranged.
Basically, preg_match_all will go through the subject string and try to capture
all the matches that it finds, not just the first one like preg_match.
4th parameter can be PREG_PATTERN_ORDER (default) or PREG_SET_ORDER.
This returns results so that $out[0] is an array of first full pattern match and subpatterns,
$out[1] is an array of second full pattern match and subpatterns.
Zeev Suraski [Tue, 25 May 1999 21:14:54 +0000 (21:14 +0000)]
* Add generic POST content-type support. Only application/x-www-form-urlencoded
supported at this time, but the framework allows for any other types, including
runtime addition of types.