Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12710 invoked from network); 14 Aug 2008 19:25:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2008 19:25:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.92.25 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 74.125.92.25 qw-out-2122.google.com Received: from [74.125.92.25] ([74.125.92.25:29983] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/DC-45372-BA684A84 for ; Thu, 14 Aug 2008 15:25:31 -0400 Received: by qw-out-2122.google.com with SMTP id 8so62022qwh.59 for ; Thu, 14 Aug 2008 12:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=LZaqab66BKbTBbepGrur6WnUoT4yBemNVlxoPaU5rM0=; b=DOCZ9gGpoTp+xyjS+2fdBxFq1dUXVkE7cy179dJa4Bm3I10rwXu4J8G79qSijEVZgr wDfg5Vf+rOk9wIR1g6I0jfdBCDdzpq7vvgDqJFBFI5k+yPuMYlJOxssGUKqXbkztBnkP fgL4KbyO+cwT6386uf8Xw5Afj47LiMeB7iCqA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=ih2V2d9+tBpYP0p5faxf0406lUAUQgDhNbCzqjTTnO1QPBOHa9bB/Gu3EtPg0kXVMC O2Ks2M0Sh8ZFDiDGLXYNQFlt/w09Y1Im+P0A1S8MrUhk6DEy5e31Ab+sOZg76mcYv2gN 4fG5pYDClOvrfuhB5gmYHwUDIpxJ2nQNQGbog= Received: by 10.214.81.3 with SMTP id e3mr1711845qab.15.1218741928787; Thu, 14 Aug 2008 12:25:28 -0700 (PDT) Received: from ?10.0.18.8? ( [157.86.206.62]) by mx.google.com with ESMTPS id 9sm2670807ywf.2.2008.08.14.12.25.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 12:25:28 -0700 (PDT) To: Marcus Boerger Cc: Lupus Michaelis , internals@lists.php.net In-Reply-To: <911733834.20080814211855@marcus-boerger.de> References: <6D.DA.45372.54C74A84@pb1.pair.com> <201245907.20080814211734@marcus-boerger.de> <911733834.20080814211855@marcus-boerger.de> Content-Type: text/plain; charset=utf-8 Date: Thu, 14 Aug 2008 16:25:21 -0300 Message-ID: <1218741921.5431.4.camel@felipe> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Exception segfault From: felipensp@gmail.com (Felipe Pena) Em Qui, 2008-08-14 às 21:18 +0200, Marcus Boerger escreveu: > Hello Marcus, > > Thursday, August 14, 2008, 9:17:34 PM, you wrote: > > > Hello Lupus, > > > Thursday, August 14, 2008, 8:42:23 PM, you wrote: > > >> Hi, > > >> At first time, it was a bug in the useful xdebug, and I follow it to > >> the PHP code . > > >> When exception::$message, exception::$line are not of the initial > >> type, it segfaults (for strings) or display non-predictible data. The > >> next snipset for test : > > >> > >> class my_file > >> { > >> public function __toString() > >> { > >> return "somebuildfilename" ; > >> } > >> } > > >> class my_exception extends exception > >> { > >> public function __construct() > >> { > >> $this->message = new stdclass ; > >> $this->file = new my_file ; > >> $this->line = "12" ; > >> } > >> } > > >> throw new my_exception ; > > ?>>> > > >> I attach a patch that correct the segfault. Diff was produced with > >> this line : diff php5.3-200808141030{,-lupus}/Zend/zend_exceptions.c > > > Thanks for letting us know. Can you provide the diff using 'cvs di -uwp'. > > Well, Felipe was much faster than I. He applied your patch already. Thanks > again a lot. > > Hello, I don't applied your patch, because I can reproduce it only in HEAD, then I added the convert_* that are missing in HEAD in same place where they are found in 5_3. -- Regards, Felipe Pena.