运行 PHP 5.4.15 / ZF 1.12.3(我相信从 5.4.12 或 13 升级)。运行带有 php-fpm 的 nginx,也使用 Apache 进行了测试。注意:这似乎与 APC 有关。我非常喜欢 APC,并且由于与 Doctrine 和 DOCTYPE 实体声明有关的问题而不能使用 eAccelerator。
验证表单时,它会导致一个信号 11 sigsegv 全面(不同版本)。
在 HTML 模板内运行表单验证(应该不是问题)
$p = Zend_Controller_Front::getInstance()->getRequest()->getParams();
if (!$form->isValid($p)) { .. }
我从回溯中倾倒了我所能做的。
#0 _zend_mm_free_int (heap=0x22f8800, p=0x28d4130) at /root/php-5.4.15/Zend/zend_alloc.c:2100
#1 0x000000000079aefb in zend_hash_destroy (ht=0x28e6cf0) at /root/php-5.4.15/Zend/zend_hash.c:560
#2 0x000000000078b657 in _zval_dtor_func (zvalue=0x28e6c30) at /root/php-5.4.15/Zend/zend_variables.c:45
#3 0x000000000077dee0 in _zval_dtor (zval_ptr=0x28e83a8) at /root/php-5.4.15/Zend/zend_variables.h:35
#4 _zval_ptr_dtor (zval_ptr=0x28e83a8) at /root/php-5.4.15/Zend/zend_execute_API.c:438
#5 0x000000000079aefb in zend_hash_destroy (ht=0x28e9180) at /root/php-5.4.15/Zend/zend_hash.c:560
#6 0x00000000007b17cc in zend_object_std_dtor (object=0x28e1dc8, tsrm_ls=<value optimized out>) at /root/php-5.4.15/Zend/zend_objects.c:44
#7 0x00000000007b1859 in zend_objects_free_object_storage (object=0x28e1dc8, tsrm_ls=<value optimized out>) at /root/php-5.4.15/Zend/zend_objects.c:137
#8 0x00000000007b7e87 in zend_objects_store_del_ref_by_handle_ex (handle=128, handlers=<value optimized out>, tsrm_ls=0x22f6090) at /root/php-5.4.15/Zend/zend_objects_API.c:221
#9 0x00000000007b7ebe in zend_objects_store_del_ref (zobject=0x28e1ae8, tsrm_ls=0x22f6090) at /root/php-5.4.15/Zend/zend_objects_API.c:173
#10 0x000000000077dee0 in _zval_dtor (zval_ptr=0x28e9af0) at /root/php-5.4.15/Zend/zend_variables.h:35
#11 _zval_ptr_dtor (zval_ptr=0x28e9af0) at /root/php-5.4.15/Zend/zend_execute_API.c:438
#12 0x000000000079aefb in zend_hash_destroy (ht=0x28e99a8) at /root/php-5.4.15/Zend/zend_hash.c:560
#13 0x000000000078b657 in _zval_dtor_func (zvalue=0x28e9a00) at /root/php-5.4.15/Zend/zend_variables.c:45
#14 0x000000000077dee0 in _zval_dtor (zval_ptr=0x28cb010) at /root/php-5.4.15/Zend/zend_variables.h:35
#15 _zval_ptr_dtor (zval_ptr=0x28cb010) at /root/php-5.4.15/Zend/zend_execute_API.c:438
#16 0x000000000079aefb in zend_hash_destroy (ht=0x28c8be0) at /root/php-5.4.15/Zend/zend_hash.c:560
#17 0x00000000007b17cc in zend_object_std_dtor (object=0x28c4e90, tsrm_ls=<value optimized out>) at /root/php-5.4.15/Zend/zend_objects.c:44
#18 0x00000000007b1859 in zend_objects_free_object_storage (object=0x28c4e90, tsrm_ls=<value optimized out>) at /root/php-5.4.15/Zend/zend_objects.c:137
#19 0x00000000007b7837 in zend_objects_store_free_object_storage (objects=0x22f9b40, tsrm_ls=0x22f6090) at /root/php-5.4.15/Zend/zend_objects_API.c:92
#20 0x0000000000780ec1 in shutdown_executor (tsrm_ls=0x22f6090) at /root/php-5.4.15/Zend/zend_execute_API.c:297
#21 0x000000000078cca3 in zend_deactivate (tsrm_ls=0x22f6090) at /root/php-5.4.15/Zend/zend.c:938
#22 0x000000000072390f in php_request_shutdown (dummy=<value optimized out>) at /root/php-5.4.15/main/main.c:1800
#23 0x00000000008523b3 in main (argc=<value optimized out>, argv=<value optimized out>) at /root/php-5.4.15/sapi/fpm/fpm/fpm_main.c:1952
对此或相关问题的任何经验/见解都会有所帮助!
谢谢!