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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 14:00:02 2025 UTC