php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61674 xhprof can not compile with php5.4
Submitted: 2012-04-08 15:44 UTC Modified: 2012-05-11 06:19 UTC
Votes:3
Avg. Score:4.3 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: visoeclipse at gmail dot com Assigned: patrickallaert (profile)
Status: Closed Package: xhprof (PECL)
PHP Version: 5.4.1RC1 OS: mac os x
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 - 3 = ?
Subscribe to this entry?

 
 [2012-04-08 15:44 UTC] visoeclipse at gmail dot com
Description:
------------
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:236: warning: 
'visibility' attribute ignored
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:240: warning: 
'visibility' attribute ignored
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c: In function 
'hp_get_function_name':
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:898: warning: assignment 
discards qualifiers from pointer target type
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:909: warning: assignment 
discards qualifiers from pointer target type
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:911: warning: assignment 
discards qualifiers from pointer target type
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:930: error: 'znode_op' 
has no member named 'u'
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:963: warning: passing 
argument 1 of 'hp_get_base_filename' discards qualifiers from pointer target 
type
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c: In function 
'hp_execute_internal':
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:1650: error: 'znode_op' 
has no member named 'u'
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:1651: error: 'struct 
<anonymous>' has no member named 'return_reference'
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:1652: error: 'znode_op' 
has no member named 'u'
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c: In function 
'hp_compile_file':
/usr/local/www/webgrind/xhprof-0.9.2/extension/xhprof.c:1683: warning: passing 
argument 1 of 'hp_get_base_filename' discards qualifiers from pointer target 
type
make: *** [xhprof.lo] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-11 06:19 UTC] patrickallaert@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: patrickallaert
 [2012-05-11 06:19 UTC] patrickallaert@php.net
This bug has been fixed in SVN.

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.

That issue has been fixed a while ago on the github repository:
https://github.com/facebook/xhprof/commit/a6bae51236

Compile and use xhprof from there if you want xhprof for PHP >= 5.4.

If you just want to patch xhprof-0.9.2 to make it work, use the patch available at:
https://github.com/facebook/xhprof/commit/a6bae51236.diff
 [2013-01-17 18:04 UTC] nadid dot skywalker at gmail dot com
The problem seams to reproduce in FreeBSD 9.0-RELEASE (GENERIC) #0: PHP 5.4.10 (cli) (built: Jan 11 2013 13:16:24)

[1@1 ~/xhprof-0.9.2/extension]$ ./configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... x86_64-unknown-freebsd9.0
checking host system type... x86_64-unknown-freebsd9.0
checking target system type... x86_64-unknown-freebsd9.0
checking for PHP prefix... /usr/local
checking for PHP includes... -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
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable xhprof support... yes, shared
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
[1@1 ~/xhprof-0.9.2/extension]$ make
/bin/sh /home/1/xhprof-0.9.2/extension/libtool --mode=compile cc  -I. -I/home/1/xhprof-0.9.2/extension -DPHP_ATOM_INC -I/home/1/xhprof-0.9.2/extension/include -I/home/1/xhprof-0.9.2/extension/main -I/home/1/xhprof-0.9.2/extension -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 /home/1/xhprof-0.9.2/extension/xhprof.c -o xhprof.lo
mkdir .libs
 cc -I. -I/home/1/xhprof-0.9.2/extension -DPHP_ATOM_INC -I/home/1/xhprof-0.9.2/extension/include -I/home/1/xhprof-0.9.2/extension/main -I/home/1/xhprof-0.9.2/extension -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 /home/1/xhprof-0.9.2/extension/xhprof.c  -fPIC -DPIC -o .libs/xhprof.o
