Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51084 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6366 invoked from network); 19 Dec 2010 09:56:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2010 09:56:51 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.143 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.143 smtp143.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.143] ([67.192.241.143:42914] helo=smtp143.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/E7-35939-2E6DD0D4 for ; Sun, 19 Dec 2010 04:56:51 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp14.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 1737B2980BD; Sun, 19 Dec 2010 04:56:48 -0500 (EST) X-Virus-Scanned: OK Received: by smtp14.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id CB5D62980B5; Sun, 19 Dec 2010 04:56:47 -0500 (EST) Message-ID: <4D0DD6DF.4020006@sugarcrm.com> Date: Sun, 19 Dec 2010 01:56:47 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Hannes_Magn=FAsson?= CC: PHP Internals References: <4D0D7CA1.8030200@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [path] fixing errors, take 2 From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > AFAICT from the patch.. > if (@strpos()) {} else { var_dump(error_get_last()); } > will give you the last error that happened before strpos()? Hmm... that unfortunately depends on ignore_repeated_errors, I didn't see this use case. With error_get_last() we probably can't fix it since it requires storing full error message for every error. That kind of sucks :( -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227