Bug 770696

Summary: Issue with PHP code
Product: [Fedora] Fedora Reporter: Remi Collet <fedora>
Component: swigAssignee: Adam Tkac <atkac>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: atkac, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-05 12:30:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix PHP code for php 5.4 none

Description Remi Collet 2011-12-28 11:41:18 UTC
Created attachment 549816 [details]
Fix PHP code for php 5.4

I'm working on PHP 5.4 for fedora 17.

Build of graphiz (which use swig) fails because of generated code

zend_rsrc_list_get_rsrc_type return a const char * (not a char *)

Build error:
gv_php.cpp: In function 'void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)':
gv_php.cpp:933:56: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]


The trivial attached patch fixes this issue and is already applied on swig SVN.

I hope an update (rawhide only), with this patch (or a new swig version, if available) will be possible.

Comment 1 Adam Tkac 2012-01-05 12:30:08 UTC
Thanks for the report, swig-2.0.4-5.fc17 should be OK.