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

From: Date: Wed, 29 Nov 2000 09:43:48 +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-39469@lists.php.net to get a copy of this message
ID: 6957 Updated by: sniper Reported By: chris@okanagan.net Status: Open Bug Type: Compile Failure Assigned To: Comments: reclassified Previous Comments: --------------------------------------------------------------------------- [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 (#39469) next »