|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56455 Compile Bug
Submitted: 2005-07-18 03:35 UTC Modified: 2005-07-18 05:20 UTC
From: bolk at lixil dot ru Assigned:
Status: Closed Package: colorer (PECL)
PHP Version: 5.0.3 OS: Fedora Core 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
7 + 48 = ?
Subscribe to this entry?

 [2005-07-18 03:35 UTC] bolk at lixil dot ru
Compile bug.

gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
PHP 5.0.4

Reproduce code:
phpize && ./configure && make


/usr/src/colorer-0.3/colorer.cpp: In function `void zif_colorer_open(int, zval*, zval*, int)':
/usr/src/colorer-0.3/colorer.cpp:733: error: ISO C++ forbids cast to non-reference type used as lvalue
/usr/src/colorer-0.3/colorer.cpp:734: error: ISO C++ forbids cast to non-reference type used as lvalue
make: *** [colorer.lo] Error 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-18 04:14 UTC] bolk at lixil dot ru
Superpatch ;)

ParserFactory*)colorer->pf = new ParserFactory;
(HRCParser*)colorer->hrc = ((ParserFactory*)colorer->pf)->getHRCParser();

Replace with:

colorer->pf = new ParserFactory;
colorer->hrc = ((ParserFactory*)colorer->pf)->getHRCParser();
 [2005-07-18 05:20 UTC] demenev at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 13:01:27 2019 UTC