[PHP-DEV] objects passed as reference in php5

2004-08-07 Thread Curt Zirzow
I'm trying to document how objects are passed to functions in php5, but am running into some troubles. In the code below the object appears to be a reference but when the original object is destoyed it still somehow exists. Can someone explain how this is? I was going to report a bug on this but

Re: [PHP-DEV] cvs: php-src / NEWS /ext/standard basic_functions.c basic_functions.h

2004-08-07 Thread Dave Barr
Sara Golemon wrote: I fixed it by moving the arpa/inet.h include above the php_standard.h include, but I'm not sure if this would be the correct solution. Hmm this doesn't work either as it makes the PHP function name __inet_ntop(). I just committed what should be a fix. If it still mangles the us

[PHP-DEV] updating the install files

2004-08-07 Thread Nuno Lopes
Hello, The documentation team has re-wroten the installation part of the manual. We have also made a process to generate the INSTALL and win32/instal.txt files automatically from the manual. This will ensure that the files are always sync'ed with the on-line manual. I've posted the files at: http

[PHP-DEV] sqlite object-level interface

2004-08-07 Thread Derrell . Lipman
I just discovered (via the RTFS method) that there is an object-level interface to the sqlite functionality, $obj = new SQLiteDatabase(filename); It appears that there are SQLiteQuery and a few other object types as well, although I didn't pursue those. In searching the documentation on the web si

Re: [PHP-DEV] [PATCH] fix symbol namespace pollution from bundled libgd

2004-08-07 Thread Joe Orton
On Mon, Aug 02, 2004 at 10:55:27AM +0200, Derick Rethans wrote: > On Fri, 23 Jul 2004, Joe Orton wrote: > > > Building the bundled libgd library into PHP causes symbol namespace > > pollution; if any other Apache modules link a different version of libgd > > into the Apache process they may instea

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS /ext/standard basic_functions.c basic_functions.h

2004-08-07 Thread Sara Golemon
> > I fixed it by moving the arpa/inet.h include above the php_standard.h > > include, but I'm not sure if this would be the correct solution. > > > > Hmm this doesn't work either as it makes the PHP function name > __inet_ntop(). > I just committed what should be a fix. If it still mangles the us

Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread Wez Furlong
> Strings are cheap in Java too. The issue is object creation and cleanup. When the > strings are very large or very numerous, we could be talking about thousands of > substrings per page hit. This increases the strain on both the clock speed and the > memory of the host machine. Theory asid

Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread Elfyn McBratney
Hello, On Sat, Aug 07, 2004 at 09:42:04AM -0400, [EMAIL PROTECTED] wrote: > Hi Wez. Here are some clarifications... > > On 8/7/2004 Wez. wrote: > >I suppose we could add that. Keep in mind that strings in PHP aren't > >hugely expensive unless you are doing something wrong (tm) like using > >10MB

Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread jtl_phpdotnet
Hi Wez. Here are some clarifications... On 8/7/2004 Wez. wrote: >I suppose we could add that. Keep in mind that strings in PHP aren't >hugely expensive unless you are doing something wrong (tm) like using >10MB strings. Strings are cheap in Java too. The issue is object creation and cleanup. W

Re: [PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread Wez Furlong
On Sat, 07 Aug 2004 09:14:35 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > (1) Writing an arbitrary substring of a string directly to a stream without first > creating a string object for the substring. I.E. There is no print($string, $start, > $length) or fwrite($resource, $string, $len

[PHP-DEV] Substring writes and buffered char streams

2004-08-07 Thread jtl_phpdotnet
Hello PHP gurus, The php-general list does not believe that PHP allows me to do either of the following: (1) Writing an arbitrary substring of a string directly to a stream without first creating a string object for the substring. I.E. There is no print($string, $start, $length) or fwrite($res

[PHP-DEV] Re: Behaviour of preg_replace with /e

2004-08-07 Thread vrana
I documented this under e modifier: "Single and double quotes are escaped by backslashes in substituted backreferences." Decision if the behavior will change is up to the others. You can use preg_replace_callback() instead of e modifier. It doesn't escape quotes and is more PHPish :-). Jakub Vrá

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS /ext/standard basic_functions.c basic_functions.h

2004-08-07 Thread Dave Barr
Dave Barr wrote: I fixed it by moving the arpa/inet.h include above the php_standard.h include, but I'm not sure if this would be the correct solution. Hmm this doesn't work either as it makes the PHP function name __inet_ntop(). Dave -- PHP Internals - PHP Runtime Development Mailing List To u

[PHP-DEV] Re: [PHP-CVS] cvs: php-src / NEWS /ext/standard basic_functions.c basic_functions.h

2004-08-07 Thread Dave Barr
Sara Golemon wrote: pollita Sat Aug 7 00:50:25 2004 EDT Modified files: /php-src/ext/standard basic_functions.c basic_functions.h /php-src NEWS Log: New Functions inet_pton() and inet_ntop() +#ifdef HAVE_INET_NTOP + PHP_FE(inet_ntop,