php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6957 Zend strlen function gets re-defined
Submitted: 2000-09-30 00:08 UTC Modified: 2000-12-17 15:52 UTC
From: chris at okanagan dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (29/09/2000) OS: SCO Openserver 5.5
Private report: No CVE-ID: None
 [2000-09-30 00:08 UTC] chris at okanagan dot 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                                        

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-29 04:43 UTC] sniper@php.net
reclassified
 [2000-12-17 15:52 UTC] andi@php.net
Please try the latest CVS of Zend (or snapshot from snaps.php.net). It should be fixed now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 19:01:34 2024 UTC