From: dpage at pgadmin dot org Operating system: Windows XP PHP version: 5.2.9 PHP Bug Type: Compile Failure Bug description: VC++ 2005 build error
Description: ------------ Building 5.2.9 with VC++ 2005 results in the error: main\spprintf.c(184) : error C2491: 'strnlen' : definition of dllimport function not allowed This appears to be due to the change here: http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.25.2.2.2.14&r2=1.25.2.2.2.15 The issue is resolved by adding: #define HAVE_STRNLEN 1 to win32/build/config.w32.h.in -- Edit bug report at http://bugs.php.net/?id=47787&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47787&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47787&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47787&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47787&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47787&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47787&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47787&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47787&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47787&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47787&r=support Expected behavior: http://bugs.php.net/fix.php?id=47787&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47787&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47787&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47787&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47787&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47787&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47787&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47787&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47787&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47787&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47787&r=mysqlcfg