Bug 1356985 - Support for PHP7
Summary: Support for PHP7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: swig
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1350620
TreeView+ depends on / blocked
 
Reported: 2016-07-15 12:22 UTC by Jaroslav Škarvada
Modified: 2017-01-14 03:50 UTC (History)
3 users (show)

Fixed In Version: swig-3.0.11-1.fc26 swig-3.0.11-1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-14 03:50:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Škarvada 2016-07-15 12:22:23 UTC
Description of problem:
Swig doesn't seem to support php7 which is causing several build failures. E.g. graphviz. I had to disable the php bindings till resolved.

Version-Release number of selected component (if applicable):
swig-3.0.10-1.fc25

How reproducible:
Always

Steps to Reproduce:
1. try to rebuild graphviz with enabled php

Actual results:
Fails on various zend* syntax errors.

Expected results:
No errors.

Additional info:
Swig upstream is aware of the problem:
https://github.com/swig/swig/issues/571

Comment 1 Jaroslav Škarvada 2016-07-15 12:23:49 UTC
I opened this bug to track the problem downstream.

Comment 2 Jan Kurik 2016-07-26 04:26:31 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 3 Sergio Basto 2016-11-29 23:49:31 UTC
Also mlt https://github.com/mltframework/mlt/issues/125

just add the note and add me in CC .

Comment 4 Jitka Plesnikova 2017-01-05 07:52:10 UTC
SWIG 3.0.11 added PHP 7 support.

To generate valid PHP 7 code use option -php7 instead of -php

In case of graphviz, just add following line after 'autoreconf' in spec file. I tested it and it works.

sed -i 's|-php5|-php7|g' configure

Comment 5 Fedora Update System 2017-01-05 07:53:48 UTC
swig-3.0.11-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-4de02db3de

Comment 6 Fedora Update System 2017-01-05 23:50:35 UTC
swig-3.0.11-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-4de02db3de

Comment 7 Fedora Update System 2017-01-14 03:50:31 UTC
swig-3.0.11-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.