|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-01 15:08 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 17:00:01 2025 UTC |
Description: ------------ Only the last var in an if statement with function call is returned as expected. The other types are changed to bool. Debian Linux 3.1 Server API Apache 2.0 Handler Default Debian installation Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-16 Reproduce code: --------------- <?php function test($string){ return ($string); } if( $a = test("a") && $b = test("b") && $c = test("c") ){ echo $a; echo $b; echo $c; } ?> Expected result: ---------------- abc Actual result: -------------- 11c