php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64263 Compilation breaks with PHP 5.4
Submitted: 2013-02-21 09:36 UTC Modified: 2013-03-14 16:55 UTC
From: david at davidsteinsland dot net Assigned:
Status: Duplicate Package: memtrack (PECL)
PHP Version: 5.4.11 OS: CentOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david at davidsteinsland dot net
New email:
PHP Version: OS:

 

 [2013-02-21 09:36 UTC] david at davidsteinsland dot net
Description:
------------
Isn't able to compile extension.

Expected result:
----------------
Successful build.

Actual result:
--------------
[root@host]# make
/var/tmp/memtrack-0.2.1/memtrack.c: In function "mt_get_function_name":
/var/tmp/memtrack-0.2.1/memtrack.c:75: warning: assignment discards qualifiers from pointer target type
/var/tmp/memtrack-0.2.1/memtrack.c:77: warning: passing argument 1 of "get_active_class_name" from incompatible pointer type
/usr/include/php/Zend/zend_execute.h:380: note: expected "const char **" but argument is of type "char **"
/var/tmp/memtrack-0.2.1/memtrack.c:77: warning: assignment discards qualifiers from pointer target type
/var/tmp/memtrack-0.2.1/memtrack.c:82: warning: assignment discards qualifiers from pointer target type
/var/tmp/memtrack-0.2.1/memtrack.c:84: warning: assignment discards qualifiers from pointer target type
/var/tmp/memtrack-0.2.1/memtrack.c:88: warning: assignment discards qualifiers from pointer target type
/var/tmp/memtrack-0.2.1/memtrack.c:90: warning: assignment discards qualifiers from pointer target type
/var/tmp/memtrack-0.2.1/memtrack.c:112: error: "znode_op" has no member named "op_type"
/var/tmp/memtrack-0.2.1/memtrack.c:113: error: "znode_op" has no member named "u"
/var/tmp/memtrack-0.2.1/memtrack.c: In function "memtrack_execute":
/var/tmp/memtrack-0.2.1/memtrack.c:341: warning: initialization discards qualifiers from pointer target type
/var/tmp/memtrack-0.2.1/memtrack.c: In function "memtrack_execute_internal":
/var/tmp/memtrack-0.2.1/memtrack.c:383: warning: initialization discards qualifiers from pointer target type
make: *** [memtrack.lo] Error 1


Patches

memtrack.c-path (last revision 2013-02-25 23:53 UTC by david at davidsteinsland dot net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-14 16:55 UTC] jpauli@php.net
-Status: Open +Status: Duplicate
 [2013-03-14 16:55 UTC] jpauli@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Duplicates 62091
 [2013-03-14 19:00 UTC] david at davidsteinsland dot net
It is due to the API change within PHP. I was able to make it compile after I did some changes, but the fact that the extension does not compile with PHP 5.4. is in my opinion a bug.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Nov 30 16:03:36 2021 UTC