Bug #70909 [Opn->Nab]: a whitespace char will cause bug
| From: | requinix@php.net | Date: | Fri, 13 Nov 2015 12:26:48 +0000 |
| Subject: | Bug #70909 [Opn->Nab]: a whitespace char will cause bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197230@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70909&edit=1
ID: 70909
Updated by: requinix@php.net
Reported by: lscgzwd at gmail dot com
Summary: a whitespace char will cause bug
-Status: Open
+Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: mac 10.11,1
PHP Version: 7.0.0RC7
Block user comment: N
Private report: N
New Comment:
It's probably a non-breaking space. Be more careful when copying stuff that way.
Previous Comments:
------------------------------------------------------------------------
[2015-11-13 10:53:55] lscgzwd at gmail dot com
Description:
------------
when I copy some text from excel to my sublime text editor, I quote all the chars I can see with
"", bug when I run my script it shows parse error. Then I use zend studio open that
script and show all whitespace, I see a whitespace char not in \t\n\s\t ï¼I do not known what is
that .
I do not known the test script editor should lose that white space .
Error show :
PHP Parse error: syntax error, unexpected 'ã' (T_STRING), expecting ',' or
';' in /private/var/log/test.php on line 2
Parse error: syntax error, unexpected 'ã' (T_STRING), expecting ',' or
';' in /private/var/log/test.php on line 2
Test script:
---------------
<?php
echo phpinfo();ã;
$a = "aaaa";ã
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70909&edit=1