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