phc icon indicating copy to clipboard operation
phc copied to clipboard

error: 'struct _zend_function::<anonymous>' has no member named 'return_reference'

Open h4ck3rm1k3 opened this issue 13 years ago • 3 comments

using the php from https://github.com/h4ck3rm1k3/php 5.4.4-5

src/embed/optimize.cpp: In static member function 'static Method_info* PHP::get_method_info(String_)': src/embed/optimize.cpp:223: error: invalid conversion from 'zend_fcall_info_' to 'uint' src/embed/optimize.cpp:223: error: cannot convert 'zend_fcall_info_cache_' to 'zend_fcall_info_' for argument '3' to 'int
zend_fcall_info_init(zval_, uint, zend_fcall_info_, zend_fcall_info_cache_, char__, char_*)' src/embed/optimize.cpp: In member function 'virtual bool Internal_method_info::return_by_ref()': src/embed/optimize.cpp:248: error: 'struct _zend_function::' has no member named 'return_reference'

this is on my branch : https://github.com/h4ck3rm1k3/phc

h4ck3rm1k3 avatar Sep 24 '12 11:09 h4ck3rm1k3

patch here https://github.com/h4ck3rm1k3/phc/commit/8763677f53b2f2b30c6b69456aa4eb8bfadd15c7 i added an ifdef, I dont know the exact engine version, my is 2,4, but there is no define for that, so I used 2.

h4ck3rm1k3 avatar Sep 24 '12 12:09 h4ck3rm1k3

Sorry, I had my github notification emails turned off by accident, so I missed all this recent activity. If you make a pull request, I can certainly pull it.

pbiggar avatar Sep 28 '12 23:09 pbiggar

@h4ck3rm1k3 thanks for this - now my phc is compiling great

brudinie avatar Jan 22 '13 16:01 brudinie