ID:               47505
 Updated by:       j...@php.net
 Reported By:      lordsabre at hotmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         SPL related
 Operating System: Freebsd 4.9 & freebsd 6.3 AMD64
 PHP Version:      5.2.8
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------

[2009-02-25 22:24:10] lordsabre at hotmail dot com

Description:
------------
Freebsd 4.9 
Apache 2.0.59  php 5.2.8

Upgrading for new install of php 5.2.8 causes a general fault in the
SSL apache engine, resulting in a core dump. It is noted that when the
server is started in non SSL mode the server starts and no core dump.
However, $_post causes a php error of out of memory. Tracing back it
comes from the array table SPL.

The same exact configuration was used for 5.2.6 which is not
experiencing this problem. Recompiled and install 5.2.6 as a work
around.

The config is as follows:
./configure --prefix=/usr/local/php --mandir=/usr/share/man
--enable-force-cgi-redirect --with-openssl=/usr/local/ssl
--with-mysql=/usr/local/mysql
--with-mysql-sock=/var/mysqlsocket/mysql.sock
--with-apxs2=/usr/local/apache/bin/apxs
--with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng
--with-zlib-dir=/usr/local/zlib --with-gd
--with-freetype-dir=/usr/local/freetype
--with-config-file-path=/usr/local/php/etc
--with-iconv=/usr/local/libiconv -with-mcrypt=/usr/local/libmcrypt
--with-libxml-dir=/usr/local/libxml --with-imap=/usr/local/imapclient
--with-imap-ssl --disable-ipv6 --with-curl=/usr/local/curl
--enable-bcmath --enable-ftp

Tried the same on a newer machine:
Freebsd 6.3 AMD64  apache 2.2.9
Compiled 5.2.8 and same exact results as 4.9. Core dump. Interesting
aspect there is absolutely no information other than using gdb to step
through apache.
Slight different config. Because of package locations. 
./configure --prefix=/usr/local/php --mandir=/usr/share/man
--enable-force-cgi-redirect --with-openssl=/usr 
--with-mysql=/usr/local/mysql --with-mysql-sock=/var/socket/mysqlsocket
--with-apxs2=/usr/local/apache/sbin/apxs
--with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng
--with-zlib-dir=/usr/local/zlib --with-gd
--with-freetype-dir=/usr/local/freetype
--with-config-file-path=/usr/local/php/etc
--with-libxml-dir=/usr/local/libxml --with-iconv=/usr/local/libiconv
--with-curl=/usr/local/curl --with-mcrypt=/usr/local/mcrypt
--with-imap=/usr/local/imapclient --with-imap-ssl --disable-ipv6
--with-ftp

During the tests
this failure of 5.2.8 during make test was observed.
SPL: ArrayObject::__construct basic usage with
ArrayObject::ARRAY_AS_PROPS.
[ext/spl/tests/arrayObject___construct_basic4.phpt]
SPL: ArrayObject::__construct basic usage with
ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS.
[ext/spl/tests/arrayObject___construct_basic5.phpt]
SPL: ArrayObject::exchangeArray() basic usage with object as underlying
data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt]
SPL: ArrayObject::setFlags basic usage with
ArrayObject::ARRAY_AS_PROPS.
[ext/spl/tests/arrayObject_setFlags_basic1.phpt]



Reproduce code:
---------------
None required.
See above

Expected result:
----------------
See description  core dump

Actual result:
--------------
See description. not overly long.

No field for this part:
Also note
http://www.freebsd.org/cgi/ports.cgi?query=php+&stype=all&sektion=lang,
there a number of files/patches for 5.2.8 that is not included or shown
in php. I have not retested with the patches, since php should compile 
and operate out of the box. Not everyone agrees with the changes of
directory structure in Freebsd.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47505&edit=1

Reply via email to