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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC