PHP 4.0 Bug #6957 Updated: Zend strlen function gets re-defined

From: Date: Sun, 17 Dec 2000 20:52:34 +0000
Subject: PHP 4.0 Bug #6957 Updated: Zend strlen function gets re-defined
Groups: php.dev 
Request: Send a blank email to php-dev+get-41693@lists.php.net to get a copy of this message
ID: 6957 Updated by: andi Reported By: chris@okanagan.net Old-Status: Open Status: Closed Bug Type: Compile Failure Assigned To: Comments: Please try the latest CVS of Zend (or snapshot from snaps.php.net). It should be fixed now. Previous Comments: --------------------------------------------------------------------------- [2000-11-29 04:43:48] sniper@php.net reclassified --------------------------------------------------------------------------- [2000-09-30 00:08:05] chris@okanagan.net the generic SCO compiler re-defines the ZEND_FUNCTION(strlen) as __std_hdr_strlen in zend_builtin_functions..c I got around the problem by inserting #undef __USLC__ at the top of the file. This of course is not the correct way to patch it...... snippet from <string.h> for SCO #if !defined(__cplusplus) && defined(__USLC__) /* Use intrinsic ??? */ #ifndef strlen #define strlen __std_hdr_strlen #endif #ifndef strcpy #define strcpy __std_hdr_strcpy #endif #ifndef strncpy #define strncpy __std_hdr_strncpy #endif #endif --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6957

« previous php.dev (#41693) next »