From: dmitrysp at yandex dot ru
Operating system: Windows XP
PHP version: 5.0.4
PHP Bug Type: *General Issues
Bug description: Bug in ZendEncoder + is_array()
Description:
------------
Only after encoding in ZendSafeGuard-3.1.0b-Windows-i386.exe: is_array()
return erroneous result.
Reproduce code:
---------------
<?
function test() {
$GLOBALS[$var]=unserialize($buf); // worked, ok
echo gettype($GLOBALS[$var]); // print "array", ok
vad_dump($GLOBALS[$var]); // print array, ok
if (is_array($GLOBALS[$var])) ... // FALSE - BUG
}
?>
Expected result:
----------------
php5 + is_array() + zendencoder must be work.
Actual result:
--------------
in accord manual http://php.net/is_array
--
Edit bug report at http://bugs.php.net/?id=33211&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33211&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33211&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33211&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33211&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33211&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33211&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33211&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33211&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33211&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33211&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33211&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33211&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33211&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33211&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33211&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33211&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33211&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33211&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33211&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33211&r=mysqlcfg