/home/1/xhprof-0.9.2/extension/xhprof.c:236: warning: 'visibility' attribute ignored
/home/1/xhprof-0.9.2/extension/xhprof.c:240: warning: 'visibility' attribute ignored
/home/1/xhprof-0.9.2/extension/xhprof.c: In function 'hp_get_function_name':
/home/1/xhprof-0.9.2/extension/xhprof.c:898: warning: assignment discards qualifiers from pointer target type
/home/1/xhprof-0.9.2/extension/xhprof.c:909: warning: assignment discards qualifiers from pointer target type
/home/1/xhprof-0.9.2/extension/xhprof.c:911: warning: assignment discards qualifiers from pointer target type
/home/1/xhprof-0.9.2/extension/xhprof.c:930: error: 'znode_op' has no member named 'u'
/home/1/xhprof-0.9.2/extension/xhprof.c:963: warning: passing argument 1 of 'hp_get_base_filename' discards qualifiers from pointer target type
/home/1/xhprof-0.9.2/extension/xhprof.c: In function 'hp_execute_internal':
/home/1/xhprof-0.9.2/extension/xhprof.c:1650: error: 'znode_op' has no member named 'u'
/home/1/xhprof-0.9.2/extension/xhprof.c:1651: error: 'struct <anonymous>' has no member named 'return_reference'
/home/1/xhprof-0.9.2/extension/xhprof.c:1652: error: 'znode_op' has no member named 'u'
/home/1/xhprof-0.9.2/extension/xhprof.c: In function 'hp_compile_file':
/home/1/xhprof-0.9.2/extension/xhprof.c:1683: warning: passing argument 1 of 'hp_get_base_filename' discards qualifiers from pointer target type
*** Error code 1

Stop in /usr/home/1/xhprof-0.9.2/extension.
[1@1 ~/xhprof-0.9.2/extension]$ php -v
PHP 5.4.10 (cli) (built: Jan 11 2013 13:16:24)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
[1@1 ~/xhprof-0.9.2/extension]$
 [2013-02-20 09:10 UTC] ruckfull at gmail dot com
i had the same bug with php version 5.4.11.
root@ruckfull-virtual-machine:/home/ruckfull/lnmp0.9-full/xhprof-
0.9.2/extension# ./configure --with-php-config=/usr/local/php/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -
I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -
I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -
I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-
debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking whether to enable xhprof support... yes, shared
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged



root@ruckfull-virtual-machine:/home/ruckfull/lnmp0.9-full/xhprof-
0.9.2/extension# make
/bin/bash /home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/libtool --
mode=compile cc  -I. -I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension -
DPHP_ATOM_INC -I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/include -
I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/main -
I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension -I/usr/local/php/include/php 
-I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -
I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -
I/usr/local/php/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c 
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c -o xhprof.lo
mkdir .libs
 cc -I. -I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension -DPHP_ATOM_INC -
I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/include -
I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/main -
I/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension -I/usr/local/php/include/php 
-I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -
I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -
I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c  -fPIC -DPIC -o 
.libs/xhprof.o
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:236:1: 警告: 
‘visibility’属性被忽略 [-Wattributes]
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:240:28: 警告: 
‘visibility’属性被忽略 [-Wattributes]
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c: 在函
数‘hp_get_function_name’中:
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:898:10: 警告: 
assignment discards ‘const’ qualifier from pointer target type [默认启用]
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:909:13: 警告: 
assignment discards ‘const’ qualifier from pointer target type [默认启用]
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:911:13: 警告: 
assignment discards ‘const’ qualifier from pointer target type [默认启用]
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:930:34: 错误: 
‘znode_op’没有名为‘u’的成员
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:963:9: 警告: 
passing argument 1 of ‘hp_get_base_filename’ discards ‘const’ qualifier from 
pointer target type [默认启用]
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:856:14: 附注: 需要类
型‘char *’,但实参的类型为‘const char *’
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c: 在函
数‘hp_execute_internal’中:
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:1650:24: 错误: 
‘znode_op’没有名为‘u’的成员
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:1651:59: 错误: 
‘struct <匿名>’没有名为‘return_reference’的成员
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:1652:25: 错误: 
‘znode_op’没有名为‘u’的成员
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c: 在函
数‘hp_compile_file’中:
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:1683:3: 警告: 
passing argument 1 of ‘hp_get_base_filename’ discards ‘const’ qualifier from 
pointer target type [默认启用]
/home/ruckfull/lnmp0.9-full/xhprof-0.9.2/extension/xhprof.c:856:14: 附注: 需要类
型‘char *’,但实参的类型为‘const char *’
make: *** [xhprof.lo] 错误 1
 [2013-02-20 09:33 UTC] ruckfull at gmail dot com
