php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bolk at lixil dot ru
New email:
PHP Version: OS:

 

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

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

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

[skip]

/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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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
http://pecl.php.net/get/colorer


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 01:01:26 2019 UTC