From owner-freebsd-ports@FreeBSD.ORG Sun Jun 10 20:23:37 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2D7C16A400 for ; Sun, 10 Jun 2007 20:23:37 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [82.208.36.70]) by mx1.freebsd.org (Postfix) with ESMTP id 74C0213C44C for ; Sun, 10 Jun 2007 20:23:37 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id AF69D19E02A; Sun, 10 Jun 2007 22:23:36 +0200 (CEST) Received: from [192.168.1.2] (grimm.quip.cz [213.220.192.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id 41B9319E027; Sun, 10 Jun 2007 22:23:29 +0200 (CEST) Message-ID: <466C5DD0.3000201@quip.cz> Date: Sun, 10 Jun 2007 22:23:44 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Momchil Ivanov References: <200706101430.07034.idiotbg@gmail.com> In-Reply-To: <200706101430.07034.idiotbg@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: php 5.2.3 selgmentation fault, can somebody else reproduce it? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2007 20:23:37 -0000 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. > > > > > Description: > ------------ > php crashes with segmentation fault after executing a dummy function > with some default vars > > Reproduce code: > --------------- > function get_links($category = -1, > $before = '', > $after = '
', > $between = ' ', > $show_images = true, > $orderby = 'name', > $show_description = true, > $show_rating = false, > $limit = -1, > $show_updated = -1, > $echo = true) { > }; > get_links(-1, '
  • ','
  • ', '', 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, > '
  • ','
  • ', '', false, 'name', false, false) php doesn`t crash > >
    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