php 5.2.3 selgmentation fault, can somebody else reproduce it?

Miroslav Lachman 000.fbsd at quip.cz
Sun Jun 10 20:23:37 UTC 2007


Momchil Ivanov wrote:
> Hi,
> 
> I`m having trouble with php5-5.2.3 and filled out a bug report 
> http://bugs.php.net/bug.php?id=41645 can somebody else reproduce this with 
> the code given in the bug report, or am I the only one experiencing this? It 
> crashes without debug, and it works with debug on my machine.
> 
> 
> <snip>
> 
> Description:
> ------------
> php crashes with segmentation fault after executing a dummy function
> with some default vars
> 
> Reproduce code:
> ---------------
> <?php
> function get_links($category = -1,
> 			$before = '',
> 			$after = '<br />',
> 			$between = ' ',
> 			$show_images = true,
> 			$orderby = 'name',
> 			$show_description = true,
> 			$show_rating = false,
> 			$limit = -1,
> 			$show_updated = -1,
> 			$echo = true) {
> };
> get_links(-1, '<li>','</li>', '', false, 'name', false, false, -1);
> ?>
> 
> Expected result:
> ----------------
> a function with this prototype exists in wordpress. this one here should
> exit normally, but it crashes php. if you execute it without the last
> argument (corresponding to the $limit var): get_links(-1,
> '<li>','</li>', '', false, 'name', false, false) php doesn`t crash
> 
> </snip>

Tested on FreeBSD 6.2 with Apache 2.2.3 and following PHP config:

# pkg_info -R php5-5.2.3
Information for php5-5.2.3:

Required by:
ZendOptimizer-3.2.8
pear-1.5.4
pear-OLE-0.5
pear-Spreadsheet_Excel_Writer-0.9.1
pecl-zip-1.9.0
php-suhosin-0.9.20
php5-bz2-5.2.3
php5-ctype-5.2.3
php5-dom-5.2.3
php5-exif-5.2.3
php5-extensions-1.1
php5-ftp-5.2.3
php5-gd-5.2.3
php5-iconv-5.2.3
php5-imap-5.2.3
php5-mbstring-5.2.3
php5-mcrypt-5.2.3
php5-mysql-5.2.3
php5-mysqli-5.2.3
php5-openssl-5.2.3
php5-pcre-5.2.3
php5-posix-5.2.3_3
php5-session-5.2.3
php5-simplexml-5.2.3
php5-sockets-5.2.3
php5-spl-5.2.3
php5-sqlite-5.2.3
php5-sysvshm-5.2.3
php5-tokenizer-5.2.3
php5-xml-5.2.3
php5-xmlreader-5.2.3
php5-xmlwriter-5.2.3

It doen't crash.

Maybe you could try change order of extensions in 
/usr/local/etc/php/extensions.ini
I see lot off crashes with "wrong" order of extensions.

Miroslav Lachman


More information about the freebsd-ports mailing list