Re: Bug #15678: isset failed in the latest cvs tree
| From: | Andrey Hristov | Date: | Fri, 22 Feb 2002 16:09:44 +0000 |
| Subject: | Re: Bug #15678: isset failed in the latest cvs tree | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80305@lists.php.net to get a copy of this message | ||
The answer to your question:
<?php
var_dump((int) 'y');
?>
Regards,
Andrey Hristov
----- Original Message -----
From: <alberty@neptunelabs.de>
To: <php-bugs@lists.php.net>
Sent: Friday, February 22, 2002 6:03 PM
Subject: Bug #15678: isset failed in the latest cvs tree
> From: alberty@neptunelabs.de
> Operating system: i686-pc-linux-gnu
> PHP version: 4.0CVS-2002-02-22
> PHP Bug Type: Variables related
> Bug description: isset failed in the latest cvs tree
>
> hi,
>
> the declaration of a second dimension in a normal array results
> a strange array content.
>
> <?php
> $x['c']='foo';
> $x['c']['d']='bar';
> print_r($x);
> ?>
>
> results:
>
> Array
> (
> [c] => boo
> )
>
> is this a normal behavior?
>
> i think this ist completely wrong, because 'd' is not string position 1.
>
> Also a normal condition like
>
> <?php
> $x['c']='foo';
> if (isset($x['c']['y'])) echo 'yep';
> else echo 'no';
> ?>
>
> results true ... but it is absolutely not true
>
> i have test it on linux with the lastest cvs tree php version.
>
> regards,
>
> Steve
> --
> Edit bug report at http://bugs.php.net/?id=15678&edit=1
> --
> Fixed in CVS:
> http://bugs.php.net/fix.php?id=15678&r=fixedcvs
> Fixed in release:
> http://bugs.php.net/fix.php?id=15678&r=alreadyfixed
> Need backtrace: "X
> „i_Zÿ2&7Ÿ¼http://bugs.php.net/fix.php?id=15678&r=needtrace
> Try newer version:
> http://bugs.php.net/fix.php?id=15678&r=oldversion
> Not developer issue:
> http://bugs.php.net/fix.php?id=15678&r=support
> Expected behavior:
> http://bugs.php.net/fix.php?id=15678&r=notwrong
> Not enough info:
> http://bugs.php.net/fix.php?id=15678&r=notenoughinfo
> Submitted twice:
> http://bugs.php.net/fix.php?id=15678&r=submittedtwice
>
>