Bug #70909 [NEW]: a whitespace char will cause bug
| From: | lscgzwd at gmail dot com | Date: | Fri, 13 Nov 2015 10:53:57 +0000 |
| Subject: | Bug #70909 [NEW]: a whitespace char will cause bug | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-197224@lists.php.net to get a copy of this message | ||
From: lscgzwd at gmail dot com
Operating system: mac 10.11,1
PHP version: 7.0.0RC7
Package: Scripting Engine problem
Bug Type: Bug
Bug description:a whitespace char will cause bug
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 bug report at https://bugs.php.net/bug.php?id=70909&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70909&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70909&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70909&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70909&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70909&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70909&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70909&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70909&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70909&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70909&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70909&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70909&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70909&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70909&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70909&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70909&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70909&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70909&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70909&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70909&r=mysqlcfg