php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65624 Impossible to install
Submitted: 2013-09-05 18:29 UTC Modified: 2013-09-24 13:00 UTC
From: aurelien dot lequoy at gmail dot com Assigned: gopalv (profile)
Status: Closed Package: inclued (PECL)
PHP Version: 5.5Git-2013-09-05 (snap) OS: Debian 7 with dotdeb
Private report: No CVE-ID: None
 [2013-09-05 18:29 UTC] aurelien dot lequoy at gmail dot com
Description:
------------
Well I installed php5-dev, then 

pecl install channel://pecl.php.net/inclued-0.1.3



Test script:
---------------
pecl install channel://pecl.php.net/inclued-0.1.3

Expected result:
----------------
n/a

Actual result:
--------------
make
/bin/bash /tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/libtool --
mode=compile cc  -I. -I/tmp/pear/temp/inclued -DPHP_ATOM_INC -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/include -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/main -
I/tmp/pear/temp/inclued -I/usr/include/php5 -I/usr/include/php5/main -
I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -
I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c 
/tmp/pear/temp/inclued/inclued.c -o inclued.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/inclued -DPHP_ATOM_INC -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/include -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/main -
I/tmp/pear/temp/inclued -I/usr/include/php5 -I/usr/include/php5/main -
I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -
I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/tmp/pear/temp/inclued/inclued.c  -fPIC -DPIC -o .libs/inclued.o
/tmp/pear/temp/inclued/inclued.c: In function 'copy_class_table':
/tmp/pear/temp/inclued/inclued.c:111:3: warning: passing argument 4 of 
'add_assoc_stringl_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued.c:30:
/usr/include/php5/Zend/zend_API.h:382:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued.c:116:3: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued.c:30:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued.c:123:4: warning: passing argument 4 of 
'add_assoc_stringl_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued.c:30:
/usr/include/php5/Zend/zend_API.h:382:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued.c:130:5: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued.c:30:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/bin/bash /tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/libtool --
mode=compile cc  -I. -I/tmp/pear/temp/inclued -DPHP_ATOM_INC -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/include -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/main -
I/tmp/pear/temp/inclued -I/usr/include/php5 -I/usr/include/php5/main -
I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -
I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c 
/tmp/pear/temp/inclued/inclued_zend.c -o inclued_zend.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/inclued -DPHP_ATOM_INC -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/include -
I/tmp/pear/temp/pear-build-root2NJO0f/inclued-0.1.3/main -
I/tmp/pear/temp/inclued -I/usr/include/php5 -I/usr/include/php5/main -
I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -
I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/tmp/pear/temp/inclued/inclued_zend.c  -fPIC -DPIC -o .libs/inclued_zend.o
/tmp/pear/temp/inclued/inclued_zend.c: In function 'inclued_get_zval_ptr':
/tmp/pear/temp/inclued/inclued_zend.c:38:11: error: 'zend_execute_data' has no 
member named 'Ts'
/tmp/pear/temp/inclued/inclued_zend.c:40:24: error: 'zend_execute_data' has no 
member named 'Ts'
/tmp/pear/temp/inclued/inclued_zend.c:44:31: error: 'zend_execute_data' has no 
member named 'CVs'
/tmp/pear/temp/inclued/inclued_zend.c: In function 'add_include':
/tmp/pear/temp/inclued/inclued_zend.c:124:3: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c:186:3: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c:206:5: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c: In function 'add_class':
/tmp/pear/temp/inclued/inclued_zend.c:284:2: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c:294:60: error: 'zend_execute_data' has no 
member named 'Ts'
/tmp/pear/temp/inclued/inclued_zend.c:298:3: warning: passing argument 4 of 
'add_assoc_stringl_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:382:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c:298:3: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c: In function 'add_interface':
/tmp/pear/temp/inclued/inclued_zend.c:329:25: error: 'zend_execute_data' has no 
member named 'Ts'
/tmp/pear/temp/inclued/inclued_zend.c:339:2: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c:341:2: warning: passing argument 4 of 
'add_assoc_stringl_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:382:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c:362:2: warning: passing argument 4 of 
'add_assoc_stringl_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:382:14: note: expected 'char *' but argument 
is of type 'const char *'
/tmp/pear/temp/inclued/inclued_zend.c:362:2: warning: passing argument 4 of 
'add_assoc_string_ex' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /usr/include/php5/main/php.h:38:0,
                 from /tmp/pear/temp/inclued/php_inclued.h:24,
                 from /tmp/pear/temp/inclued/inclued_zend.c:21:
/usr/include/php5/Zend/zend_API.h:381:14: note: expected 'char *' but argument 
is of type 'const char *'
make: *** [inclued_zend.lo] Erreur 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-19 14:50 UTC] dmelo87 at gmail dot com
Hi, I have a similar problem. Does anybody knows a way to deal with this?
 [2013-09-20 08:07 UTC] gopalv@php.net
Uh, I haven't updated inclued in a while.

It is highly likely it is broken with PHP 5.5 code - the Ts and such details in zend_execute_data has changed.

Let me see if I can grab sometime this weekend and see if I can fix the build at least.
 [2013-09-20 09:29 UTC] aurelien dot lequoy at gmail dot com
thank you !

I really like this extention.

More if you can do a nice upgrade. Now most of PHP user use 
spl_autoload_register or any autoload.

The problem you declare this autoload in first file but if one class need to be 
loaded in third page it's will say this class requested from first page and not 
from the third page.

Do you think you have the possbility to include this nice stuff ?

More I can help you a bit (not worked in C since 5 years), but with a small 
introduction I think I can do some stuff.
 [2013-09-23 18:22 UTC] gopalv@php.net
Automatic comment from SVN on behalf of gopalv
Revision: http://svn.php.net/viewvc/?view=revision&revision=331473
Log: Bug #65624: Fix inclued for PHP-5.5/trunk API changes.
 [2013-09-23 18:24 UTC] gopalv@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: gopalv
 [2013-09-23 22:22 UTC] aurelien dot lequoy at gmail dot com
Really thank ;)

About my proposition you think it's possible ?
 [2013-09-24 10:50 UTC] gopalv@php.net
I think I could fix it to handle spl_autoload - the current code already handles the __autoload() case.

But I will need some sample code, for a test-case - preferably in 2-3 files which I can include as a unit test.
 [2013-09-24 13:00 UTC] aurelien dot lequoy at gmail dot com
Ok, I will make an example for you, with all case possible.

I would to include by default in my framework Glial to profiling.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC