Date: Sun, 10 Jun 2007 22:23:44 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: Momchil Ivanov <idiotbg@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: php 5.2.3 selgmentation fault, can somebody else reproduce it? Message-ID: <466C5DD0.3000201@quip.cz> In-Reply-To: <200706101430.07034.idiotbg@gmail.com> References: <200706101430.07034.idiotbg@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?466C5DD0.3000201>