$mapfile = "test.map"; $map = ms_newMapObj($mapfile); //$map = new MapObj($mapfile); //$pnt = ms_newPointObj(); $pnt = new PointObj(); $pnt->setXY(250,200); run with PHP CLI causes: Core was generated by `/usr/local/bin/php ./test_mapfile.php'. Program terminated with signal 11, Segmentation fault. #0 0x00000000007667c0 in gc_remove_from_buffer (zv=) at /home/install/mapserver/php-5.3.5/Zend/zend_gc.h:189 189 root->next->prev = root->prev; (gdb) bt #0 0x00000000007667c0 in gc_remove_from_buffer (zv=) at /home/install/mapserver/php-5.3.5/Zend/zend_gc.h:189 #1 gc_remove_zval_from_buffer (zv=) at /home/install/mapserver/php-5.3.5/Zend/zend_gc.c:265 #2 0x000000000073d1a5 in _zval_ptr_dtor (zval_ptr=0x7fff34c3ed78) at /home/install/mapserver/php-5.3.5/Zend/zend_execute_API.c:442 #3 0x000000000073d20e in zend_vm_stack_clear_multiple () at /home/install/mapserver/php-5.3.5/Zend/zend_execute.h:318 #4 0x000000000073f4b3 in zend_call_function (fci=0x7fff34c3ef30, fci_cache=0x7fff34c3eeb0) at /home/install/mapserver/php-5.3.5/Zend/zend_execute_API.c:1022 #5 0x0000000000740150 in call_user_function_ex (function_table=, object_pp=, function_name=0xd312a0, retval_ptr_ptr=0x31, param_count=0, params=0xa45b5e, no_separation=1, symbol_table=0x0) at /home/install/mapserver/php-5.3.5/Zend/zend_execute_API.c:754 #6 0x00000000007401a2 in call_user_function (function_table=0xffebc0, object_pp=0x61, function_name=0xd312a0, retval_ptr=0x7fff34c3f060, param_count=0, params=) at /home/install/mapserver/php-5.3.5/Zend/zend_execute_API.c:727 #7 0x00007f1224057ea6 in zim_pointObj_setXY () from /usr/local/lib/php/extensions/php_mapscript.so #8 0x0000000000797d3a in zend_do_fcall_common_helper_SPEC (execute_data=0x7f121e390050) at /home/install/mapserver/php-5.3.5/Zend/zend_vm_execute.h:316 #9 0x000000000076ee50 in execute (op_array=0x1249420) at /home/install/mapserver/php-5.3.5/Zend/zend_vm_execute.h:107 #10 0x000000000074901f in zend_execute_scripts (type=8, retval=, file_count=3) at /home/install/mapserver/php-5.3.5/Zend/zend.c:1194 #11 0x00000000006f6a68 in php_execute_script (primary_file=) at /home/install/mapserver/php-5.3.5/main/main.c:2265 #12 0x00000000007d3706 in main (argc=, argv=) at /home/install/mapserver/php-5.3.5/sapi/cli/php_cli.c:1193 running an application in Apache (PHP module): Starting program: /usr/sbin/apache2 -X [Thread debugging using libthread_db enabled] apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7271252 in ?? () from /lib/libc.so.6 (gdb) bt #0 0x00007ffff7271252 in ?? () from /lib/libc.so.6 #1 0x00007fffed3edb26 in zim_mapObj_getMetaData () from /usr/local/lib/php/extensions/php_mapscript.so #2 0x00007ffff42e2b6a in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffe79297a0) at /home/install/mapserver/php-5.3.5/Zend/zend_vm_execute.h:316 #3 0x00007ffff42b9c80 in execute (op_array=0x7ffff85f73d8) at /home/install/mapserver/php-5.3.5/Zend/zend_vm_execute.h:107 #4 0x00007ffff4293e4f in zend_execute_scripts (type=8, retval=, file_count=3) at /home/install/mapserver/php-5.3.5/Zend/zend.c:1194 #5 0x00007ffff4241898 in php_execute_script (primary_file=) at /home/install/mapserver/php-5.3.5/main/main.c:2265 #6 0x00007ffff431dc05 in php_handler (r=) at /home/install/mapserver/php-5.3.5/sapi/apache2handler/sapi_apache2.c:669 #7 0x00007ffff7fd6140 in ap_run_handler (r=0x7ffff87ad8a0) at /build/buildd/apache2-2.2.14/server/config.c:159 #8 0x00007ffff7fd9aa8 in ap_invoke_handler (r=0x7ffff87ad8a0) at /build/buildd/apache2-2.2.14/server/config.c:373 #9 0x00007ffff7fe749c in ap_internal_redirect (new_uri=, r=) at /build/buildd/apache2-2.2.14/modules/http/http_request.c:501 #10 0x00007fffee229c95 in ?? () from /usr/lib/apache2/modules/mod_rewrite.so #11 0x00007ffff7fd6140 in ap_run_handler (r=0x7ffff87a0048) at /build/buildd/apache2-2.2.14/server/config.c:159 #12 0x00007ffff7fd9aa8 in ap_invoke_handler (r=0x7ffff87a0048) at /build/buildd/apache2-2.2.14/server/config.c:373 #13 0x00007ffff7fe7678 in ap_process_request (r=0x7ffff87a0048) at /build/buildd/apache2-2.2.14/modules/http/http_request.c:282 #14 0x00007ffff7fe4528 in ap_process_http_connection (c=0x7ffff879a208) at /build/buildd/apache2-2.2.14/modules/http/http_core.c:190 #15 0x00007ffff7fddcf8 in ap_run_process_connection (c=0x7ffff879a208) at /build/buildd/apache2-2.2.14/server/connection.c:43 #16 0x00007ffff7fec037 in child_main (child_num_arg=) at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:662 #17 0x00007ffff7fec306 in make_child (s=0x7ffff8214938, slot=0) at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:702 #18 0x00007ffff7fec953 in ap_mpm_run (_pconf=, plog=, s=) at /build/buildd/apache2-2.2.14/server/mpm/prefork/prefork.c:978 #19 0x00007ffff7fc2350 in main (argc=2, argv=0x7fffffffe658) at /build/buildd/apache2-2.2.14/server/main.c:742 (gdb) quit