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: Re[2]: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Dan Hardiker
> Please run this code and check it output! I actually did ;) however in retyping (due to circumstances) the code I had misread the function call as c(&$a); and on replying didt notice my mistake. Appologies :P If you change the function call to c(&$a); you will notice the output being "AAC" :P

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

2003-01-07 Thread Andrew Sitnikov
Hello Dan, DH> Just to prevent any misconception, the code executed through the ZE1 will DH> actually be "AAC" rather than "AAA". Please run this code and check it output! It will print "AAA", because in function c() you have COPY of object `$a`, NOT reference (with ZE1). Best regards, Andrew S

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
ian Moon - dealnews.com - phorum.org - Original Message - From: "John Wells" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 7:03 PM Subject: [PHP-DEV] Designing for PHP4 with PHP5 in mind... | I'm preparing for a project in whic

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

2003-01-06 Thread John Wells
I'm preparing for a project in which I'll be porting and redesigning a large, ugly Visual Basic/Sql Server app to a PHP/Mysql or Postgresql based web application. I'd like to code in a way that will be at the same time easily ported to PHP5 and that will take advantage of PHP5's new object handlin