From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112132 invoked by alias); 29 Nov 2016 18:08:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 112118 invoked by uid 89); 29 Nov 2016 18:08:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=59yfvs, H*Ad:U*yselkowitz, H*f:sk:62b36cd, H*i:sk:62b36cd X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 Nov 2016 18:08:44 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C6ED8123E for ; Tue, 29 Nov 2016 18:08:43 +0000 (UTC) Received: from [10.10.116.23] (ovpn-116-23.rdu2.redhat.com [10.10.116.23]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uATI8g9v017495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 29 Nov 2016 13:08:42 -0500 Subject: Re: php 7 upgrade -- segmentation fault To: cygwin@cygwin.com References: <62b36cdc7f851bc121f62721ede7b0752b25@guerrillamail.com> From: Yaakov Selkowitz Message-ID: <60f9f0df-0018-df38-0683-703f38babc83@cygwin.com> Date: Tue, 29 Nov 2016 18:25:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <62b36cdc7f851bc121f62721ede7b0752b25@guerrillamail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00334.txt.bz2 On 2016-11-29 11:50, 59yfvs+f4bkzvgzw at guerrillamail.com wrote: > I've isolated the issue to a regular expression match! > > This line: > $command = ( preg_match('#^(?:\:.*? )?(.*?) #', $buffer, $matches) ) ? $matches[1] : ''; > > causes the segfaulting. BUT WHY? Again this worked fine in php5.x . There is > something broken with PCRE in this build. I don't think so. I tried the preg_match() examples in the manual and they worked fine. Are you sure there isn't something else in your script that needs to updated for 7.0? Otherwise, please provide an STC which replicates this. -- Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple