php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70909 a whitespace char will cause bug
Submitted: 2015-11-13 10:53 UTC Modified: 2015-11-13 12:26 UTC
From: lscgzwd at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 7.0.0RC7 OS: mac 10.11,1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lscgzwd at gmail dot com
New email:
PHP Version: OS:

 

 [2015-11-13 10:53 UTC] 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"; 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-13 12:26 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2015-11-13 12:26 UTC] requinix@php.net
It's probably a non-breaking space. Be more careful when copying stuff that way.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 09:01:28 2024 UTC