Opened 2 years ago

Closed 2 years ago

#271 closed defect (fixed)

Support for PHP 5.4

Reported by: xenji Owned by: moo
Priority: blocker Milestone: 2.0.0
Component: build Version:
Keywords: Cc:
Application: PHP Version: 5.4.0
Other Exts: SAPI: Irrelevant
Probability: Always Blocked By:
Blocking:

Description (last modified by moo)

on fedora core 16 with php 5.4.0

cc -I. -I/home/mmueller/Downloads/xcache-trunk -DPHP_ATOM_INC -I/home/mmueller/Downloads/xcache-trunk/include -I/home/mmueller/Downloads/xcache-trunk/main -I/home/mmueller/Downloads/xcache-trunk -I/opt/local/php/versions/5.4.0/include/php -I/opt/local/php/versions/5.4.0/include/php/main -I/opt/local/php/versions/5.4.0/include/php/TSRM -I/opt/local/php/versions/5.4.0/include/php/Zend -I/opt/local/php/versions/5.4.0/include/php/ext -I/opt/local/php/versions/5.4.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2  -E /home/mmueller/Downloads/xcache-trunk/includes.c -o ./includes.i
./structinfo.m4 is optional if XCache test is not enabled, feel free if it awk failed to produce it
LANG=C /bin/gawk -f /home/mmueller/Downloads/xcache-trunk/mkstructinfo.awk < ./includes.i > ./structinfo.m4.tmp && mv ./structinfo.m4.tmp ./structinfo.m4
/usr/bin/m4 -B 102400 -D srcdir='`'"/home/mmueller/Downloads/xcache-trunk'" -D builddir='`'".'"  /home/mmueller/Downloads/xcache-trunk/processor/main.m4 > ./processor.out.tmp
/usr/bin/m4: warning: `m4 -B' may be removed in a future release
AUTOCHECK INFO: runtime autocheck Disabled (optimized build)
AUTOCHECK INFO: zend_compiled_variable: processor looks good
AUTOCHECK INFO: zend_try_catch_element: processor looks good
AUTOCHECK INFO: zend_brk_cont_element: processor looks good
AUTOCHECK INFO: HashTable: processor looks good
AUTOCHECK INFO: zval: processor looks good
AUTOCHECK INFO: zend_arg_info: processor looks good
AUTOCHECK INFO: zend_constant: processor looks good
AUTOCHECK INFO: zend_property_info: processor looks good
AUTOCHECK INFO: zend_class_entry: processor looks good
AUTOCHECK INFO: znode: processor looks good
AUTOCHECK INFO: zend_op: processor looks good
AUTOCHECK INFO: zend_literal: processor looks good
AUTOCHECK INFO: zend_op_array: processor looks good
AUTOCHECK INFO: xc_constinfo_t: processor looks good
AUTOCHECK INFO: xc_op_array_info_t: processor looks good
AUTOCHECK INFO: xc_funcinfo_t: processor looks good
AUTOCHECK INFO: xc_classinfo_t: processor looks good
AUTOCHECK WARN: xc_autoglobal_t: missing structinfo, dont panic
AUTOCHECK INFO: xc_compilererror_t: processor looks good
AUTOCHECK INFO: xc_entry_data_php_t: processor looks good
AUTOCHECK INFO: xc_entry_data_var_t: processor looks good
AUTOCHECK INFO: xc_entry_t: processor looks good
mv ./processor.out.tmp ./processor.out
/bin/grep "export: " ./processor.out | /bin/sed "s/.*export:\(.*\):export.*/\1/g" > ./processor.h
cat < ./processor.h > ./processor.h.tmp && mv ./processor.h.tmp ./processor.h
cp ./processor.out ./processor_real.c
cat < ./processor.out > ./processor_real.c.tmp && mv ./processor_real.c.tmp ./processor_real.c
/bin/sh /home/mmueller/Downloads/xcache-trunk/libtool --mode=compile cc  -I. -I/home/mmueller/Downloads/xcache-trunk -DPHP_ATOM_INC -I/home/mmueller/Downloads/xcache-trunk/include -I/home/mmueller/Downloads/xcache-trunk/main -I/home/mmueller/Downloads/xcache-trunk -I/opt/local/php/versions/5.4.0/include/php -I/opt/local/php/versions/5.4.0/include/php/main -I/opt/local/php/versions/5.4.0/include/php/TSRM -I/opt/local/php/versions/5.4.0/include/php/Zend -I/opt/local/php/versions/5.4.0/include/php/ext -I/opt/local/php/versions/5.4.0/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/mmueller/Downloads/xcache-trunk/processor.c -o processor.lo 
mkdir .libs
 cc -I. -I/home/mmueller/Downloads/xcache-trunk -DPHP_ATOM_INC -I/home/mmueller/Downloads/xcache-trunk/include -I/home/mmueller/Downloads/xcache-trunk/main -I/home/mmueller/Downloads/xcache-trunk -I/opt/local/php/versions/5.4.0/include/php -I/opt/local/php/versions/5.4.0/include/php/main -I/opt/local/php/versions/5.4.0/include/php/TSRM -I/opt/local/php/versions/5.4.0/include/php/Zend -I/opt/local/php/versions/5.4.0/include/php/ext -I/opt/local/php/versions/5.4.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/mmueller/Downloads/xcache-trunk/processor.c  -fPIC -DPIC -o .libs/processor.o
In file included from /home/mmueller/Downloads/xcache-trunk/processor_real.c:11:0,
                 from /home/mmueller/Downloads/xcache-trunk/processor.c:1:
/home/mmueller/Downloads/xcache-trunk/xcache.h:113:15: error: conflicting types for ‘znode_op’
/opt/local/php/versions/5.4.0/include/php/Zend/zend_compile.h:84:3: note: previous declaration of ‘znode_op’ was here
In file included from /home/mmueller/Downloads/xcache-trunk/processor.c:1:0:
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_calc_zend_class_entry’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:4816:19: error: ‘zend_class_entry’ has no member named ‘default_properties’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:4875:9: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:4902:18: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:5218:9: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:5224:42: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:5224:73: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_calc_zend_op’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:6043:2: warning: passing argument 2 of ‘xc_calc_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:5593:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:6075:2: warning: passing argument 2 of ‘xc_calc_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:5593:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:6107:2: warning: passing argument 2 of ‘xc_calc_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:5593:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_calc_zend_op_array’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:6452:3: warning: passing argument 1 of ‘xc_zstrlen_char’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:690:19: note: expected ‘zstr’ but argument is of type ‘const char * const’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_store_zend_class_entry’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14697:5: error: ‘zend_class_entry’ has no member named ‘builtin_functions’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14697:30: error: ‘zend_class_entry’ has no member named ‘builtin_functions’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14719:19: error: ‘zend_class_entry’ has no member named ‘default_properties’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14719:46: error: ‘zend_class_entry’ has no member named ‘default_properties’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14777:9: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14795:6: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14811:18: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14811:40: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14820:5: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:14820:117: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15136:9: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15143:6: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15143:19: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15143:19: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15146:5: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15146:106: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_store_zend_op’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15832:2: warning: passing argument 2 of ‘xc_store_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15521:28: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15832:2: warning: passing argument 3 of ‘xc_store_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15521:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15864:2: warning: passing argument 2 of ‘xc_store_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15521:28: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15864:2: warning: passing argument 3 of ‘xc_store_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15521:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15896:2: warning: passing argument 2 of ‘xc_store_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15521:28: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15896:2: warning: passing argument 3 of ‘xc_store_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:15521:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_store_zend_op_array’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:16282:3: warning: passing argument 1 of ‘xc_zstrlen_char’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:690:19: note: expected ‘zstr’ but argument is of type ‘const char * const’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:16707:5: error: ‘zend_op_array’ has no member named ‘size’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:16820:5: error: ‘zend_op_array’ has no member named ‘size_var’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_restore_zend_class_entry’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24602:5: error: ‘zend_class_entry’ has no member named ‘builtin_functions’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24602:30: error: ‘zend_class_entry’ has no member named ‘builtin_functions’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24625:19: error: ‘zend_class_entry’ has no member named ‘default_properties’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24625:46: error: ‘zend_class_entry’ has no member named ‘default_properties’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24682:9: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24699:4: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24711:18: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:24711:40: error: ‘zend_class_entry’ has no member named ‘static_members’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25062:5: error: ‘zend_class_entry’ has no member named ‘filename’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_restore_zend_op’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25741:2: warning: passing argument 2 of ‘xc_restore_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25430:28: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25741:2: warning: passing argument 3 of ‘xc_restore_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25430:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25773:2: warning: passing argument 2 of ‘xc_restore_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25430:28: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25773:2: warning: passing argument 3 of ‘xc_restore_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25430:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25805:2: warning: passing argument 2 of ‘xc_restore_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25430:28: note: expected ‘struct znode *’ but argument is of type ‘union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25805:2: warning: passing argument 3 of ‘xc_restore_znode’ from incompatible pointer type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:25430:28: note: expected ‘const struct znode * const’ but argument is of type ‘const union znode_op *’
/home/mmueller/Downloads/xcache-trunk/processor_real.c: In function ‘xc_restore_zend_op_array’:
/home/mmueller/Downloads/xcache-trunk/processor_real.c:26260:7: error: ‘znode_op’ has no member named ‘u’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:26260:52: error: ‘znode_op’ has no member named ‘u’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:26270:7: error: ‘znode_op’ has no member named ‘u’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:26270:52: error: ‘znode_op’ has no member named ‘u’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:26412:4: warning: passing argument 1 of ‘xc_zstrlen_char’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:690:19: note: expected ‘zstr’ but argument is of type ‘const char * const’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:26807:5: error: ‘zend_op_array’ has no member named ‘size’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:26914:5: error: ‘zend_op_array’ has no member named ‘size_var’
/home/mmueller/Downloads/xcache-trunk/processor_real.c:27575:6: warning: passing argument 1 of ‘xc_zstrlen_char’ discards ‘const’ qualifier from pointer target type [enabled by default]
/home/mmueller/Downloads/xcache-trunk/processor_real.c:690:19: note: expected ‘zstr’ but argument is of type ‘const char * const’

Change History (3)

comment:1 Changed 2 years ago by moo

  • Description modified (diff)
  • Status changed from new to assigned

thanks. support for PHP_5_4 is on go on svn /trunk, which should be ready as 2.0 because a few bugs in 2.0 is fixed

comment:2 Changed 2 years ago by moo

  • Milestone changed from 1.3.3 to 2.0.0

comment:3 Changed 2 years ago by moo

  • Resolution set to fixed
  • Status changed from assigned to closed

done in trunk for 2.0.0, need testing

Note: See TracTickets for help on using tickets.