The answer to your question:
<?php
  var_dump((int) 'y');
?>

Regards,
Andrey Hristov

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 6:03 PM
Subject: Bug #15678: isset failed in the latest cvs tree


> From:             [EMAIL PROTECTED]
> 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:      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
> 
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to