pbiggar / phc

A compiler for PHP
132 stars 37 forks source link

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

Open h4ck3rm1k3 opened 12 years ago

h4ck3rm1k3 commented 12 years ago

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_methodinfo(String)': src/embed/optimize.cpp:223: error: invalid conversion from 'zend_fcallinfo' to 'uint' src/embed/optimize.cpp:223: error: cannot convert 'zend_fcall_infocache' to 'zend_fcallinfo' for argument '3' to 'int \ zend_fcall_infoinit(zval, uint, zend_fcallinfo, zend_fcall_infocache, 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 commented 12 years ago

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.

pbiggar commented 12 years ago

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.

brudinie commented 11 years ago

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