PHP 4.0 Bug #6957: Zend strlen function gets re-defined
| From: | chris at okanagan dot net | Date: | Sat, 30 Sep 2000 04:08:05 +0000 |
| Subject: | PHP 4.0 Bug #6957: Zend strlen function gets re-defined | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33896@lists.php.net to get a copy of this message | ||
From: chris@okanagan.net
Operating system: SCO Openserver 5.5
PHP version: 4.0 Latest CVS (29/09/2000)
PHP Bug Type: Compile Problem
Bug description: Zend strlen function gets re-defined
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