On Wed, 20 Jun 2001, Sönke Ruempler wrote:
> Yeah,
>
> you repeated my comment - but that is no solution. if that is not a bug,
> there must me an explanation of this....
It's not a bug, it's how empty and unset work. It's just part of the
design of the language. empty and unset are not functions either, but
rather language constructs.
Derick
>
> Bug Database schrieb:
> >
> > ID: 11556
> > Updated by: derick
> > Reported By: [EMAIL PROTECTED]
> > Old-Status: Open
> > Status: Closed
> > Bug Type: Scripting Engine problem
> > Operating system:
> > PHP Version: 4.0.4pl1
> > Assigned To:
> > Comments:
> >
> > Empty can only be used on variables, and not on a return value from a function,
>unless you assign it to a variabele first.
> > This also counts for p.e. unset().
> >
> > Derick
> >
> > Previous Comments:
> > ---------------------------------------------------------------------------
> >
> > [2001-06-19 06:57:08] [EMAIL PROTECTED]
> > } elseif ($submit=="suchen" && !empty(trim($search))) {
> >
> > .....
> >
> > produces parse error:
> >
> > Parse error: parse error, expecting `T_VARIABLE' or `'$'' in
>/web/eisbaer-eis.de/www/download/index.php on line blah
> >
> > ---------------------------------------------------------------------------
> >
> > ATTENTION! Do NOT reply to this email!
> > To reply, use the web interface found at http://bugs.php.net/?id=11556&edit=2
>
> --
>
>
> Mit freundlichem Gruß
> Sönke Ruempler
>
> top concepts Internetmarketing GmbH
> ------------------------------------------------------
> http://www.topconcepts.com Tel. +49 4141 9912 30
> mail: [EMAIL PROTECTED] Fax. +49 4141 9912 33
> ------------------------------------------------------
> 24h-Support Hotline: +49 1908 34697 (€ 1.86/Min,CNS24)
> ------------------------------------------------------
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
Derick Rethans
---------------------------------------------------------------------
PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED]
SRM: Site Resource Manager - www.vl-srm.net
---------------------------------------------------------------------
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]