From:             pluggz24 at yahoo dot com
Operating system: Slackware Linux 8.1, Windows XP
PHP version:      4.3.2
PHP Bug Type:     Class/Object related
Bug description:  ternary returns by-value rather than by-reference, although if/else 
works fine

Description:
------------
a sample script/output demonstrating/explaining this bug can be found
here:

http://republic.acmeshells.com/~plugged/ternary_bug.txt

Reproduce code:
---------------
http://republic.acmeshells.com/~plugged/ternary_bug.txt

Expected result:
----------------
test using if/else:
  $b->var:      hi
  $a->var->var: hi

test using ternary:
  $b->var:      hi
  $a->var->var: hi

Actual result:
--------------
test using if/else:
  $b->var:      hi
  $a->var->var: hi

test using ternary:
  $b->var:      hi
  $a->var->var: hello

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

Reply via email to