php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9361 C++ compiler causes failures
Submitted: 2001-02-20 17:22 UTC Modified: 2001-02-21 02:33 UTC
From: amra at us dot ibm dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: OS400
Private report: No CVE-ID: None
 [2001-02-20 17:22 UTC] amra at us dot ibm dot com
When using a C++ compiler on OS/400, a lot of files fail to compile.  (Note that my other bug reports was using a C compiler.)  Most of the failures has to do with returned pointers from emalloc, erealloc, malloc and realloc.  These functions are returning a void pointer and are not being cast to the data type of the variable receiving the pointer.  I hope that this can be changed.   Some of the code does cast, but most do not.  



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-21 02:33 UTC] sas@php.net
Why would you want to compile a C program using a C++ compiler?

There are certain subtle differences in the languages; I don't think it is feasible (if possible at all) to try to make PHP completely buildable using a C++ compiler.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 04:01:31 2024 UTC