[PHP-DEV] Internal casting of objects as array keys

2004-05-21 Thread Aidan Lister
Hello devs, I'd like to discuss the use of objects as array keys. _id = $id; } function __tostring () { return (int)$this->_id; } } $blah1 = new idobject(1); $blah2 = new idobject(2); $blah3 = new idobject(3); $blah4 = new idobject(4); $array = array ( $blah1 => 'blah1', $blah2 => 'blah2

Re: [PHP-DEV] PHP5: expected __METHOD__ behavior

2004-05-21 Thread Andrey Hristov
Daniel J Cain Jr. wrote: I am by no means an expert with OOP, so if this is a blatantly retarded question please excuse my ignorance. Given this code: class B { function bar() { // blah } } $instance = B::foo(); ?> output is "A::foo". Is this correct? I would expect (want ma

[PHP-DEV] Re: expected __METHOD__ behavior

2004-05-21 Thread l0t3k
"Daniel J Cain Jr ." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > $instance = B::foo(); > ?> > > output is "A::foo". > > Is this correct? I would expect (want maybe :) ) to see output as > "B::foo". this is as designed. __METHOD__ is a compile-time evaluated token, not a runti

[PHP-DEV] PHP5: expected __METHOD__ behavior

2004-05-21 Thread Daniel J Cain Jr .
I am by no means an expert with OOP, so if this is a blatantly retarded question please excuse my ignorance. Given this code: class B { function bar() { // blah } } $instance = B::foo(); ?> output is "A::foo". Is this correct? I would expect (want maybe :) ) to see output as

[PHP-DEV] Class Constant Memory Allocation

2004-05-21 Thread l0t3k
is it possible to have a MAKE_INTERNAL_ZVAL macro to pair with zval_internal_dtor (im using class constants heavily in my extension)? of course i could just create my own and use it in my extension, but i think its good to be symmetrical. l0t3k -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Extending internal classes like mysqli

2004-05-21 Thread Bert Slagter
Hi Marcus, Thanks for your clear answer :). What are the future plans concerning this issue? Will I be able to just extend this class as I want? For which version is that planned? The answers to these questions heavily influence design choices I have to make now. Oh, and I'm curious why the art

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Timm Friebe
On Fri, 2004-05-21 at 23:02, Edin Kadribasic wrote: > > Edin just fixed the PHP5 branch, i MFH'ed the fixed to PHP4. > > > > - Timm > > You should probably test ZTS build before comitting as well. Most windows > build problems stem from the fact that ZTS build gets broken which can be > tested on

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Edin Kadribasic
> Edin just fixed the PHP5 branch, i MFH'ed the fixed to PHP4. > > - Timm You should probably test ZTS build before comitting as well. Most windows build problems stem from the fact that ZTS build gets broken which can be tested on any platform. Edin -- PHP Internals - PHP Runtime Development M

[PHP-DEV] Sybase-CT bug #28354

2004-05-21 Thread Timm Friebe
On Fri, 2004-05-21 at 21:59, Timm Friebe wrote: > On Fri, 2004-05-21 at 21:19, Daniel Convissor wrote: [...] > > It would be appreciated if we can get Sybase working. Right now it causes > > PHP to crash. http://bugs.php.net/bug.php?id=28354 > > I'm able to reproduce - I just added a testcase

Re: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Rasmus Lerdorf
On Fri, 21 May 2004, Edin Kadribasic wrote: > On Friday 21 May 2004 20:25, Rasmus Lerdorf wrote: > > What is the incentive to build it static? Performance? If you simply > > build a non-pic shared library there is no performance benefit at all. > > In fact, we should probably consider making thi

Re: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Edin Kadribasic
On Friday 21 May 2004 20:25, Rasmus Lerdorf wrote: > What is the incentive to build it static? Performance? If you simply > build a non-pic shared library there is no performance benefit at all. > In fact, we should probably consider making this the default on platforms > that support non-pic sha

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Timm Friebe
On Fri, 2004-05-21 at 21:19, Daniel Convissor wrote: > Hi Ilia: > > > I'd would like to release the RC1 of 4.3.7 this Thursday, so if you have any > > pending bug fixes please commit them. If you need more time, please let me > > know. > > It would be appreciated if we can get Sybase working.

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Rasmus Lerdorf
Well, technically GIF support is not a new feature, since it was in there before and was only removed/disabled for idiotic legal reasons. Not sure we have a rule against adding old features. ;) -Rasmus On Fri, 21 May 2004, Derick Rethans wrote: > On Fri, 21 May 2004, Rasmus Lerdorf wrote: >

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Derick Rethans
On Fri, 21 May 2004, Rasmus Lerdorf wrote: > Uh, no chance. And 4.3.7 will not be the last PHP4 version. And no new features in there either... Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Rasmus Lerdorf
Uh, no chance. And 4.3.7 will not be the last PHP4 version. -Rasmus On Fri, 21 May 2004, Uwe Schindler wrote: > should we better wait with 4.3.7 final until the unisys patents expiration > and bundle a LZW-enabled GD - because 4.3.7 will be the last PHP4 version? > > At 21:19 21.05.2004, Dani

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Uwe Schindler
should we better wait with 4.3.7 final until the unisys patents expiration and bundle a LZW-enabled GD - because 4.3.7 will be the last PHP4 version? At 21:19 21.05.2004, Daniel Convissor wrote: Hi Ilia: > I'd would like to release the RC1 of 4.3.7 this Thursday, so if you have any > pending bug

Re: [PHP-DEV] PHP 4.3.7RC1 Release Schedule

2004-05-21 Thread Daniel Convissor
Hi Ilia: > I'd would like to release the RC1 of 4.3.7 this Thursday, so if you have any > pending bug fixes please commit them. If you need more time, please let me > know. It would be appreciated if we can get Sybase working. Right now it causes PHP to crash. http://bugs.php.net/bug.php?id=2

[PHP-DEV] [PATCH- 3rd Repost] Apache Output Filter Control

2004-05-21 Thread Paul Querna
This is the 3rd Time I have posted this patch. The first time I recieved 0 replies[1]. The 2nd time around Andi Gutmans provided some questions, but nothing negative about the patches[2]. These patchs add two new functions for handling output filters in the Apache2Handler SAPI: bool apache_add_ou

[PHP-DEV] Re: [PATCH]An Apache2 fastcgi module

2004-05-21 Thread Qingfeng Pan
I am the guy who post this, but it seems missing my attachment? I post it here again... Index: cgi_main.c === RCS file: /repository/php-src/sapi/cgi/cgi_main.c,v retrieving revision 1.190.2.60 diff -u -r1.190.2.60 cgi_main.c --- cgi_m

[PHP-DEV] [PATCH]An Apache2 fastcgi module

2004-05-21 Thread 潘庆峰
Hi, all I just finished an apache2 fastcgi module: mod_fcgid, can this module be a part of PHP? You can find the goals for the implementation in http://fastcgi.coremail.cn/index.htm I have to highlight a different from mod_fastcgi: Every fastcgi process has unique UNIX

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Rasmus Lerdorf
On Fri, 21 May 2004, Wez Furlong wrote: > Despite PDO being a PECL-only extension by design, a number of people are > already attempting (and failing!) to run it as static, because the module init > order is undefined. What is the incentive to build it static? Performance? If you simply build a

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Uwe Schindler
i can do Solaris (and MacOSX - but thats GNU) later this evening. At 12:41 21.05.2004, Andi Gutmans wrote: If people can step up and test it on a few of the non-GNU systems I mentioned (and possibly others) then I wouldn't object to commiting it. Any volunteers? Andi At 11:37 AM 5/21/2004 +0100

Re: [PHP-DEV] Extending internal classes like mysqli

2004-05-21 Thread Marcus Boerger
Hello Bert, some of the internal classas cannot be extended and unfortunatley they are not marked as 'final' right now. For you that means you need to extend it by a proxy class that reimplements the original class protocol and uses the original class as a property. Friday, May 21, 2004, 2:52:08

Re: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread George Schlossnagle
On May 21, 2004, at 8:32 AM, Zeev Suraski wrote: At 13:36 21/05/2004, Derick Rethans wrote: On Fri, 21 May 2004, Andi Gutmans wrote: > Well the main problem is that awk might behave differently on all sorts of > non-GNU systems (Sun, AIX, HP etc.). > Is it important to include this in 5.0? I thin

Re: [PHP-DEV] php.net

2004-05-21 Thread Derick Rethans
On Fri, 21 May 2004, Aidan Lister wrote: > Look harder! I've sent three with the subject "master.php.net". > I've also asked 2 other people with the same problem to mail in, although > it's possible they didn't. I did send you another mail after, please cease to post to the internals list about i

Re: [PHP-DEV] php.net

2004-05-21 Thread Aidan Lister
Hi Dan, Yep, ofcourse! I sent a lot of debug information in my mail to systems, I'll repaste it here: --- Hi, I'm trying to log into http://master.php.net/manage/user-notes.php with my CVS username and password. I've checked and rechecked my CVS details, and used them to successfu

[PHP-DEV] Extending internal classes like mysqli

2004-05-21 Thread Bert Slagter
Good afternoon! Could anyone explain what we're supposed to do with internal classes like the mysqli class. In an article on Zend.com (http://www.zend.com/php5/articles/php5-mysqli.php) the fact that the object oriented interface can be extended is brought as a major feature. But it seems that

Re: [PHP-DEV] php.net

2004-05-21 Thread Daniel Convissor
Hi Aidan: On Fri, May 21, 2004 at 07:36:56PM +1000, Aidan Lister wrote: > > I'm unable to access any of the pages on master.php.net/manage; my > username/password simply does not work You have cookies enabled for that domain, correct? --Dan -- T H E A N A L Y S I S A N D S O L U T I O

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Zeev Suraski
At 13:36 21/05/2004, Derick Rethans wrote: On Fri, 21 May 2004, Andi Gutmans wrote: > Well the main problem is that awk might behave differently on all sorts of > non-GNU systems (Sun, AIX, HP etc.). > Is it important to include this in 5.0? I think it is important enough, as there is currently on

Re: [PHP-DEV] php.net

2004-05-21 Thread Aidan Lister
Hi Derick, Look harder! I've sent three with the subject "master.php.net". I've also asked 2 other people with the same problem to mail in, although it's possible they didn't. Aidan "Derick Rethans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 21 May 2004, Aidan Lister w

Re: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Magnus Määttä
On Friday 21 May 2004 12.41, Andi Gutmans wrote: > If people can step up and test it on a few of the non-GNU systems I > mentioned (and possibly others) then I wouldn't object to commiting it. Any > volunteers? > Tru64 UNIX 5.1/A/B, HP-UX 11.11/22i (or whatever), and possibly some other strange s

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Andi Gutmans
If people can step up and test it on a few of the non-GNU systems I mentioned (and possibly others) then I wouldn't object to commiting it. Any volunteers? Andi At 11:37 AM 5/21/2004 +0100, Wez Furlong wrote: For people that want to build modular extensions (such as PDO) as static, it is. My pre

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Wez Furlong
For people that want to build modular extensions (such as PDO) as static, it is. My preference for that is to require it to be built as shared (via PECL), so I'm not going to push the patch. If there are people out there with those other systems, it would be nice if they could test the patch befo

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Derick Rethans
On Fri, 21 May 2004, Andi Gutmans wrote: > Well the main problem is that awk might behave differently on all sorts of > non-GNU systems (Sun, AIX, HP etc.). > Is it important to include this in 5.0? I think it is important enough, as there is currently on way of doing this correctly, and it has b

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Andi Gutmans
Well the main problem is that awk might behave differently on all sorts of non-GNU systems (Sun, AIX, HP etc.). Is it important to include this in 5.0? At 09:22 AM 5/21/2004 +0100, Wez Furlong wrote: Only linux so far. I can check it out on fbsd and solaris a little later. --Wez. > -Original

Re: [PHP-DEV] php.net

2004-05-21 Thread Derick Rethans
On Fri, 21 May 2004, Aidan Lister wrote: > Hi, > > I'm writing to you guys, because I'm unable to get a response from > [EMAIL PROTECTED] I did not see any mail regarding this to [EMAIL PROTECTED] Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.

[PHP-DEV] php.net

2004-05-21 Thread Aidan Lister
Hi, I'm writing to you guys, because I'm unable to get a response from [EMAIL PROTECTED] I'm unable to access any of the pages on master.php.net/manage; my username/password simply does not work - the same is true for the last 2 people I've recommended for CVS access. If this is by design, then

RE: [PHP-DEV] [PATCH] primitive load order deps for unix build system

2004-05-21 Thread Wez Furlong
Only linux so far. I can check it out on fbsd and solaris a little later. --Wez. > -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED] > Sent: 21 May 2004 05:47 > To: Wez Furlong; [EMAIL PROTECTED] > Cc: 'Sascha Schumann' > Subject: Re: [PHP-DEV] [PATCH] primitive load or