Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3905 invoked from network); 22 Mar 2010 18:37:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2010 18:37:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:55961] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/54-15234-9D8B7AB4 for ; Mon, 22 Mar 2010 13:37:18 -0500 Received: by bwz8 with SMTP id 8so460907bwz.23 for ; Mon, 22 Mar 2010 11:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=DyOHfEuoXELRwd6YgxONw71qk39VYLP8PBGf9Gec4ks=; b=rB0GdYFWAUeKtRX5XfsERsHqffLLH8ErDPkZjDKCeUr4UUysTcemzUepqSV5Gn75FS w8vvQ+swbbGZ+F+GidlQ68jh2seBxqsFql2sU3aalAPL70anh1tpEaZ4pbYgzsB4FPXD D0YQdYzdtXCi1ePm5WgXDTi04Xk2e7fpC8yEc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=vinPF8mMtw6qz4QYJil0ZjHpCY59sehU9cgyv/3ISDN5zYKDN9iNoLyJ8GnXtwpyyw xDGsJrkR0GL4Rvms/Ggvc1U4bfaxMPD6Z+8IV5p+Kz4YAgMLTJRoDC5ijc2ofBzVrlyb 0Qpd41c/cfDLv+8K7LXv1ED5lDqmY8KPf42wA= MIME-Version: 1.0 Received: by 10.204.80.36 with SMTP id r36mr4676636bkk.75.1269283030065; Mon, 22 Mar 2010 11:37:10 -0700 (PDT) In-Reply-To: <1855ED34-B6FA-4B74-B603-5A0D0A47A5A6@macvicar.net> References: <98b8086f1003220751j73a8414es89b9b469c46f6630@mail.gmail.com> <1269270852.1575.141.camel@guybrush> <98b8086f1003220822s47665f87x696b70e9c13dadbd@mail.gmail.com> <98b8086f1003220855ya52c266g8dc4cb866ed451ea@mail.gmail.com> <98b8086f1003221054j161316barf9a772da78f4ca85@mail.gmail.com> <1855ED34-B6FA-4B74-B603-5A0D0A47A5A6@macvicar.net> Date: Mon, 22 Mar 2010 19:37:09 +0100 Message-ID: <98b8086f1003221137v1942fba6tee987fe3b4ff4715@mail.gmail.com> To: Scott MacVicar Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PATCH] Raise warning first on "Maximum execution time exceeded" From: troelskn@gmail.com (troels knak-nielsen) On Mon, Mar 22, 2010 at 7:10 PM, Scott MacVicar wrote: > > Statics are bad, if its in multithreaded mode and two timeouts happen at once you'll get some funny behaviour. You need to store this in the thread local storage so the flag is per thread. > Thanks. My C is severely rusty; Would it simply be a matter of dropping the "static" modifier, or do I need to get hold of some kind of handle and attach the flag to that? In which case, what would be appropriate? -- troels