From: akrosung at gmail dot com Operating system: Solaris 9 PHP version: 5.0.1 PHP Bug Type: Compile Failure Bug description: C++ comments in C code
Description: ------------ Line 1103 in Installation directory $NSTALL_ROOT/php-5.0.1/Zend/zend_compile.c lcname[sizeof(lcname)-1] = '\0'; // zend_str_tolower_copy won't necessarily set the zero byte/ Comment is in C++ format and crashes the "make" Replaced the comment with /* .. */ enclosing it and it compiles fine. Reproduce code: --------------- Use Solaris 9 with apache 1.3.31 Sun Forte 6 compilers # ./configure # make Expected result: ---------------- ... Build complete. (It is safe to ignore warnings about tempnam and tmpnam). Actual result: -------------- ... /opt/SUNWspro/bin/cc -IZend/ -I/home/akrosung/INSTALL/newweb/php-5.0.1/Zend/ -DPHP_ATOM_INC -I/home/akrosung/INSTALL/newweb/php-5.0.1/include -I/home/akrosung/INSTALL/newweb/php-5.0.1/main -I/home/akrosung/INSTALL/newweb/php-5.0.1 -I/home/akrosung/INSTALL/newweb/php-5.0.1/Zend -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/imap-2001a//include -I/usr/netscape/include -I/usr/local/mysql/include -D_POSIX_PTHREAD_SEMANTICS -I/home/akrosung/INSTALL/newweb/php-5.0.1/TSRM -g -c /home/akrosung/INSTALL/newweb/php-5.0.1/Zend/zend_compile.c -o Zend/zend_compile.o && echo > Zend/zend_compile.lo "/home/akrosung/INSTALL/newweb/php-5.0.1/Zend/zend_compile.c", line 1103: syntax error before or at: / "/home/akrosung/INSTALL/newweb/php-5.0.1/Zend/zend_compile.c", line 1103: newline in character constant "/home/akrosung/INSTALL/newweb/php-5.0.1/Zend/zend_compile.c", line 1103: warning: character constant too long "/home/akrosung/INSTALL/newweb/php-5.0.1/Zend/zend_compile.c", line 1108: cannot recover from previous errors cc: acomp failed for /home/akrosung/INSTALL/newweb/php-5.0.1/Zend/zend_compile.c *** Error code 2 make: Fatal error: Command failed for target `Zend/zend_compile.lo' -- Edit bug report at http://bugs.php.net/?id=29777&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29777&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29777&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29777&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29777&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29777&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29777&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29777&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29777&r=support Expected behavior: http://bugs.php.net/fix.php?id=29777&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29777&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29777&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29777&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29777&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29777&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29777&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29777&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29777&r=float