Repost: Cannot pass expression as argument 1 by...
| From: | Thies C. Arntzen | Date: | Wed, 19 May 1999 19:25:49 +0000 |
| Subject: | Repost: Cannot pass expression as argument 1 by... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5796@lists.php.net to get a copy of this message | ||
hi,
i feel i'm going on your nerves, apoloigies for that!
this is in bugdb #1393
this one is very easy to reproduce, but i think it need a "parser" guy
to solve, and i belive we should try to get this stuff sorted for 3.0.8!
if anybody gave me a hint what the problem could be - please tell me, and
i will try to help.
regards,
tc
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
---------- Forwarded message ----------
Date: Mon, 17 May 1999 18:42:07 +0200 (CEST)
From: Thies C. Arntzen <thies@digicol.de>
To: Zeev Suraski <zeev@zend.com>
Cc: php4beta@lists.php.net
Subject: [PHP-DEV] [PHP4BETA] Was: php3 Bug #1393 (new example without include or isset)
hi zeev,
i've cut this down so that it's no longer using include or isset.
the problem seems to be NOT defining a function in an expression.
the whole script in question looks like this:
--------
<?php
if (0) { //change this to 1 to see it work.
function tubu(&$testvar)
{ echo $testvar."\n";
}
}
function hallo($var1)
{ echo $var1."\n";
}
hallo("hallo");
?>
--------
if you run this you will get:
Content-type: text/html
PHP 3 Warning: Cannot pass expression as argument 1 by reference in
all.php3 on line 12
<br>
<b>Warning</b>: Cannot pass expression as argument 1 by reference in
<b>all.php3</b> on line <b>12</b><br>
if you change line 2:
if (0)
to
if (1)
it works!
do you see any chance having a look at this now?
regards,
tc
On Fri, 14 May 1999, Zeev Suraski wrote:
> I looked at the bug report. It's sucky and complex enough for me in order
> to avoid looking at it. PHP 3.0 had all the reference stuff and isset()
> implementation in a really clunky way, which I'd really not like to
> investigate again...
>
> Zeev
>
>
> On Fri, 14 May 1999, Thies C. Arntzen wrote:
>
> > hi zeev,
> >
> > do you stull think you'll be able to have a look at it before
> > 3.0.8 - again, don't want to hurry you.
> >
> > regards,
> > tc
> >
> >
> > On Wed, 12 May 1999, Zeev Suraski wrote:
> >
> > > At 00:13 12/05/99 , Zeev Suraski wrote:
> > > >I'll look at it after I finish the current batch of php4 patches...
> > >
> > > I'm going to have to back away from that promise, I *have* to catch some
> > > sleep :I
> > > I'll try to look at it tomorrow.
> > >
> > > Zeev
> > > --
> > > Zeev Suraski <zeev@zend.com>
> > > http://www.zend.com/
> > > For a PGP public key, finger bourbon@netvision.net.il
> > >
> > >
> >
> >
> > Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
> > Digital Collections Phone +49 40 235350 Fax +49 40 23535180
> > Hammerbrookstr. 93 20097 Hamburg / Germany
> >
>
> --
> -----------------------------------------------------
> Zeev Suraski <zeev@zend.com>
> For a PGP public key, finger bourbon@netvision.net.il
>
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
--
PHP 4 Beta
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net