#20548 [Opn->Ver]: Decrement ("$x[$y]--") doesn't work on uninitiated variable

From: Date: Fri, 22 Nov 2002 00:11:59 +0000
Subject: #20548 [Opn->Ver]: Decrement ("$x[$y]--") doesn't work on uninitiated variable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25499@lists.php.net to get a copy of this message
ID: 20548 Updated by: iliaa@php.net Reported By: prgallier@yahoo.com -Status: Open +Status: Verified Bug Type: Scripting Engine problem Operating System: Linux 2.4 PHP Version: 4.3.0RC1 Previous Comments: ------------------------------------------------------------------------ [2002-11-21 12:42:11] prgallier@yahoo.com The following: $score[$num]--; does not affect $score[$num] if $score[$num] is uninitiated. Using $score[$num]++ does work, however. This is inconsistent. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20548&edit=1

« previous php.bugs (#25499) next »