Someone, please fix Zend Engine!
March 29, 2009
I am writing a PHP extension which uses a library written in C++, which means that the actual extension should partially be compiled with a C++ compiler. C++ is stricter when talking about char *.
Follows an excerpt. I have tons more of these, just wanted to show an example.
/php5_3/Zend/zend_execute.h:259: warning: deprecated conversion from string constant to 'char*'
/php5_3/Zend/zend_execute.h: In function 'void zend_vm_stack_clear_multiple(void***)':
/php5_3/Zend/zend_execute.h:277: warning: deprecated conversion from string constant to 'char*'
/php5_3/ext/cpplib/cpplib_export.cpp: In function 'void zim_cpplib_result_getBoolean(int, zval*, zval**, zval*, int, void***)':
/php5_3/ext/cpplib/cpplib_export.cpp:180: warning: deprecated conversion from string constant to 'char*'
/php5_3/ext/cpplib/cpplib_export.cpp:180: warning: deprecated conversion from string constant to 'char*'
/php5_3/ext/cpplib/cpplib_export.cpp:180: warning: deprecated conversion from string constant to 'char*'
What is on line 180 in my file?
convert_to_string_ex(&col_name);
I don't have karme for the Zend folder, otherwise I would have already fixed this. I am a big fan of reserved word const.