ID: 35571 Updated by: [EMAIL PROTECTED] Reported By: kclair at gmail dot com -Status: Open +Status: Closed Bug Type: Apache2 related Operating System: linux PHP Version: 4.4.1 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-12-06 16:57:10] kclair at gmail dot com Description: ------------ SSI files which include php scripts are behaving differently after upgrading from php 4.3.10 to php 4.4.1. Apache version is 2.0.54. I tried it with two different configure options: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug=no --enable-versioning --enable-track-vars --with-openssl --with-jpeg-dir=/home/sys/src/jpeg-6b --with-expat=/usr/lib --with-mcrypt --with-config-file-path=/home/sys/etc/php-noZend/ --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf --with-freetype-dir=/usr --with-curl --with-mysql=/usr --with-gd --with-sablot --with-xslt-sablot --enable-xslt --disable-zend-memory-manager ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug=no --enable-versioning --enable-track-vars --with-openssl --with-jpeg-dir=/home/sys/src/jpeg-6b --with-expat=/usr/lib --with-mcrypt --with-config-file-path=/home/sys/etc/ --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf --with-freetype-dir=/usr --with-curl --with-mysql=/usr --with-gd --with-sablot --with-xslt-sablot --enable-xslt I also tried it both with Zend optimizer enabled and with Zend optimizer disabled in php.ini. Reproduce code: --------------- The includes from the files which segfault look like: <!--#include file="eventsdb.php?ID=81&fld=2" --> The php code is a short db query: if ($conn == false){ echo mysql_errno() . ": " . mysql_error() . "<BR>"; exit; } else { $rtn = mysql_select_db ("[tablename]"); $sql = "select * from events where ID = ".$ID; $result = mysql_query ($sql); if ( ($row = mysql_fetch_row($result)) && ($today<=$row[4] ) ){ mysql_fetch_row($result)) { [snip echo mysql results] } } } } Expected result: ---------------- Results from mysql query should be displayed on page. Actual result: -------------- Blank pages. The backtrace is the same regardless of which compile options I used: #0 0xb7e095cc in zend_hash_index_update_or_next_insert (ht=0xb7ea29c0, h=0, pData=0xbfffdc60, nDataSize=12, pDest=0x0, flag=1) at /home/sys/src/php-4.4.1/Zend/zend_hash.c:390 390 p = ht->arBuckets[nIndex]; (gdb) bt full #0 0xb7e095cc in zend_hash_index_update_or_next_insert (ht=0xb7ea29c0, h=0, pData=0xbfffdc60, nDataSize=12, pDest=0x0, flag=1) at /home/sys/src/php-4.4.1/Zend/zend_hash.c:390 nIndex = 0 p = Variable "p" is not available. (gdb) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35571&edit=1
