Re: Serious bug ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marco Kaiser wrote:
Hi,

i tested it with php 5.1.3-dev snap and it works correctly for me.

btw. $return = $notdefined_variable; is a bad style for coding and this
happens in your situation in a undefined behavior.
If you think this is a bug please go to http://bugs.php.net and report them
there.


I checked on bugs.php.net and apparently it was resolved meanwhile (I was testing it on server with older PHP), and they don't take bug reports on previous versions. I should have checked before posting here, my bad :)

Btw, I agree, bad style, but I like doing this:

$id = max(0, (int)@$_GET['id']);

a lot more than writing isset() ? :

--

    Open source PHP code generator for DB operations
    http://sourceforge.net/projects/bfrcg/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux