|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-06-30 11:23 UTC] dan at auctionharmony dot com
Description: ------------ dbx fails to build with php 5.3.0 'pecl install dbx' throws many deprecated warnings and fails to build Reproduce code: --------------- pecl install dbx Expected result: ---------------- Expect dbx to build and install. Actual result: -------------- Many deprecated warnings, then build error. cc -I. -I/tmp/pear/temp/dbx -DPHP_ATOM_INC -I/var/tmp/pear-build-root/dbx-1.1.0/include -I/var/tmp/pear-build-root/dbx-1.1.0/main -I/tmp/pear/temp/dbx -I/usr/lib64/php5/include/php -I/usr/lib64/php5/include/php/main -I/usr/lib64/php5/include/php/TSRM -I/usr/lib64/php5/include/php/Zend -I/usr/lib64/php5/include/php/ext -I/usr/lib64/php5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/dbx/dbx.c -fPIC -DPIC -o .libs/dbx.o /tmp/pear/temp/dbx/dbx.c: In function 'zif_dbx_query': /tmp/pear/temp/dbx/dbx.c:535: error: 'zval' has no member named 'refcount' /tmp/pear/temp/dbx/dbx.c:536: error: 'zval' has no member named 'is_ref' /tmp/pear/temp/dbx/dbx.c: In function 'zif_dbx_fetch_row': /tmp/pear/temp/dbx/dbx.c:609: error: 'zval' has no member named 'refcount' /tmp/pear/temp/dbx/dbx.c:610: error: 'zval' has no member named 'is_ref' make: *** [dbx.lo] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 11:00:01 2025 UTC |
I did the following to get the module to compile: diff -r 31a92e40f3f5 dbx.c --- a/dbx.c Tue Sep 22 08:30:42 2009 -0500 +++ b/dbx.c Tue Sep 22 08:31:35 2009 -0500 @@ -532,8 +532,8 @@ for (col_index=0; col_index<Z_LVAL_P(rv_column_count); ++col_index) { zend_hash_index_find(Z_ARRVAL_PP(inforow_ptr), col_index, (void **) &columnname_ptr); zend_hash_index_find(Z_ARRVAL_PP(row_ptr), col_index, (void **) &actual_ptr); - (*actual_ptr)->refcount+=1; - (*actual_ptr)->is_ref=1; + Z_ADDREF_P(*actual_ptr); + Z_SET_ISREF_P(*actual_ptr); zend_hash_update(Z_ARRVAL_PP(row_ptr), Z_STRVAL_PP(columnname_ptr), Z_STRLEN_PP(columnname_ptr) + 1, actual_ptr, sizeof(zval *), NULL); } } @@ -606,8 +606,8 @@ for (col_index=0; col_index<col_count; ++col_index) { zend_hash_index_find(Z_ARRVAL_PP(inforow_ptr), col_index, (void **) &columnname_ptr); zend_hash_index_find(Z_ARRVAL_P(return_value), col_index, (void **) &actual_ptr); - (*actual_ptr)->refcount+=1; - (*actual_ptr)->is_ref=1; + Z_ADDREF_P(*actual_ptr); + Z_SET_ISREF_P(*actual_ptr); zend_hash_update(Z_ARRVAL_P(return_value), Z_STRVAL_PP(columnname_ptr), Z_STRLEN_PP(columnname_ptr) + 1, actual_ptr, sizeof(zval *), NULL); } }