php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58692 does not build with php-5.3.x
Submitted: 2009-05-19 10:26 UTC Modified: 2015-08-16 04:22 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: oeriksson at mandriva dot com Assigned: cmb (profile)
Status: No Feedback Package: perl (PECL)
PHP Version: 5.3.0RC2 OS: Mandriva Cooker
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: oeriksson at mandriva dot com
New email:
PHP Version: OS:

 

 [2009-05-19 10:26 UTC] oeriksson at mandriva dot com
Description:
------------
perl does not build with php-5.3.x

Reproduce code:
---------------
as done usually

Expected result:
----------------
should build

Actual result:
--------------
[...]
libtool: compile:  cc -I. -I/home/oden/RPM/BUILD/perl-1.0.0 -DPHP_ATOM_INC -I/home/oden/RPM/BUILD/perl-1.0.0/include -I/home/oden/RPM/BUILD/perl-1.0.0/main -I/home/oden/RPM/BUILD/perl-1.0.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/php -DHAVE_CONFIG_H -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE -c /home/oden/RPM/BUILD/perl-1.0.0/php_perl.c  -fPIC -DPIC -o .libs/php_perl.o         
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:172: warning: initialization from incompatible pointer type                       
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:173: warning: initialization from incompatible pointer type                       
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:199: warning: initialization from incompatible pointer type                       
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:200: warning: initialization from incompatible pointer type                       
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_zval_to_sv_ref':                                           
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:343: error: 'zval' has no member named 'is_ref'                                   
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:350: error: 'zval' has no member named 'is_ref'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_zval_to_sv_noref':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:393: error: 'zval' has no member named 'is_ref'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:423: error: 'zval' has no member named 'is_ref'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_sv_to_zval_ref':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:483: error: 'zval' has no member named 'is_ref'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:485: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_sv_to_zval_noref':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:558: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_get':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:753: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_read_dimension':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:827: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:828: error: 'zval' has no member named 'is_ref'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:836: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_read_property':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:976: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:993: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1010: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1088: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1089: error: 'zval' has no member named 'is_ref'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1096: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_clone':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1637: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'php_perl_get_iterator':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1758: error: 'zval' has no member named 'refcount'
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'zm_startup_perl':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1779: warning: assignment from incompatible pointer type
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c: In function 'zm_info_perl':
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1805: warning: unknown conversion type character 'v' in format
/home/oden/RPM/BUILD/perl-1.0.0/php_perl.c:1805: warning: too many arguments for format
[...]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-06 01:32 UTC] aaron at tekserve dot com
I got it to compile with these 5.3-only macros. Note I have 
NOT tested this much, but it does compile now.

beanstalk:perl-1.0.0 admin$ diff php_perl.c~ php_perl.c
343c343
<   if ((zv->is_ref || Z_TYPE_P(zv) == IS_OBJECT || 
Z_TYPE_P(zv) == IS_ARRAY) &&
---
>   if ((Z_SET_ISREF_P(zv) || Z_TYPE_P(zv) == IS_OBJECT || 
Z_TYPE_P(zv) == IS_ARRAY) &&
350c350
<   if (zv->is_ref || Z_TYPE_P(zv) == IS_OBJECT || 
Z_TYPE_P(zv) == IS_ARRAY) {
---
>   if (Z_SET_ISREF_P(zv) || Z_TYPE_P(zv) == IS_OBJECT || 
Z_TYPE_P(zv) == IS_ARRAY) {
393c393
<         if (zv->is_ref || Z_TYPE_P(zv) == IS_ARRAY) {
---
>         if (Z_SET_ISREF_P(zv) || Z_TYPE_P(zv) == IS_ARRAY) 
{
423c423
<         if (zv->is_ref || Z_TYPE_P(zv) == IS_ARRAY) {
---
>         if (Z_SET_ISREF_P(zv) || Z_TYPE_P(zv) == IS_ARRAY) 
{
483c483
<       (*z)->is_ref = 1;
---
>       Z_SET_ISREF_P(*z);
485c485
<     (*z)->refcount++;
---
>     Z_ADDREF_P(*z);
753c753
<   if (retval) {retval->refcount = 0;}
---
>   if (retval) {Z_DELREF_P(retval);}
827,828c827,828
<         retval->refcount = 0;
<         retval->is_ref = 1;
---
>         Z_DELREF_P(retval);
>         Z_SET_ISREF_P(retval);
836c836
<         if (retval) {retval->refcount = 0;}
---
>         if (retval) {Z_DELREF_P(retval);}
976c976
<       new_object->refcount = 0;
---
>       Z_DELREF_P(new_object);
993c993
<       new_object->refcount = 0;
---
>       Z_DELREF_P(new_object);
1010c1010
<       new_object->refcount = 0;
---
>       Z_DELREF_P(new_object);
1088,1089c1088,1089
<       retval->refcount = 0;
<       retval->is_ref = 1;
---
>       Z_DELREF_P(retval);
>       Z_SET_ISREF_P(retval);
1096c1096
<       if (retval) {retval->refcount = 0;}
---
>       if (retval) {Z_DELREF_P(retval);}
1758c1758
<   object->refcount++;
---
>   Z_ADDREF_P(object);
 [2010-12-06 06:52 UTC] kirubasuthan at gmail dot com
I got the same error with PHP v 5.3.3. Below are future 
detail. 

OS: RH CentOS release 5.4
Perl:  v5.8.8
PHP: v5.3.3

ERROR: 
perl-1.0.0/php_perl.c:343: error: 'zval' has no member named 
is_ref
perl-1.0.0/php_perl.c:993: error: 'zval' has no member named 
'refcount'
...
 [2011-08-04 08:42 UTC] hessu at hes dot iki dot fi
I can confirm that Aaron's patch not only makes it compile, but also makes it work with PHP 5.3.x. A new release with this patch would be useful.
 [2015-08-02 20:11 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2015-08-02 20:11 UTC] cmb@php.net
I assume that this issue has been solved with perl-1.0.1 (released 2013-01-23).
 [2015-08-16 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 09:01:27 2024 UTC