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
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: anand_palaniswamy at onebox dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-07 05:37 UTC] sas at cvs dot php dot net
Fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 00:00:01 2026 UTC