Date: 09/29/00
- Next message: robert.duncombe <email protected>: "[PHP-DEV] PHP 4.0 Bug #6939: Netscape Fails to start with and unreferenced symbol __builtin_vec_delete"
- Previous message: Account Service: "[PHP-DEV] Print Bankable Checks Yourself !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6937
Updated by: andi
Reported By: mattw <email protected>
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
You need to use parentheses because + and . have the same operator precedence.
Previous Comments:
---------------------------------------------------------------------------
[2000-09-29 06:41:55] mattw <email protected>
Duh. Of course, C doesn't have an echo() function; I meant that subexpression parsing should presumably work the same way (parentheses should not be required between neighbor arguments/concat operators).
- Matt Waggoner
---------------------------------------------------------------------------
[2000-09-29 06:38:17] mattw <email protected>
If $NumFixes = 2, then the following lines of code:
echo("Num fixes: [" . $NumFixes - 1 . "]n");
echo("Num fixes: [" . ($NumFixes - 1) . "]n");
Produce this output:
-1]
Num fixes: [1]
I assumed that the echo function, at least, worked the same way in PHP as it does in C. C doesn't have a concatenation operator though, and maybe this is as intended. (If it's not, then please fix it, because although the second line of code is "cleaner", the first line should work *anyway*.)
- Matt Waggoner, mattw <email protected>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6937
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: robert.duncombe <email protected>: "[PHP-DEV] PHP 4.0 Bug #6939: Netscape Fails to start with and unreferenced symbol __builtin_vec_delete"
- Previous message: Account Service: "[PHP-DEV] Print Bankable Checks Yourself !"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

