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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chris at okanagan dot net
New email:
PHP Version: OS:

 

 [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 29 12:01:32 2024 UTC