Edit report at https://bugs.php.net/bug.php?id=60209&edit=1
ID: 60209 User updated by: rgfer at comcast dot net Reported by: rgfer at comcast dot net Summary: PHP CLI core dumps with ibm_db2-1.9.2 module -Status: Open +Status: Closed Type: Bug Package: ibm_db2 Operating System: AIX 6.1 TL7 PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: I discovered the problem. Configure was messing up my BUILD_CLI variable. Changed: BUILD_CLI="echo '\#! .' ..... lots of other stuff ... to BUILD_CLI="echo ' ' ..... lots of other stuff and now my CLI is building properly. I am using GNU make and surprised this hasn't been reported before ? Previous Comments: ------------------------------------------------------------------------ [2011-11-03 14:29:57] rgfer at comcast dot net Some additional info on DB/2 : $ db2level DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL09074" with level identifier "08050107". Informational tokens are "DB2 v9.7.0.4", "s110330", "IP23236", and Fix Pack "4". Product is installed at "/opt/IBM/db2/V9.7". ------------------------------------------------------------------------ [2011-11-03 12:51:00] rgfer at comcast dot net Description: ------------ Configured as: ./configure \ --with-ibm-db2=/db2aix/db2inst1/sqllib \ --prefix=/opt/freeware \ --with-freetype-dir=/opt/freeware \ --with-apxs2=/usr/IBM/HTTPServer/bin/apxs \ --with-config-file-path=/usr/IBM/HTTPServer/conf \ --with-mysql=mysqlnd \ --with-ldap=/opt/freeware \ --enable-soap \ --with-openssl=/opt/freeware \ --enable-ftp \ --with-zlib=/opt/freeware \ --with-gd=/opt/freeware \ --enable-pdo \ --with-pdo-mysql=mysqlnd \ --with-pdo-sqlite \ --with-sqlite \ --with-xpm-dir=/opt/freeware \ --with-jpeg-dir=/opt/freeware \ --with-png-dir=/opt/freeware \ --with-curl=/opt/freeware \ --with-libxml-dir=/opt/freeware \ --without-iconv \ --disable-phar Using CC=xlC (IBM vacpp compiler. Produces core dump when running php -v from the command line. Illegal instruction (illegal opcode) in . at 0x0 ($t1) warning: Unable to access address 0x0 from core (dbx) where .() at 0x0 zm_startup_ibm_db2(type = 1, module_number = 36, tsrm_ls = 0x200844b8), line 542 in "ibm_db2.c" zend_startup_module_ex(module = 0x20082808, tsrm_ls = 0x200844b8), line 1614 in " zend_API.c" unnamed block in zend_hash_apply(ht = 0x200656c8, apply_func = 0x20057318, tsrm_l s = 0x200844b8), line 674 in "zend_hash.c" zend_hash_apply(ht = 0x200656c8, apply_func = 0x20057318, tsrm_ls = 0x200844b8), line 674 in "zend_hash.c" zend_startup_modules(tsrm_ls = 0x200844b8), line 1663 in "zend_API.c" php_module_startup(sf = 0x20053518, additional_modules = (nil), num_additional_mo dules = 0), line 2042 in "main.c" php_cli_startup(sapi_module = 0x20053518), line 398 in "php_cli.c" php_cli.main(argc = 2, argv = 0x2ff228e4), line 770 in "php_cli.c" (dbx) quit Test script: --------------- php -v Expected result: ---------------- # php -v PHP 5.3.8 (cli) (built: Nov 3 2011 06:50:35) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies Actual result: -------------- # php -v Illegal instruction(coredump) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60209&edit=1