Re: PHP 4.0 Bug #8415: - if - returns an error!
| From: | chrisv at b0rked dot dhs dot org | Date: | Mon, 25 Dec 2000 16:03:40 +0000 |
| Subject: | Re: PHP 4.0 Bug #8415: - if - returns an error! | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42258@lists.php.net to get a copy of this message | ||
It's not a bug. The proper form of that would be:
if (!isset($action) || ($action == "")) {
Chris
On 25 Dec 2000 flow@flowsworld.com wrote:
> From: flow@flowsworld.com
> Operating system: windows 98se
> PHP version: 4.0.4
> PHP Bug Type: *General Issues
> Bug description: - if - returns an error!
>
> hi!
> i'm not a user who is doing so much with php but is think i found a bug in the newest
> version. i can't belive that its really one but i can't find anywhere an answer! (sorry
> for my bad english! i come from austria :))
> a normal if-condition like that:
>
> <script language="php"> if ($action=="") { </script>
>
> returns this error:
> Warning: Undefined variable: action in G:\[...path...]\index.php on line 42
>
> i don't know if this is a bug or not - the QA has tested this version very hard so i
> can't belive it!!! in all the past php-versions it worked! - if its not a bug, i' sorry
> for teasing you!
>
> cu
> your flow nex
>
>
> --
> Edit Bug report at: http://bugs.php.net/?id=8415&edit=1
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>