php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5045 Need to include iostream.h before php.h when compiling module with a c++ compil
Submitted: 2000-06-15 00:53 UTC Modified: 2000-08-10 08:56 UTC
From: jjhuff at apptechsys dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.0 Release OS: RedHat 6.2
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: jjhuff at apptechsys dot com
New email:
PHP Version: OS:

 

 [2000-06-15 00:53 UTC] jjhuff at apptechsys dot com
In building a dynamicaly loaded php module I needed to compile with g++.  However, I was getting:
In file included from 
/disk2/local/include/php/Zend/zend_globals.h:56,
                 from 
/disk2/local/include/php/Zend/zend_list.h:25,
                 from 
/disk2/local/include/php/Zend/zend_API.h:25,
                 from /disk2/local/include/php/php.h:45,
                 from test.cpp:1:
/disk2/local/include/php/Zend/zend_compile.h:187: syntax error before `*'

I found that if I #included'd iostream.h *before* I included php.h all was fine.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-10 08:56 UTC] sniper@php.net
This should be fixed in php4.0.2-dev (CVS). Reopen if problem persists.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 16:00:02 2026 UTC