From:             per at katrineholm dot org
Operating system: Linux
PHP version:      4.4.1
PHP Bug Type:     Output Control
Bug description:  Expected if-clause result not performed

Description:
------------
Two if-clauses are not outputting the same result as they should.

Reproduce code:
---------------
<?php
$a = "abc";
$b = "abcd";

/* Example 1: */
if ($a != $b) {
        echo "This one doesn't.";
}

/* Example 2: */
if (! $a == $b) {
        echo "This works fine.";
}
?>

Expected result:
----------------
Both example 1 and 2 outputs the written strings.

Actual result:
--------------
Only example 1 outputs the expected result.

-- 
Edit bug report at http://bugs.php.net/?id=35109&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35109&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35109&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35109&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35109&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35109&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35109&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35109&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35109&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35109&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35109&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35109&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35109&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35109&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35109&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35109&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35109&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35109&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35109&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35109&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35109&r=mysqlcfg

Reply via email to