note 16486 added to function.settype
| From: | matt at w2r dot com | Date: | Thu, 01 Nov 2001 17:13:19 +0000 |
| Subject: | note 16486 added to function.settype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19980@lists.php.net to get a copy of this message | ||
settype($var,"array");
I have found this to be inconsistent
across different Unix/Linux platforms,
not with PHP versions.
Here is the error I'm getting. The
array should be empty, however the
first element is set to NULL.
$var => Array
(
[0] = // NOTHING....
)
I have found this problem to be true
using a RedHat linux running PHP
4.0.5. It doesn't happen using Solaris
Unix with the same version of PHP.
I also run SuSE Linux with PHP 4.0.5 at
home and the problem is nonexistent.
Another one of my web servers runs
DeBain Linux with PHP 4.0.5 and
everything is fine there as well.
I am lead to believe that the problem
is with RedHat's support libraries for
the PHP binary.
I don't know if this will help anyone,
but this is what I have found...
--
http://www.php.net/manual/en/function.settype.php
http://master.php.net/manage/user-notes.php?action=edit+16486
http://master.php.net/manage/user-notes.php?action=delete+16486
http://master.php.net/manage/user-notes.php?action=reject+16486