[PHP4BETA] Was: php3 Bug #1393 (new example without include or isset)
| From: | Thies C. Arntzen | Date: | Mon, 17 May 1999 16:42:07 +0000 |
| Subject: | [PHP4BETA] Was: php3 Bug #1393 (new example without include or isset) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-886@lists.php.net to get a copy of this message | ||
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