with php version 5.4.11,the package which from PECL is not the lastest(when make 
there is wrong ,so you should down the package at:
https://github.com/facebook/xhprof/commit/a6bae51236
 [2016-11-03 04:58 UTC] 564818745 at qq dot com
/bin/sh /root/xhprof/extension/libtool --mode=compile cc  -I. -I/root/xhprof/extension -DPHP_ATOM_INC -I/root/xhprof/extension/include -I/root/xhprof/extension/main -I/root/xhprof/extension -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /root/xhprof/extension/xhprof.c -o xhprof.lo 
 cc -I. -I/root/xhprof/extension -DPHP_ATOM_INC -I/root/xhprof/extension/include -I/root/xhprof/extension/main -I/root/xhprof/extension -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/xhprof/extension/xhprof.c  -fPIC -DPIC -o .libs/xhprof.o
/root/xhprof/extension/xhprof.c: In function ‘hp_get_function_name’:
/root/xhprof/extension/xhprof.c:936: error: ‘zend_execute_data’ has no member named ‘function_state’
/root/xhprof/extension/xhprof.c:939: warning: assignment from incompatible pointer type
/root/xhprof/extension/xhprof.c:950: warning: assignment from incompatible pointer type
/root/xhprof/extension/xhprof.c:951: error: ‘zend_execute_data’ has no member named ‘object’
/root/xhprof/extension/xhprof.c:952: error: ‘zend_execute_data’ has no member named ‘object’
/root/xhprof/extension/xhprof.c:1013: warning: passing argument 1 of ‘hp_get_base_filename’ from incompatible pointer type
/root/xhprof/extension/xhprof.c:897: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
/root/xhprof/extension/xhprof.c: In function ‘hp_inc_count’:
/root/xhprof/extension/xhprof.c:1093: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:154: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/root/xhprof/extension/xhprof.c:1093: error: too many arguments to function ‘zend_hash_find’
/root/xhprof/extension/xhprof.c: In function ‘hp_hash_lookup’:
/root/xhprof/extension/xhprof.c:1117: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:154: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/root/xhprof/extension/xhprof.c:1117: error: too many arguments to function ‘zend_hash_find’
/root/xhprof/extension/xhprof.c:1181:21: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
/root/xhprof/extension/xhprof.c: In function ‘hp_sample_stack’:
/root/xhprof/extension/xhprof.c:1178: error: ‘add_assoc_string’ undeclared (first use in this function)
/root/xhprof/extension/xhprof.c:1178: error: (Each undeclared identifier is reported only once
/root/xhprof/extension/xhprof.c:1178: error: for each function it appears in.)
/root/xhprof/extension/xhprof.c: In function ‘hp_execute_ex’:
/root/xhprof/extension/xhprof.c:1656: error: ‘zend_execute_data’ has no member named ‘op_array’
/root/xhprof/extension/xhprof.c: In function ‘hp_execute_internal’:
/root/xhprof/extension/xhprof.c:1709: error: ‘zend_execute_data’ has no member named ‘op_array’
/root/xhprof/extension/xhprof.c:1722: error: ‘zend_execute_data’ has no member named ‘function_state’
/root/xhprof/extension/xhprof.c:1724: error: ‘struct _zend_fcall_info’ has no member named ‘retval_ptr_ptr’
/root/xhprof/extension/xhprof.c:1725: error: ‘struct _zend_fcall_info’ has no member named ‘retval_ptr_ptr’
/root/xhprof/extension/xhprof.c:1726: error: ‘struct _zend_fcall_info’ has no member named ‘object_ptr’
/root/xhprof/extension/xhprof.c:1729: error: invalid type argument of ‘->’ (have ‘int’)
/root/xhprof/extension/xhprof.c:1730: error: ‘zend_execute_data’ has no member named ‘function_state’
/root/xhprof/extension/xhprof.c:1733: error: ‘zend_execute_data’ has no member named ‘function_state’
/root/xhprof/extension/xhprof.c:1736: error: ‘zend_execute_data’ has no member named ‘object’
/root/xhprof/extension/xhprof.c: In function ‘hp_begin’:
/root/xhprof/extension/xhprof.c:1864: warning: assignment from incompatible pointer type
/root/xhprof/extension/xhprof.c:1869: warning: assignment from incompatible pointer type
/root/xhprof/extension/xhprof.c: In function ‘hp_stop’:
/root/xhprof/extension/xhprof.c:1937: warning: assignment from incompatible pointer type
/root/xhprof/extension/xhprof.c: In function ‘hp_zval_at_key’:
/root/xhprof/extension/xhprof.c:1964: error: ‘zval’ has no member named ‘type’
/root/xhprof/extension/xhprof.c:1970: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:154: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/root/xhprof/extension/xhprof.c:1970: error: too many arguments to function ‘zend_hash_find’
/root/xhprof/extension/xhprof.c: In function ‘hp_strings_in_zval’:
/root/xhprof/extension/xhprof.c:1994: error: ‘zval’ has no member named ‘type’
/root/xhprof/extension/xhprof.c:2014: warning: passing argument 2 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:168: note: expected ‘struct zend_string **’ but argument is of type ‘char **’
/root/xhprof/extension/xhprof.c:2014: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:168: note: expected ‘zend_ulong *’ but argument is of type ‘uint *’
/root/xhprof/extension/xhprof.c:2014: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_hash.h:168: note: expected ‘HashPosition *’ but argument is of type ‘ulong *’
/root/xhprof/extension/xhprof.c:2014: error: too many arguments to function ‘zend_hash_get_current_key_ex’
/root/xhprof/extension/xhprof.c:2017:58: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
/root/xhprof/extension/xhprof.c:2017: error: ‘zend_hash_get_current_data’ undeclared (first use in this function)
/root/xhprof/extension/xhprof.c:2019: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast
/usr/include/string.h:399: note: expected ‘const char *’ but argument is of type ‘int’
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast
/root/xhprof/extension/xhprof.c:2019: note: expected ‘const char *’ but argument is of type ‘int’
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast
/usr/include/string.h:399: note: expected ‘const char *’ but argument is of type ‘int’
/root/xhprof/extension/xhprof.c:2019: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast
/root/xhprof/extension/xhprof.c:2019: note: expected ‘const char *’ but argument is of type ‘int’
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast
/root/xhprof/extension/xhprof.c:2019: note: expected ‘const char *’ but argument is of type ‘int’
/root/xhprof/extension/xhprof.c:2019: warning: cast to pointer from integer of different size
/root/xhprof/extension/xhprof.c:2019: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast
/root/xhprof/extension/xhprof.c:2019: note: expected ‘const char *’ but argument is of type ‘int’
/root/xhprof/extension/xhprof.c:2020: warning: passing argument 1 of ‘_estrdup’ makes pointer from integer without a cast
/usr/local/php/include/php/Zend/zend_alloc.h:84: note: expected ‘const char *’ but argument is of type ‘int’
/root/xhprof/extension/xhprof.c:2025: error: ‘zval’ has no member named ‘type’
make: *** [xhprof.lo] Error 1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC