Re: [PHP-DEV] [WARNING] Release process for 4.3.2 starts RSN..

2003-03-09 Thread David Brown
On Sun, Mar 09, 2003 at 05:17:37PM +0100, Derick Rethans wrote: | Hello, | | I guess nobody is interested in fixing this? Then I guess we won't get | 4.3.2 ever. | | > To get this thing started, I'm going to roll PHP 4.3.2-pre1 | > on Wednesday, 26th Feb, around 3pm EEST. And I'll announ

[PHP-DEV] pg_lo_open and object creation... intended behavior?

2003-03-05 Thread David Brown
Hi: This is an excerpt from ext/pgsql/pgsql.c, in pg_lo_open: --- if (strchr(mode_string, 'w') == mode_string) { pgsql_mode |= INV_WRITE; create = 1; if (strchr(mode_string, '+') == mode_string+1) { pgsql_mode |= INV_READ; } } pgsql_lofp = (pgLofp *) emalloc(sizeof(pgLofp

Re: [PHP-DEV] Getting an external param into a userspace streams filter...

2003-02-27 Thread David Brown
Hi Wez: On Thu, Feb 27, 2003 at 04:26:40PM +, Wez Furlong wrote: | Hi David, | | user filters are in a little bit of flux atm. | | However, the idea is that the param argument will be altered to be a | zval (rather than just a string). | | In the oncreate() method, the following member vari

Re: [PHP-DEV] Getting an external param into a userspace streams filter...

2003-02-27 Thread David Brown
On Thu, Feb 27, 2003 at 09:42:24AM -0500, David Brown wrote: | On Thu, Feb 27, 2003 at 09:40:15AM -0500, David Brown wrote: | | Hi Wez, everyone: | | | | Is there (or will there ever be) a good way to transmit an extra | | parameter into a php_user_filter around the time that oncreate() is

Re: [PHP-DEV] Getting an external param into a userspace streams filter...

2003-02-27 Thread David Brown
On Thu, Feb 27, 2003 at 09:40:15AM -0500, David Brown wrote: | Hi Wez, everyone: | | Is there (or will there ever be) a good way to transmit an extra | parameter into a php_user_filter around the time that oncreate() is | called? I've run into a couple cases where it'd be incredibly use

[PHP-DEV] Getting an external param into a userspace streams filter...

2003-02-27 Thread David Brown
Hi Wez, everyone: Is there (or will there ever be) a good way to transmit an extra parameter into a php_user_filter around the time that oncreate() is called? I've run into a couple cases where it'd be incredibly useful (e.g. for filters that don't modify the stream, but do have side-effects). Is

Re: [PHP-DEV] Of string constants, bytecode, and concatenation

2003-02-26 Thread David Brown
On Wed, Feb 26, 2003 at 05:36:54PM +0100, Derick Rethans wrote: | No, the engine doesn't do this at compile time. This first one produces: | | number of ops: 5 | line # op fetch ext operands | ---

[PHP-DEV] Of string constants, bytecode, and concatenation

2003-02-26 Thread David Brown
Hi everyone: This may well be a stupid question, but I've spend enough time staring blankly at zend_compile.c/zend_execute.c that I figured it was time to ask. :) Say I have a section of code like this: In the PHP bytecode (I hope I'm using the right terminology - I mean the stuff in the oplin

[PHP-DEV] mb_string overloading and binary data...

2003-02-19 Thread David Brown
Hi: This is kind of a user-space question, but I'm hoping that it concerns enough of the PHP infrastructure (conceptually) that this is the right place to post it. I've got an application that processes both textual and binary data. The domain of the application isn't really relevant, but it make

Re: [PHP-DEV] Current HEAD segfaults with Horde/CHORA

2003-02-11 Thread David Brown
On Tue, Feb 11, 2003 at 03:17:53PM -0500, Derick Rethans wrote: | > David Brown wrote: | > | > I assume the crash on infinite recursion is a stack-overflow type thing, | > but is there any reason that doesn't trigger the 'Allowed memory | > exhausted' and exi

Re: [PHP-DEV] Current HEAD segfaults with Horde/CHORA

2003-02-11 Thread David Brown
On Tue, Feb 11, 2003 at 01:18:20PM +0100, Derick Rethans wrote: | On Tue, 11 Feb 2003, Sebastian Bergmann wrote: | | > Derick Rethans wrote: | > Be that as it may, but it still shouldn't segfault, no? ;-) | | recursive function calls always segfault, just like: | | | | so it's 'expected beha

Re: [PHP-DEV] Capturing headers with output buffering?

2002-11-24 Thread David Brown
to accomplish? | | | On Sunday, November 24, 2002, at 05:40 PM, David Brown wrote: | | >Hi: | > | >Architecturally speaking, is there any simple way to modify an sapi | >backend to return HTTP headers through the output buffering mechanism? | > | >As far as I can

[PHP-DEV] Capturing headers with output buffering?

2002-11-24 Thread David Brown
Hi: Architecturally speaking, is there any simple way to modify an sapi backend to return HTTP headers through the output buffering mechanism? As far as I can tell, headers are managed seperately by main/output.c, with php_ub_body_write_no_header being substituted in once the HTTP headers are sen

Re: [PHP-DEV] Proto void and return values...

2002-11-12 Thread David Brown
On Tue, Nov 12, 2002 at 02:16:41PM -0500, David Brown wrote: | Hi everyone: | | For functions prototyped as returning void, return values seem to be applied | at random. Some functions, such as trigger_error/user_error, srand, ob_start, | and phpinfo, use RETURN_TRUE. The vast majority of these

[PHP-DEV] Proto void and return values...

2002-11-12 Thread David Brown
Hi everyone: In trying to do something syntatically fancy with trigger_error() today, I came across what I believe to be an inconsistency in the way return values are being applied throughout the PHP4 tree. Proof (hopefully) follows. :) For functions prototyped as returning void, return values se

Re: [PHP-DEV] segfault on adding empty heredoc to string

2002-09-02 Thread David Brown
On Mon, Sep 02, 2002 at 02:22:12AM +0300, Zeev Suraski wrote: | Mark them as critical and they'll get some attention :) | | Is this bug new to the latest CVS or does it occur with 4.2? I gave the code snippet a try here with a CGI SAPI version of PHP 4.2.2. I wasn't able to reproduce the crash:

Re: [PHP-DEV] Re: Bug #18547 Updated: Remote attacker can cause SIGSEGV (fwd)

2002-07-25 Thread David Brown
On Wed, Jul 24, 2002 at 01:37:12PM -0700, Thomas Cannon wrote: > >-- Forwarded message -- > >Date: Wed, 24 Jul 2002 16:12:06 -0400 (EDT) > >From: Dan Kalowsky <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >Subject: Re: Bug #18547 Updated: Remote attacker can cause SIGSEGV > > > >P

[PHP-DEV] Variable expansion in user-space

2002-07-16 Thread David Brown
Hi guys: I've looked through the documentation and didn't see anything like this; please do let me know if this has been implemented/discussed previously. I'm looking for a fast mechanism to do 'user-space' string expansion. That is, given a key/value set $a and a string $b, i'd like for every o

[PHP-DEV] [PATCH] preg_match(_all) support for capturing offsets

2002-06-06 Thread David Brown
Hi Andrei, all: (This is a re-send of a previous message that received no replies; my apologies if you've already seen/considered it) In a previous patch (http://news.php.net/article.php?group=php.dev&article=84281), support was added to preg_split for capturing offsets along with matches. The

[PHP-DEV] [PATCH] preg_match(_all) support for capturing offsets

2002-06-04 Thread David Brown
Hi Andrei, all: In a previous patch (http://news.php.net/article.php?group=php.dev&article=84281), support was added to preg_split for capturing offsets along with matches. The attached patch adds similar support to preg_match and preg_match_all via a new PREG_MATCH_OFFSET_CAPTURE flag. The cod

[PHP-DEV] Re: [PATCH] Allow preg_split to capture offsets

2002-05-23 Thread David Brown
On Thu, May 23, 2002 at 12:28:02PM -0500, Andrei Zmievski wrote: > David, > > > Enclosed is a patch to allow PCRE's preg_split to return an array of > > (match, offset) pairs, if PREG_SPLIT_OFFSET_CAPTURE is or'd into the > > flags parameter. Submitted for inclusion, rejection, extensive flaming,

[PHP-DEV] [PATCH] Allow preg_split to capture offsets

2002-05-22 Thread David Brown
Hi: Enclosed is a patch to allow PCRE's preg_split to return an array of (match, offset) pairs, if PREG_SPLIT_OFFSET_CAPTURE is or'd into the flags parameter. Submitted for inclusion, rejection, extensive flaming, or suggestions. :) A bit of background: I'm currently working on a cross-referen

[PHP-DEV] [PATCH] Allow preg_split to capture offsets

2002-05-22 Thread David Brown
Hi: Enclosed is a patch to allow PCRE's preg_split to return an array of (match, offset) pairs, if PREG_SPLIT_OFFSET_CAPTURE is or'd into the flags parameter. Submitted for inclusion, rejection, extensive flaming, or suggestions. :) This is a re-send of a previous patch; the last one didn't seem