Slashdot Mirror


User: phpsucks

phpsucks's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. PHP 5.0.3 EMPTY() and ISSET() bug on PHP Vulnerabilities Announced · · Score: 1

    Please rate this bug important so that it gets fixed http://bugs.php.net/bug.php?id=31098

  2. warning! 5.0.1 - 5.0.3 "breaks" EMPTY() function on PHP Vulnerabilities Announced · · Score: 3, Informative

    Watch out when upgrading!

    <?
    $a = 'foobar';
    print empty($a->nothere) ? 'empty' : 'not empty';
    ?>

    This code prints 'empty' with 5.0.1, but 'not empty' with 5.0.3.

    You must check all your code for the use of empty() with a string!

    I wish PHP would warn everyone about this sort of thing.

    Here is the man page...nothing said about it: http://www.php.net/empty