phalcon/cphalcon — pull request #1149 by sjinks (2013-08-24 07:06:43+00:00)
Title: [BUG] [CRASH] Segmentation fault in Phalcon\Image\Adapter\Gd::check()

```
Testing ImageTest Segmentation fault (збережено знімок оперативної пам’яті)

Program terminated with signal 11, Segmentation fault.
#0 0x000000000099c418 in zend_update_static_property (scope=0x1ccccf0, name=0x7fb38a146664 "_checked", name_length=8, value=0x0) at /tmp/php-build/source/5.5.0/Zend/zend_API.c:3805
3805 Z_TYPE_PP(property) = Z_TYPE_P(value);

#0 0x000000000099c418 in zend_update_static_property (scope=0x1ccccf0, name=0x7fb38a146664 "_checked", name_length=8, value=0x0) at /tmp/php-build/source/5.5.0/Zend/zend_API.c:3805
#1 0x00007fb3899948cd in phalcon_update_static_property_ce (ce=0x1ccccf0, name=0x7fb38a146664 "_checked", len=8, value=0x0) at /home/vladimir/workspace/cphalcon/ext/kernel/object.c:1261
#2 0x00007fb38999491c in phalcon_update_static_property (class_name=0x7fb38a14666d "phalcon\\image\\adapter\\gd", class_length=24, name=0x7fb38a146664 "_checked", name_length=8, value=0x0)
at /home/vladimir/workspace/cphalcon/ext/kernel/object.c:1270
#3 0x00007fb389bd010c in zim_Phalcon_Image_Adapter_GD_check (ht=0, return_value=0x31dedd8, return_value_ptr=0x7fffc92423e0, this_ptr=0x0, return_value_used=1) at /home/vladimir/workspace/cphalcon/ext/image/adapter/gd.c:134
#4 0x00007fb38998a5ed in phalcon_execute_internal (execute_data_ptr=0x7fffc9242300, fci=0x7fffc9242400, return_value_used=1) at /home/vladimir/workspace/cphalcon/ext/phalcon.c:367
#5 0x0000000000979d87 in zend_call_function (fci=0x7fffc9242400, fci_cache=0x7fffc92422d0) at /tmp/php-build/source/5.5.0/Zend/zend_execute_API.c:959
#6 0x00007fb38998e053 in phalcon_call_user_function (function_table=0x188d240, object_pp=0x0, function_name=0x287ac28, retval_ptr=0x2c20b48, retval_ptr_ptr=0x0, param_count=0, params=0x7fffc92426b8)
at /home/vladimir/workspace/cphalcon/ext/kernel/fcall.c:112
#7 0x00007fb38998eddc in phalcon_call_static_zval_str_func_vparams (return_value=0x2c20b48, return_value_ptr=0x0, mixed_name=0x7fffc92425e0, method_name=0x7fb38a14645a "check", method_len=5, param_count=0, ap=0x7fffc92425f8)
at /home/vladimir/workspace/cphalcon/ext/kernel/fcall.c:321
#8 0x00007fb38998f390 in phalcon_call_static_func_params (return_value=0x0, return_value_ptr=0x0, class_name=0x7fb38a14666d "phalcon\\image\\adapter\\gd", class_length=24, method_name=0x7fb38a14645a "check", method_length=5,
param_count=0) at /home/vladimir/workspace/cphalcon/ext/kernel/fcall.c:429
#9 0x00007fb389bd02a3 in zim_Phalcon_Image_Adapter_GD___construct (ht=3, return_value=0x2c77e98, return_value_ptr=0x7fb395eebd10, this_ptr=0x316ab38, return_value_used=0) at /home/vladimir/workspace/cphalcon/ext/image/adapter/gd.c:163
#10 0x00007fb38998a63c in phalcon_execute_internal (execute_data_ptr=0x7fb395eebfe8, fci=0x0, return_value_used=0) at /home/vladimir/workspace/cphalcon/ext/phalcon.c:371
#11 0x00000000009cc6c9 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fb395eebfe8) at /tmp/php-build/source/5.5.0/Zend/zend_vm_execute.h:545
#12 0x00000000009cce6b in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x7fb395eebfe8) at /tmp/php-build/source/5.5.0/Zend/zend_vm_execute.h:678
#13 0x00000000009cbd8a in execute_ex (execute_data=0x7fb395eebfe8) at /tmp/php-build/source/5.5.0/Zend/zend_vm_execute.h:356
#14 0x00000000009cbe12 in zend_execute (op_array=0x7fb395f23cc0) at /tmp/php-build/source/5.5.0/Zend/zend_vm_execute.h:381
#15 0x000000000098d6f4 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /tmp/php-build/source/5.5.0/Zend/zend.c:1316
#16 0x00000000008f5783 in php_execute_script (primary_file=0x7fffc9244de0) at /tmp/php-build/source/5.5.0/main/main.c:2481
#17 0x0000000000a3bbaf in do_cli (argc=2, argv=0x188c600) at /tmp/php-build/source/5.5.0/sapi/cli/php_cli.c:993
#18 0x0000000000a3ceed in main (argc=2, argv=0x188c600) at /tmp/php-build/source/5.5.0/sapi/cli/php_cli.c:1377
```