Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64385 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32614 invoked from network); 20 Dec 2012 17:04:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2012 17:04:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.216.45 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.216.45 mail-qa0-f45.google.com Received: from [209.85.216.45] ([209.85.216.45:38133] helo=mail-qa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/98-20281-A1543D05 for ; Thu, 20 Dec 2012 12:04:27 -0500 Received: by mail-qa0-f45.google.com with SMTP id j15so5367448qaq.18 for ; Thu, 20 Dec 2012 09:04:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=YsmaU1NRhRuLIljR53GteYPojYacNKrj8eZKwLjLeq4=; b=jzjMXtCqr0V0WxQKj0Lf8Gd68lqKsIFjbQzElOlKyflZcuQyvVevyxJG05bt8brT+d pkuweZlCZtShyGrhdPvfi70m04LfkokaAe6b2XbfwLpGQkiTHtIi5+XZyJVhr+D6ez66 cgWwesPN+Ci0/QnWUx75qjSSmLyaE3ur9J/VUfhKUS5W/uom0uubmur6wN3fCP25H0Qr h+7ZISXx4V1szmXG1W5zZ5iPdFsYATjQubpNf8y+Axb6/dViU8xoooxv93RWPKLVAI7L NKUHOzNxanfPX8KM/T13ipWJHAtWBhVqq2c6POOgL1lltHd6muwbdR0elVFOdgnmiFmM Mtlw== X-Received: by 10.49.128.37 with SMTP id nl5mr5911712qeb.59.1356023063754; Thu, 20 Dec 2012 09:04:23 -0800 (PST) Received: from [10.252.1.93] ([64.124.192.210]) by mx.google.com with ESMTPS id ou3sm1597305qeb.0.2012.12.20.09.04.19 (version=SSLv3 cipher=OTHER); Thu, 20 Dec 2012 09:04:22 -0800 (PST) Message-ID: <50D34512.1040708@lerdorf.com> Date: Thu, 20 Dec 2012 12:04:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Dmitry Stogov CC: Pierre Joye , PHP Internals References: <50D210F9.8050707@lerdorf.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlwOxpM3EEQ577JqaMpvLfnOSQpWDeDc3G767w7qqHv+lRneJyGKl78YfYsBis98yPCdWUq Subject: Re: [PHP-DEV] Complete traits redesign for 5.5 From: rasmus@lerdorf.com (Rasmus Lerdorf) On 12/20/2012 06:36 AM, Dmitry Stogov wrote: > Hi Pierre, > > The following test may crash on the second request with opcode cache. > > > trait THello { > > public function hello() { echo 'Hello'; } > } > > class TraitsTest { use THello; } > > $test = new TraitsTest(); > $test->hello(); > > ?> > > Valgrind shows the problem even if PHP doesn't crash. I'm not seeing anything from Valgrind's memcheck on this under php -S with current PHP 5.4 and APC. Testing on 64-bit Linux. -Rasmus