php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23 Ifelse bug?
Submitted: 1998-01-30 12:23 UTC Modified: 1998-01-30 14:03 UTC
From: svein dot parnas at sting dot bibsent dot no Assigned:
Status: Closed Package: Other
PHP Version: 3.0 Latest CVS OS: Linux RH5
Private report: No CVE-ID: None
 [1998-01-30 12:23 UTC] svein dot parnas at sting dot bibsent dot no
In a script like this:

if (expr1):
 <dothings1>
elseif (expr2):
 <dothings2>
elseif (expr3):
 <dothings3>
elseif ($a = my_procedure(does some mysql things)):
 <dothings4>
endif;

my_procedure is executed even if expr3 is true
(but dothings3 is done and not dothings 4 as expected).



Svein

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-01-30 14:03 UTC] jim
Fixed in latest CVS and PHP/3.0b4.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC