#49574 [Opn->Csd]: PHP syntax error in run-tests.php
| From: | deminy at deminy dot net | Date: | Thu, 17 Sep 2009 00:50:28 +0000 |
| Subject: | #49574 [Opn->Csd]: PHP syntax error in run-tests.php | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142441@lists.php.net to get a copy of this message | ||
ID: 49574
User updated by: deminy at deminy dot net
Reported By: deminy at deminy dot net
-Status: Open
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: OS-unrelated
PHP Version: 5.3SVN-2009-09-17 (SVN)
New Comment:
I did some tests and found out the syntax is actually right (at least
with PHP 5.2.10 on Ubuntu) :) So it is not a bug, however, I couldn't
find any documentation/post/article describing this mysterious syntax.
It will be very nice if someone can document it in the Strings section
of PHP Manual. thanks
Previous Comments:
------------------------------------------------------------------------
[2009-09-17 00:28:08] deminy at deminy dot net
Description:
------------
By making a 'svn diff' on PHP v3.0 and PHP v3.0.1RC1, I found following
changes (which also exists in
http://svn.php.net/repository/php/php-src/branches/PHP_5_3/run-tests.php
rev 286503 (latest revision):
Index: run-tests.php
===================================================================
--- run-tests.php (.../php_5_3_0) (revision 288389)
+++ run-tests.php (.../php_5_3_1RC1) (revision 288389)
@@ -1023,7 +1023,7 @@
{
global $leak_check, $cwd;
- $data = '';
+ $data = b'';
$bin_env = array();
foreach((array)$env as $key => $value) {
@@ -1059,23 +1059,23 @@
break;
} else if ($n === 0) {
/* timed out */
- $data .= "\n ** ERROR: process timed out **\n";
+ $data .= b"\n ** ERROR: process timed out **\n";
Obviously the change introduced some PHP syntax errors.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49574&edit=1