Bug #18199: is_array check fails???

From: Date: Sat, 06 Jul 2002 11:52:28 +0000
Subject: Bug #18199: is_array check fails???
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13304@lists.php.net to get a copy of this message
From: webmaster@aglaea.net Operating system: Linux PHP version: 4.1.2 PHP Bug Type: Arrays related Bug description: is_array check fails??? Unless I'm dementing fast, this bit of code: $teams = $league->getTeams(); if (is_array($teams)) { array_walk($teams, 'InDiv'); } should not do the array_walk when $teams is either 'null' or '0', but in my page, it keeps on trying to do the array_walk, which obviously goes wrong. I've also tried: if ($teams) { and if ($teams != null) you can see the precise details of my PHP-version and system at www.korfballworld.com/test/info.php -- Edit bug report at http://bugs.php.net/?id=18199&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18199&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18199&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18199&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18199&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18199&r=support Expected behavior: http://bugs.php.net/fix.php?id=18199&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18199&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18199&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18199&r=globals

« previous php.bugs (#13304) next »