Hi,
i have problems with ming and the new zend2engine.
Is it not possible to detect zend objects about the zend_hash_find
method with the new zend engine?
e.g.:
in ming.c SWFgetProperty() zend_hash_find cant locate the objects which
is
defined with $movie=new SWFMovie(); (swfmovie_init())
<ming.c line 138>
if (zend_hash_find(Z_OBJPROP_P(id), name, namelen+1, (void **)&tmp) ==
FAILURE) {
php_error(E_WARNING, "unable to find property %s", name);
return NULL;
}
</ming.c>
Is it only a problem with Z_OBJPROP ?
In this context, i have also sometimes a segfault with ming and zend
engine2. Here is the backtrace:
#0 0x20200a3b in ?? ()
#1 0x40400119 in _object_init_ex (arg=0x409536d8, class_type=0x8168c4c,
__zend_filename=0x4042eb82 "var_unserializer.re",
__zend_lineno=196) at /usr/src/php5/Zend/zend_API.c:610
#2 0x403b5f12 in object_common1 (rval=0xbffedbec, p=0xbffedca8, max=
0x408d9f0f "", var_hash=0xbffedcac, ce=0x8168c4c)
at var_unserializer.re:196
#3 0x403b4ff2 in php_var_unserialize (rval=0xbffedbec, p=0xbffedca8,
max=0x408d9f0f "", var_hash=0xbffedcac)
at var_unserializer.re:386
#4 0x403b5d61 in process_nested_data (rval=0xbffedcc4, p=0xbffedca8,
max=0x408d9f0f "", var_hash=0xbffedcac, ht=0x409530e0,
elements=1) at var_unserializer.re:152
#5 0x403b52df in php_var_unserialize (rval=0xbffedcc4, p=0xbffedca8,
max=0x408d9f0f "", var_hash=0xbffedcac)
at var_unserializer.re:315
#6 0x403acd94 in zif_unserialize (ht=1, return_value=0x40953268,
this_ptr=0x0, return_value_used=1)
at /usr/src/php5/ext/standard/var.c:667
#7 0x404147a9 in execute (op_array=0x408f98f8) at
/usr/src/php5/Zend/zend_execute.c:2079
#8 0x40414941 in execute (op_array=0x407b4f40) at
/usr/src/php5/Zend/zend_execute.c:2103
#9 0x40414941 in execute (op_array=0x407597d8) at
/usr/src/php5/Zend/zend_execute.c:2103
#10 0x40414941 in execute (op_array=0x8165af0) at
/usr/src/php5/Zend/zend_execute.c:2103
#11 0x403f3579 in call_user_function_ex (function_table=0x4048cab0,
object_pp=0x0, function_name=0x408e03a0,
retval_ptr_ptr=0xbfff4ef4, param_count=5, params=0x408891c8,
no_separation=1, symbol_table=0x0)
at /usr/src/php5/Zend/zend_execute_API.c:610
#12 0x403fe563 in zend_error (type=2, format=0x406cd360 "unable to find
property %s") at /usr/src/php5/Zend/zend.c:758
#13 0x4069f878 in SWFgetProperty () from
/usr/local/lib/php/extensions/debug-non-zts-20020429/php_ming.so
#14 0x406a4b7a in getMovie () from /usr/local/lib/php/extensions/debug-
non-zts-20020429/php_ming.so
#15 0x406a4d3e in zif_swfmovie_add () from
/usr/local/lib/php/extensions/debug-non-zts-20020429/php_ming.so
#16 0x404147a9 in execute (op_array=0x40755498) at
/usr/src/php5/Zend/zend_execute.c:2079
#17 0x40414941 in execute (op_array=0x40634a40) at
/usr/src/php5/Zend/zend_execute.c:2103
#18 0x403fe7d0 in zend_execute_scripts (type=8, retval=0x0, file_count=
3) at /usr/src/php5/Zend/zend.c:829
#19 0x403c5755 in php_execute_script (primary_file=0xbffff4c0) at
/usr/src/php5/main/main.c:1504
#20 0x4041a5de in apache_php_module_main (r=0x81605a8,
display_source_mode=0) at /usr/src/php5/sapi/apache/sapi_apache.c:55
#21 0x4041b52c in send_php (r=0x81605a8, display_source_mode=0,
filename=0x8160ca0 "/web/foo.php") at
/usr/src/php5/sapi/apache/mod_php4.c:558
#22 0x4041b5b2 in send_parsed_php (r=0x81605a8) at
/usr/src/php5/sapi/apache/mod_php4.c:573
#23 0x08055ef7 in ap_invoke_handler ()
#24 0x0806bdab in process_request_internal ()
#25 0x0806c207 in ap_internal_redirect ()
#26 0x402cae12 in handle_dir () from
/usr/local/apache/1.3.dev/libexec/mod_dir.so
#27 0x08055ef7 in ap_invoke_handler ()
#28 0x0806bdab in process_request_internal ()
#29 0x0806be20 in ap_process_request ()
#30 0x08062932 in child_main ()
#31 0x08062b04 in make_child ()
#32 0x08062c78 in startup_children ()
#33 0x08063320 in standalone_main ()
#34 0x08063bbf in main ()
#35 0x4008c280 in __libc_start_main () from /lib/libc.so.6
Regards,
Steve
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php