From: thug at thug dot fr Operating system: win XP PHP version: 5.2.4 PHP Bug Type: Unknown/Other Function Bug description: function no execution in if condition
Description: ------------ When using a function in a if() condition, the function is not always launched. Reproduce code: --------------- if( !$something && !aff_new_com('news', $last_time) && !aff_new_com('ftp', $last_time) ) Expected result: ---------------- if( $bool && fct($a) && fct($b)) Then fct($a) and fct($b) are not launched if( funcct($a) && $bool && fct($b)) Then fct($a) is launched but not fct($b) fct return always true or false Actual result: -------------- All functions in the if should be launched. -- Edit bug report at http://bugs.php.net/?id=42662&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42662&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42662&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42662&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42662&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42662&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42662&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42662&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42662&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42662&r=support Expected behavior: http://bugs.php.net/fix.php?id=42662&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42662&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42662&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42662&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42662&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42662&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42662&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42662&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42662&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42662&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42662&r=mysqlcfg