|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29459 Parser loses output of simple expression ending with an addition.
Submitted: 2004-07-30 18:14 UTC Modified: 2004-08-05 23:09 UTC
From: c dot lohl at web dot de Assigned:
Status: Not a bug Package: *Math Functions
PHP Version: 4.3.7 OS: Win2k Server
Private report: No CVE-ID: None
 [2004-07-30 18:14 UTC] c dot lohl at web dot de
The parser loses the first part of the output of an expression containig numbers and strings with a simple addition at the end.

Environment: Win2k Server (SP4) with Apache 2.0.50 and PHP 4.3.7 (installed via TSW 3.3.3), no changes in php.ini (but the paths).
Sorry if this information does not fit your needs, I'm totally new to PHP (found this problem reading a tutorial...)

Reproduce code:
  echo "This doesn't work: <br>";
  $i = 16;
  $j = 26;
  echo $i."+".$j."=".$i+$j;

  echo "<br> No problem with this: <br>";
  $k = 42;
  echo $i."+".$j."=".$k;

Expected result:
Output: 16+28=42

Actual result:
Output: 42


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-30 18:16 UTC] c dot lohl at web dot de
Sorry, forgot this: the problem does not occur with operators  -, *, /.
 [2004-08-05 23:09 UTC]
echo $i."+".$j."=".($i+$j); will work much better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 21 05:03:38 2023 UTC