Sorry Andi, I was wrong. I never managed to test the returned references using
the CVS version of PHP/Zend2 because I had assumed when I download the php4
tree from the CVS I got Zend 2, so I compiled Zend 1.x by mistake. I can't
actually get Zend 2 working - this is what I have been doing ...

I downloaded the php4 and ZendEngine2 trees from CVS, replaced the Zend
directory in the php4 tree with the ZendEngine2 directory and built, the make
fails with the following error:
Zend/zend_language_scanner.c:5513: syntax error before `int'

FYI that line is: 
        ZEND_DLIMPORT int isatty YY_PROTO(( int ));

Am I doing this wrong or should I keep looking for the problem?

BTW: System is RedHat linux kernel 2.2.19/glibc 2.1.1

Cheers
Tom


On Mon, 24 Jun 2002, Andi Gutmans wrote:
> Hi,
> 
> This is a bug and I think I fixed it in the CVS version of the Engine.
> Any chance you can grab it and check?
> In any case, I just want to remind you that you will not want to return 
> objects by reference anymore with Engine 2 only possibly some other datatypes.
> 
> Andi
> 
> At 11:43 AM 6/24/2002 +0100, SCL List Client wrote:
> >Hi,
> >I have a Zend 2 question, I my code I return things from functions by 
> >reference
> >e.g.
> ><?php
> >function &myFunc(...) {
> >         // .. Code....
> >         return $x;
> >}
> >
> >$y =& myFunc(...);
> >?>
> >
> >But now I am trying to use Zend 2 version of php I get the following error:
> >
> >Fatal error: Can't use function return value in write context in 
> >/scriptname on
> >line x
> >
> >where x is the line of the actual function call.
> >
> >Has the syntax been changed for returning by reference or is this a bug?
> >
> >Cheers
> >Tom
> >
> >--
> >PHP Development Mailing List <http://www.php.net/>
> >To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to