php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70587 0.13.0 is not compatible with PHP7, and I made the patch
Submitted: 2015-09-26 09:03 UTC Modified: 2018-07-08 13:53 UTC
Votes:8
Avg. Score:4.0 ± 1.1
Reproduced:7 of 7 (100.0%)
Same Version:5 (71.4%)
Same OS:6 (85.7%)
From: sohuxuxing at hotmail dot com Assigned: derick (profile)
Status: Closed Package: vld (PECL)
PHP Version: 7.0.0RC3 OS: Linux
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: sohuxuxing at hotmail dot com
New email:
PHP Version: OS:

 

 [2015-09-26 09:03 UTC] sohuxuxing at hotmail dot com
Description:
------------
Under php-7.0.0beta3, vld-0.13.0 cannot be installed successfully. It will cause Segmentfault.
After I resolved the installation problem, I found the dump oparray is uncorrect. So I fixed it.


Patches

vld-0.13.0-compatible-php7-patch (last revision 2015-09-26 09:05 UTC by sohuxuxing at hotmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-11 13:41 UTC] felipe@php.net
-Assigned To: +Assigned To: derick
 [2016-10-21 12:15 UTC] spam2 at rhsoft dot net
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (vld-0.13.0-compatible-php7.patch):'
Patch #1 (vld-0.13.0-compatible-php7.patch):
+ /usr/bin/patch -p1 --fuzz=0
if it only would be applyable as-it-is in a rpmbuild....

can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN vld-0.13.0/php_vld.h vld-0.13.0_compatible_php7/php_vld.h
|--- vld-0.13.0/php_vld.h       2014-11-14 19:29:32.000000000 +0800
|+++ vld-0.13.0_compatible_php7/php_vld.h       2015-09-26 16:45:22.000000000 +0800
--------------------------
File to patch:
 [2016-10-21 12:18 UTC] spam2 at rhsoft dot net
nevermind - with "%patch1 -p0" it get applied - anyways, a year after PHP7 final release it should not be needed to still apply patches for pecl extensions
 [2016-10-21 12:27 UTC] spam2 at rhsoft dot net
it builds, but it won't load

extension = "vld.so"
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/vld.so' - /usr/lib64/php/modules/vld.so: undefined symbol: vld_dump_zval_undef in Unknown on line 0

zend_extension = "vld.so"
Failed loading /usr/lib64/php/modules/vld.so:  /usr/lib64/php/modules/vld.so: undefined symbol: vld_dump_zval_undef
 [2016-10-21 12:31 UTC] spam2 at rhsoft dot net
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/srm_oparray.c: In function 'vld_dump_zval':
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/srm_oparray.c:411:34: warning: implicit declaration of function 'vld_dump_zval_undef' [-Wimplicit-function-declaration]
   case IS_UNDEF:          return vld_dump_zval_undef (val.value);
                                  ^~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/srm_oparray.c:414:34: warning: implicit declaration of function 'vld_dump_zval_reference' [-Wimplicit-function-declaration]
   case IS_REFERENCE:      return vld_dump_zval_reference (val.value);
                                  ^~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/srm_oparray.c:415:34: warning: implicit declaration of function 'vld_dump_zval_callable' [-Wimplicit-function-declaration]
   case IS_CALLABLE:       return vld_dump_zval_callable (val.value);
                                  ^~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/srm_oparray.c:416:34: warning: implicit declaration of function 'vld_dump_zval_indirect' [-Wimplicit-function-declaration]
   case IS_INDIRECT:       return vld_dump_zval_indirect (val.value);
                                  ^~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/srm_oparray.c:417:34: warning: implicit declaration of function 'vld_dump_zval_ptr' [-Wimplicit-function-declaration]
   case IS_PTR:            return vld_dump_zval_ptr (val.value);
                                  ^~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/branchinfo.c: In function 'vld_branch_info_dump':
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/branchinfo.c:226:55: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'zend_op_array * {aka struct _zend_op_array *}' [-Wformat=]
   fprintf(VLD_G(path_dump_file), "subgraph cluster_%08x {\n\tlabel=\"%s\";\n\tgraph [rankdir=\"LR\"];\n\tnode [shape = record];\n", opa, fname, fname);
                                                       ^
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/branchinfo.c:226:34: warning: too many arguments for format [-Wformat-extra-args]
   fprintf(VLD_G(path_dump_file), "subgraph cluster_%08x {\n\tlabel=\"%s\";\n\tgraph [rankdir=\"LR\"];\n\tnode [shape = record];\n", opa, fname, fname);
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/vld.c: In function 'vld_compile_file':
/home/builduser/rpmbuild/BUILD/vld-0.13.0/vld-0.13.0/vld.c:351:60: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'zend_op_array * {aka struct _zend_op_array *}' [-Wformat=]
   fprintf(VLD_G(path_dump_file), "subgraph cluster_file_%08x { label=\"file %s\";\n", op_array, op_array->filename ? ZSTRING_VALUE(op_array->filename) : "__main");
 [2018-07-08 13:53 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2018-07-08 13:53 UTC] cmb@php.net
vld 0.14.0 is supposed to be compatible with PHP 7.0 and 7.1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 09:01:28 2024 UTC