Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-14 Thread Derick Rethans
On 14 Jan 2003, michel 'ziobudda' morelli wrote: > Il mar, 2003-01-07 alle 20:15, J Smith ha scritto: > > > > You can still use constructors that have the same name as the class, at > > least for the time being. Just tested it with 4.4.0-dev HEAD and ZE2. If > > you have both a method with the

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-14 Thread michel 'ziobudda' morelli
Il mar, 2003-01-07 alle 20:15, J Smith ha scritto: > > You can still use constructors that have the same name as the class, at > least for the time being. Just tested it with 4.4.0-dev HEAD and ZE2. If > you have both a method with the same name as the class and a method called > __construct(),

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-14 Thread michel 'ziobudda' morelli
Il mar, 2003-01-07 alle 20:15, J Smith ha scritto: > > You can still use constructors that have the same name as the class, at > least for the time being. Just tested it with 4.4.0-dev HEAD and ZE2. If > you have both a method with the same name as the class and a method called > __construct(),

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread J Smith
You can still use constructors that have the same name as the class, at least for the time being. Just tested it with 4.4.0-dev HEAD and ZE2. If you have both a method with the same name as the class and a method called __construct(), the method with the class name will be used as the construc

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Dan Hardiker
Hi, > [FROM] Leon Atkinson > class a {} > > function c($c) > { > $c->name = 'C'; > } > > $a = new a; > $b = $a; > > $a->name = "A"; > print($a->name); > $b->name = "B"; > print($a->name); > c($a); > print($a->name); > ?> > > In ZE1 you get "

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Derick Rethans
On Mon, 6 Jan 2003, George Schlossnagle wrote: > On Monday, January 6, 2003, at 09:48 PM, Brian Moon wrote: > > > From what I understand, all OO code will have to be modified for PHP5. > > Constructors for example and no longer named the same as the class > > name. > > That alone means every cl

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Andrey Hristov
To be more precise - passed by handle. Andrey - Original Message - From: "Leon Atkinson" <[EMAIL PROTECTED]> To: "John Wells" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 6:31 AM Subject: Re: [PHP-DEV] Designing f

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Brian Moon
| > >I don't recall anyone saying | > >it would be BC either, but I could be wrong. | > | > You're wrong. | > | > Of course, I could be too. | > | but you're not. so its ok... | So current PHP4 classes will still work in ZE2? Brian. -- PHP Development Mailing List To

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Leon Atkinson
> Any good links you could throw my way describing proposed changes? There are archives of the Zend Engine 2 list at zend.com: http://www.zend.com/lists.php There is one big change with objects that will break BC. Objects pass by reference instead of value, both for function calls and assignment

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Sterling Hughes
> So code should be backwards compatible? Very nice. > > Any good links you could throw my way describing proposed changes? > never said that. but constructors will be backwards compatible. changes are available in the ZendEngine2 cvs repository. -sterling > Thanks guys. > > John > > Sterl

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread John Wells
So code should be backwards compatible? Very nice. Any good links you could throw my way describing proposed changes? Thanks guys. John Sterling Hughes said: >> On Monday, January 6, 2003, at 09:48 PM, Brian Moon wrote: >> >> >From what I understand, all OO code will have to be modified for >

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Sterling Hughes
> On Monday, January 6, 2003, at 09:48 PM, Brian Moon wrote: > > >From what I understand, all OO code will have to be modified for PHP5. > >Constructors for example and no longer named the same as the class > >name. > >That alone means every class must be changed. I don't recall anyone > >sayi

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread George Schlossnagle
On Monday, January 6, 2003, at 09:48 PM, Brian Moon wrote: From what I understand, all OO code will have to be modified for PHP5. Constructors for example and no longer named the same as the class name. That alone means every class must be changed. I don't recall anyone saying it would be BC

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-06 Thread Brian Moon
>From what I understand, all OO code will have to be modified for PHP5. Constructors for example and no longer named the same as the class name. That alone means every class must be changed. I don't recall anyone saying it would be BC either, but I could be wrong. Brian Moon - dealnew