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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC