Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22717 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13995 invoked by uid 1010); 11 Apr 2006 18:51:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13980 invoked from network); 11 Apr 2006 18:51:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2006 18:51:50 -0000 X-Host-Fingerprint: 212.55.154.26 relay6.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.26:47971] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 08/3D-19715-5CAFB344 for ; Tue, 11 Apr 2006 14:51:50 -0400 Received: (qmail 1271 invoked by uid 0); 11 Apr 2006 18:51:45 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.153) by relay6 with SMTP; 11 Apr 2006 18:51:45 -0000 Received: (qmail 4944 invoked from network); 11 Apr 2006 18:51:45 -0000 X-AntiVirus: PTMail-AV 0.3.88 X-Virus-Status: Clean (0.00852 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.184.31]) (envelope-sender ) by mta3 (qmail-ldap-1.03) with SMTP for ; 11 Apr 2006 18:51:45 -0000 Message-ID: <004901c65d98$fb02ba70$0100a8c0@pc07653> To: "Andrei Zmievski" , "PHP Internals" Cc: "Ilia Alshanetsky" References: <43e2d0beeea44b0a7a5ab9a0fefc5fb5@gravitonic.com> Date: Tue, 11 Apr 2006 19:51:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Re: [PHP-DEV] PCRE error handling patch From: nlopess@php.net ("Nuno Lopes") I would say that 100.000 recursions is too much. When I made my patch it was segfaulting with such value. 50.000 is a much safer choice (at least on my gentoo box, 8 MB of stack). Nuno ----- Original Message ----- >I made a patch (against HEAD currently only) that makes it possible to set >runtime limits on backtracking and recursion. It also implements >preg_last_error() that lets users check whether there was an execution >error (such as limit exceeded or bad UTF-8 or whatever). > > Ilia, do you think it might make it into 5.1.3? > > http://www.php.net/~andrei/pcre.diff > > -Andrei > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php