[PHP-DEV] PHP 4.0 Bug #6957: Zend strlen function gets re-defined From: chris <email protected>
Date: 09/30/00

From: chris <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>