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

From: Date: Mon, 18 Dec 2000 17:32:47 +0000
Subject: Re: PHP 4.0 Bug #6957 Updated: Zend strlen function gets re-defined
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-41796@lists.php.net to get a copy of this message
this problen is fixed thank you At 08:52 PM 12/17/00 +0000, you wrote:
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 (#41796) next »