|
|
 |
php-dev
#50112 [NEW]: compile error with Non-Engish Operating system
by Ben Dot Yan At Msn Dot Com other posts by this author
Nov 7 2009 2:49AM messages near this date
Re: [PHP-DEV] Regarding constructions like func()[0]
|
#50112 [Asn]: compile error with Non-Engish Operating system
From: ben dot yan at msn dot com
Operating system: Windows
PHP version: 5.3.0
PHP Bug Type: Compile Failure
Bug description: compile error with Non-Engish Operating system
Description:
------------
ext\standard\browscap.c : warning C4819: The file contains a character
that cannot be represented in the current code page (936). Save the file in
Unicode format to prevent data loss
ext\standard\browscap.c(61) : error C2001: newline in constant
ext\standard\browscap.c(62) : warning C4305: '=' : truncation from 'int'
to 'char'
ext\standard\browscap.c(62) : error C2146: syntax error : missing ';'
before identifier 't'
ext\standard\browscap.c(89) : error C2001: newline in constant
ext\standard\browscap.c(90) : error C2146: syntax error : missing ':'
before identifier 't'
ext\standard\browscap.c(91) : error C2001: newline in constant
ext\standard\browscap.c(92) : warning C4305: '=' : truncation from 'int'
to 'char'
ext\standard\browscap.c(92) : error C2143: syntax error : missing ';'
before 'break'
ext\standard\browscap.c(100) : error C2001: newline in constant
ext\standard\browscap.c(102) : warning C4305: '=' : truncation from 'int'
to 'char'
ext\standard\browscap.c(102) : error C2146: syntax error : missing ';'
before identifier 't'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin\cl.exe"' : return code '0x2'
Stop.
Reproduce code:
---------------
setting:
[Control Panel]-> [Regional and Language Options]->[Advanced]->[Language
for non-Unicode programs]
if ($select == "English (United States)") {
// compile successfully. :)
} else if ($select == "Chinese (PRC)"){
// compile error! :(
}
OS: Windows XP Home
IDE: VC++ 2008 Express + SDK v6.1
PHP: 5.3.0
Expected result:
----------------
compile successfully
Actual result:
--------------
compile error
--
Edit bug report at http://bugs.php.net/?id=50112&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50112&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50112&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50112&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50112&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50112&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50112&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50112&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50112&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50112&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50112&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50112&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50112&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50112&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50112&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50112&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50112&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50112&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50112&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50112&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50112&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50112&r=mysqlcfg
Thread:
Ben Dot Yan At Msn Dot Com
Ben Dot Yan At Msn Dot Com
pajoye
|
|
|
 |
|