php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Thank you for your help! If the status of the bug report you submitted changes, you will be notified. You may return here and check the status or update your report at any time.
The URL for your bug report is: https://bugs.php.net/bug.php?id=33211.
Bug #33211 Bug in ZendEncoder + is_array()
Submitted: 2005-06-01 13:22 UTC Modified: 2005-06-01 13:33 UTC
From: dmitrysp at yandex dot ru Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.4 OS: Windows XP
Private report: No CVE-ID: None
 [2005-06-01 13:22 UTC] dmitrysp at yandex dot ru
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-01 13:33 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Please use Support Center for reporting issues related to Zend products: http://www.zend.com/support/.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Feb 24 03:01:29 2025 UTC