php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58781 Compilation error (5.3, runkit-CVS)
Submitted: 2009-07-30 14:19 UTC Modified: 2013-02-23 11:16 UTC
From: kak dot serpom dot po dot yaitsam at gmail dot com Assigned: pollita (profile)
Status: Closed Package: runkit (PECL)
PHP Version: 5.3.0RC4 OS: FreeBSD
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: kak dot serpom dot po dot yaitsam at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-30 14:19 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
Description:
------------
/root/runkit/trunk/runkit/trunk/runkit_import.c: In function 'php_runkit_import_class_methods':
/root/runkit/trunk/runkit/trunk/runkit_import.c:129: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_import.c:129: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_import.c:129: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_import.c:141: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_import.c:141: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_import.c:141: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_import.c: In function 'php_runkit_import_class_consts':
/root/runkit/trunk/runkit/trunk/runkit_import.c:188: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_import.c:188: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_import.c:188: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_import.c: In function 'php_runkit_import_class_props':
/root/runkit/trunk/runkit/trunk/runkit_import.c:238: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_import.c:238: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_import.c:238: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/bin/sh /root/runkit/trunk/runkit/trunk/libtool --mode=compile cc  -I. -I/root/runkit/trunk/runkit/trunk -DPHP_ATOM_INC -I/root/runkit/trunk/runkit/trunk/include -I/root/runkit/trunk/runkit/trunk/main -I/root/runkit/trunk/runkit/trunk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/runkit/trunk/runkit/trunk/runkit_classes.c -o runkit_classes.lo
 cc -I. -I/root/runkit/trunk/runkit/trunk -DPHP_ATOM_INC -I/root/runkit/trunk/runkit/trunk/include -I/root/runkit/trunk/runkit/trunk/main -I/root/runkit/trunk/runkit/trunk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/runkit/trunk/runkit/trunk/runkit_classes.c  -fPIC -DPIC -o .libs/runkit_classes.o
/root/runkit/trunk/runkit/trunk/runkit_classes.c: In function 'php_runkit_remove_inherited_methods':
/root/runkit/trunk/runkit/trunk/runkit_classes.c:35: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_classes.c:35: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_classes.c:35: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_classes.c: In function 'php_runkit_inherit_methods':
/root/runkit/trunk/runkit/trunk/runkit_classes.c:82: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_classes.c:82: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_classes.c:82: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/bin/sh /root/runkit/trunk/runkit/trunk/libtool --mode=compile cc  -I. -I/root/runkit/trunk/runkit/trunk -DPHP_ATOM_INC -I/root/runkit/trunk/runkit/trunk/include -I/root/runkit/trunk/runkit/trunk/main -I/root/runkit/trunk/runkit/trunk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/runkit/trunk/runkit/trunk/runkit_sandbox.c -o runkit_sandbox.lo
 cc -I. -I/root/runkit/trunk/runkit/trunk -DPHP_ATOM_INC -I/root/runkit/trunk/runkit/trunk/include -I/root/runkit/trunk/runkit/trunk/main -I/root/runkit/trunk/runkit/trunk -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/runkit/trunk/runkit/trunk/runkit_sandbox.c  -fPIC -DPIC -o .libs/runkit_sandbox.o
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_array_deep_copy':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:59: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:59: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:59: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:59: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:59: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'zim_Runkit_Sandbox___call':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:359: error: too few arguments to function 'zend_is_callable'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:375: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:375: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:375: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:375: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:375: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:415: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:415: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:415: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:415: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:415: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_include_or_eval':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:474: error: too few arguments to function 'zend_file_handle_dtor'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:514: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:514: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:514: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:514: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:514: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_read_property':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:732: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:732: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:732: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:732: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:732: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:733: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_write_property':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:769: warning: passing argument 2 of 'zend_hash_apply_with_arguments' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:769: warning: passing argument 3 of 'zend_hash_apply_with_arguments' makes pointer from integer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:769: warning: passing argument 4 of 'zend_hash_apply_with_arguments' makes integer from pointer without a cast
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:769: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:769: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_has_property':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:806: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_unset_property':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:880: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_sapi_ub_write':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:928: error: too few arguments to function 'zend_is_callable'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_sapi_flush':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:990: error: too few arguments to function 'zend_is_callable'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_sapi_header_handler':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1104: error: incompatible type for argument 2 of 'php_runkit_sandbox_original_sapi.header_handler'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1104: warning: passing argument 3 of 'php_runkit_sandbox_original_sapi.header_handler' from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1104: error: too few arguments to function 'php_runkit_sandbox_original_sapi.header_handler'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'zif_runkit_sandbox_output_handler':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1395: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1396: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1402: error: too few arguments to function 'zend_is_callable'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1416: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1417: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1433: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1437: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1438: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1440: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_output_handler_setter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1494: error: too few arguments to function 'zend_is_callable'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1502: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_scope_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1517: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_active_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1559: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1559: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_access_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1560: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1560: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_read_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1561: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1561: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_write_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1562: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1562: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_eval_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1563: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1563: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_include_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1564: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1564: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_echo_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1565: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1565: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_call_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1566: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1566: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_parent_die_getter':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1567: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1567: error: 'zval' has no member named 'is_ref'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: At top level:
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1577: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1580: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1581: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1582: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1583: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1584: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1585: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1586: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1587: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1588: warning: initialization from incompatible pointer type
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_read_dimension':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1623: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_write_dimension':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1659: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_sandbox_has_dimension':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1695: error: 'zval' has no member named 'refcount'
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c: In function 'php_runkit_init_sandbox':
/root/runkit/trunk/runkit/trunk/runkit_sandbox.c:1828: warning: assignment from incompatible pointer type
*** Error code 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-15 16:38 UTC] duchnoun at free dot fr
Same problems on Debian (php 5.3.0)
 [2011-02-19 12:39 UTC] fgm at osinet dot fr
Same problem on Ubuntu 10.10 with 0.9.

Problem goes away when using the latest SVN version (r297236), but then both examples on http://php.net/manual/en/function.runkit-function-redefine.php cause a segmentation error when invoking the redefined function (not the runkit_function_redefine() call itself).
 [2011-02-19 16:39 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
Use https://github.com/zenovich/runkit
 [2013-02-23 11:16 UTC] pollita@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 [2013-02-23 11:16 UTC] pollita@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2013-02-23 11:22 UTC] kakserpompoyaitsam at gmail dot com
Thank you for the swift reaction.
Here is the modern version of runkit: https://github.com/zenovich/runkit
Please consider merging. Thank you in advance.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 03:01:29 2024 UTC