[PHP-DEV] PHP5: class constructor

2004-05-02 Thread Tumurbaatar S.
It seems PHP5/Zend 2 allow only one constructor per class? Yes? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] proto fixes uuencode

2004-05-02 Thread Friedhelm Betz
Hi, attached patch fixes the protos for uuenode/uudecode in php-src/ext/standard/uuencode.c Regards Friedhelm Index: uuencode.c === RCS file: /repository/php-src/ext/standard/uuencode.c,v retrieving revision 1.3 diff -u -u -r1.3

[PHP-DEV] [PATCH] proto fixes pspell

2004-05-02 Thread Friedhelm Betz
Hi, attached patch fixes some protos for the pspell module (php-src/ext/pspell/pspell.c) Regards Friedhelm Index: pspell.c === RCS file: /repository/php-src/ext/pspell/pspell.c,v retrieving revision 1.43 diff -u -u -r1.43 pspell.c -

Re: [PHP-DEV] [RFC] Type hints

2004-05-02 Thread Marcus Boerger
Hello Andi, Sunday, May 2, 2004, 6:09:22 PM, you wrote: > Hi Marcus, > I wouldn't use the syntax you proposed but you: > function func(MyClass $obj or null); an updated patch can be found here: http://somabo.de/php/ext/ze2/ze2-type-hints-20040502.diff.txt > Concerning ty

Re: [PHP-DEV] [RFC] Type hints

2004-05-02 Thread Timm Friebe
On Sat, 2004-05-01 at 22:09, Marcus Boerger wrote: > Hello internals, [...] While thinking about this for a while and playing around with different notations, I stumbled across the following: function foo(Foo $f = 1) { } This will actually "compile" (but never work). It doesn't make any sense

Re: [PHP-DEV] [RFC] Type hints

2004-05-02 Thread Andi Gutmans
At 06:39 PM 5/2/2004 +0200, Timm Friebe wrote: On Sat, 2004-05-01 at 22:09, Marcus Boerger wrote: > Hello internals, > > while working with php 5 the last days i find it more and more > annoying that we allow NULL with type hints. > From my perspective allowing NULL with typehints would happen >

Re: [PHP-DEV] [RFC] Type hints

2004-05-02 Thread Timm Friebe
On Sat, 2004-05-01 at 22:09, Marcus Boerger wrote: > Hello internals, > > while working with php 5 the last days i find it more and more > annoying that we allow NULL with type hints. > From my perspective allowing NULL with typehints would happen > only very rare. I don't think this is true.

Re: [PHP-DEV] [RFC] Type hints

2004-05-02 Thread Andi Gutmans
Hi Marcus, It probably makes sense to go with (3) because as Zeev says, the majority of the times you don't want to allow NULL. If we decide to go this direction we definitely need to implement it before PHP 5 because otherwise it'll be a big BC break. I wouldn't use the syntax you proposed but

Re: [PHP-DEV] == object comparison bug?

2004-05-02 Thread Andi Gutmans
Thanks for the detailed report. This should be fixed in the latest CVS. Andi At 01:25 PM 4/28/2004 -0400, Hans Lellelid wrote: I'm using PHP5.0.0RC2. I saw that there was a similar question posted, but apparently that issue had already been fixed. ---code class Fil

Re: [PHP-DEV] php-src/TODO foreach-enhancements

2004-05-02 Thread Wez Furlong
The latter of these is in PHP 5 afair. --Wez. - Original Message - From: "Markus Fischer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 02, 2004 10:17 AM Subject: [PHP-DEV] php-src/TODO foreach-enhancements > Hi, > > has anyone played around with those two subj

[PHP-DEV] php-src/TODO foreach-enhancements

2004-05-02 Thread Markus Fischer
Hi, has anyone played around with those two subjects from php-src/TODO ? * Allow foreach ($array as $k => list($a, $b)) syntax for multi dimensional arrays. * Allow foreach ($array as $k => &$val) syntax. right now we cannot traverse an array without copying each elem