php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2611 gcc-2.95.1's libstdc++'s alloc.h conflicts with php's alloc.h
Submitted: 1999-10-26 17:44 UTC Modified: 2000-01-07 05:37 UTC
From: anand_palaniswamy at onebox dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.10 OS: SunOS 5.6
Private report: No CVE-ID: None
 [1999-10-26 17:44 UTC] anand_palaniswamy at onebox dot com
Can't include:

	#include <string>

in php/functions/foo.cc because <string> in libstdc++ distributed with
gcc-2.95.1 includes an alloc.h.  Since php distribution includes an
alloc.h, and compiling foo.cc required -Iphp in the compile command
line <string> ends up including php's alloc.h.  Which gets it awfully
confused about the class alloc.

One solution would be to rename alloc.h to phpalloc.h.   Otherwise
writing php functions in C++ involves solving a minor inconvenience.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-07 05:37 UTC] sas at cvs dot php dot net
Fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 03:01:30 2024 UTC