[PHP-DEV] Re: [PHP-CVS] cvs: php4 /main main.c php.h php_globals.h

2002-08-08 Thread Marcus Börger
O.k. here it comes: First thanks to Wez for another great idea. The order of parameters and the function names have changed. The order is now docref TSRM, optional parameters and starting from type the original parameters of php_error. This order makes it easier to change php_error calls into

Re: [PHP-DEV] Sybase - Error handlers

2002-08-08 Thread Timm Friebe
On Thu, 2002-08-08 at 21:25, Brad LaFountain wrote: Do you currently use them (im just wondering how stable it is). I briefly looked at them. I've tested it a lot, it's not segfaulting or leaking AFAIS, I was waiting for response before testing it - now that it's there, I'll have it compiled

[PHP-DEV] php_error_docref

2002-08-08 Thread Wez Furlong
Hi Marcus, Just 2 points: In your update to this patch, you have a fixme for the case where get_active_function_name(TSRMLS_C) returns NULL. AFAICT, this will only happen in rare circumstances and doesn't have anything to do with the build being a TSRM build or not. So it's a bit of a

Re: [PHP-DEV] Sybase - Error handlers

2002-08-08 Thread Timm Friebe
On Thu, 2002-08-08 at 21:50, Timm Friebe wrote: On Thu, 2002-08-08 at 21:25, Brad LaFountain wrote: Do you currently use them (im just wondering how stable it is). I briefly looked at them. I've tested it a lot, it's not segfaulting or leaking AFAIS, I was waiting for response before

Re: [PHP-DEV] php_error_docref

2002-08-08 Thread Wez Furlong
On 08/08/02, Marcus Börger [EMAIL PROTECTED] wrote: First thanks to Wez for another great idea. And it's not really my idea :-) It's some anonymous persons idea (checking the cvs log for the todo will reveal who!). Derick :-) --Wez. -- PHP Development Mailing List http://www.php.net/

[PHP-DEV] RE: [PHP-CVS] cvs: php4(PHP_4_2_2) /ext/domxml php_domxml.c

2002-08-08 Thread derick
On Thu, 8 Aug 2002, Joseph Tate wrote: Yeah, I realized that. Sorry. Bad Day. The bug had already been fixed in 4_2_0. For some reason I thought that 4_2_2 was a separate branch of the 4_2_0 tree so as to only insert the security fix, especially since everybody believes that 4.2.2 is

Re: [PHP-DEV] php_error_docref

2002-08-08 Thread Marcus Börger
At 22:35 08.08.2002, Wez Furlong wrote: Hi Marcus, Just 2 points: In your update to this patch, you have a fixme for the case where get_active_function_name(TSRMLS_C) returns NULL. AFAICT, this will only happen in rare circumstances and doesn't have anything to do with the build being a TSRM

[PHP-DEV] A bug in copy() function

2002-08-08 Thread Ilia A.
The copy() function will report failure when copying a 0 byte file, even though a duplicate file has successfully been created. The problem occurs because _php_stream_copy_to_stream function inside stream.c does not check if the source file is 0 bytes and returns haveread bytes, which in case

[PHP-DEV] MySQL - LOAD DATA LOCAL INFILE

2002-08-08 Thread Georg Richter
Hi, s since MySQL-Version 3.23.49 and 4.0.2 the LOAD DATA LOCAL INFILE option is disabled by default, unless the server and client supports it. With an external libmysql (and also with the integrated libmysql, which doesn't support disable load data), we have a little security hole, because in

[PHP-DEV] Inconsistent Behavior

2002-08-08 Thread Yasuo Ohgaki
?php $str = 'A'; $str[] = 'b'; ? PHP Fatal error: [] operator not supported for strings in - on line 3 -(3) : Fatal error - [] operator not supported for strings ?php $int = 123; $int[] = 'b'; var_dump($int); ? PHP Warning: Cannot use a scalar value as an array in - on line 3 -(3) : Warning