[PHP-DEV] PHP 4.0 Bug #6957 Updated: Zend strlen function gets re-defined From: andi <email protected>
Date: 12/17/00

ID: 6957
Updated by: andi
Reported By: chris <email protected>
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 <email protected>
reclassified

---------------------------------------------------------------------------

[2000-09-30 00:08:05] chris <email protected>
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

-- 
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>