Re: [PHP-DEV] Illegal use of string offset

2004-04-26 Thread Derick Rethans
On Tue, 27 Apr 2004, Curt Zirzow wrote: > > I can't seem to find any discussion on this BC issue, so forgive me if > this has already been discussed. > > Given the following; > > $a = 'a string'; > > /* E_ERROR Cannot use string offset as an array */ > echo is_array($a['bar']['baz']); > > /* non e

[PHP-DEV] Illegal use of string offset

2004-04-26 Thread Curt Zirzow
I can't seem to find any discussion on this BC issue, so forgive me if this has already been discussed. Given the following; $a = 'a string'; /* E_ERROR Cannot use string offset as an array */ echo is_array($a['bar']['baz']); /* non error resolution */ echo isset($a['bar']['baz']) && is_arr

Re: [PHP-DEV] Performance Consideration of 1 class per file

2004-04-26 Thread Jeff Moore
On Apr 23, 2004, at 11:37 PM, Alan Knowles wrote: PEAR is considering stipulating 1 class per file, for the packages. - one of the concerns raised is performance. While this is true for a non-cache compiled situation (where performance is less of an issue) - would anyone care to comment on the

Re: [PHP-DEV] CVS Account Request: jolan

2004-04-26 Thread Rasmus Lerdorf
It has already been created. On Tue, 27 Apr 2004, Anil Madhavapeddy wrote: > On Sun, Apr 25, 2004 at 05:07:58AM -, Jolan Luff wrote: > > Maintaining OpenBSD documentation on php.net. The old maintainer > > of the OpenBSD php port and documentation on php.net is stepping down. > > Confirmed.

Re: [PHP-DEV] CVS Account Request: jolan

2004-04-26 Thread Anil Madhavapeddy
On Sun, Apr 25, 2004 at 05:07:58AM -, Jolan Luff wrote: > Maintaining OpenBSD documentation on php.net. The old maintainer > of the OpenBSD php port and documentation on php.net is stepping down. Confirmed. If someone could sort Jolan out with an account I'd appreciate it. -- Anil Madhavap

Re: [PHP-DEV] CVS Account Request: johannes

2004-04-26 Thread Marcus Boerger
Hello Johannes, the good thing is that the lib uses LGPL license and it looks quit good. the bad news is that your code needs some tweaks. First of all the annoying WS and the please use php_error_docref instead of other error functions. But most of all never use sprintf. Use s[np]printf. If you

Re: [PHP-DEV] [PATCH] Repost - Adding Output Filters w/ Apache2 Handler SAPI

2004-04-26 Thread Paul Querna
On Mon, 2004-04-26 at 02:33, Andi Gutmans wrote: > Can you please give an example on how this can be used? Attached is a simple example of using both add_output_filter and get_output_filters. -Paul Querna demo.php Description: application/php http://www.w3.org/1999/XSL/Transform"; version="1.0"

Re: [PHP-DEV] Bug#28151 Writing to Uninitialized Arrays

2004-04-26 Thread Sara Golemon
> >Here's what I think is the fix for 28151 (I have no strong feelings on > >whether or not it belongs in the engine, but I am +1 on it personally). > >Zend guys? > > > PHP has always allowed defining arrays on demand. This would break many > scripts and I don't see any reason to force people to de

[PHP-DEV] Workaround for inability to know calling class inside an inherited method?

2004-04-26 Thread Juan Alonso
If a class inherits a method from a parent function and you call the parent method from the inherited class you cannot refer to variables referred in the inherited class. Is there a language construct to refer to the calling class inside a method? The example will explain it better: An

[PHP-DEV] CVS Account Request: johannes

2004-04-26 Thread Johannes Schlüter
New idn PECL extension (GNU libidn) as proposed in http://marc.theaimsgroup.com/?l=pecl-dev&m=108282209813233&w=2 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] CVS Account Request: enemerson

2004-04-26 Thread Evan Nemerson
House Panda extension in PECL- Wez told me to request an account here. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bug#28151 Writing to Uninitialized Arrays

2004-04-26 Thread Andi Gutmans
PHP has always allowed defining arrays on demand. This would break many scripts and I don't see any reason to force people to define variables as arrays, especially when these variables are undefined. Andi At 10:18 PM 4/25/2004 -0700, Sara Golemon wrote: Here's what I think is the fix for 28151

Re: [PHP-DEV] [PATCH] Repost - Adding Output Filters w/ Apache2 Handler SAPI

2004-04-26 Thread Andi Gutmans
Can you please give an example on how this can be used? At 08:13 PM 4/25/2004 -0600, Paul Querna wrote: I added two new functions for handling output filters in the Apache2Handler SAPI: bool apache_add_output_filter(string filter_name) - Attempts to add the named filter to the Filter Chain. array

Re: [PHP-DEV] new_object_array()

2004-04-26 Thread Andi Gutmans
I agree that it's best to keep this in user-land using the existing reflection API. At 08:11 PM 4/25/2004 +0200, Julian Reich wrote: Hi all, Hi Timm, How about: return call_user_func_array( array(new ReflectionClass($className), 'newInstance'), $functionParameters ); I also considered th

[PHP-DEV] PHP 4 Bug Summary Report

2004-04-26 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (756 total including feature requests) ===[*General Issues]== 27372 Verified parse error loading browscap.ini at apache startup (new parser required) 28079 Feedback