Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82476 invoked from network); 27 Jun 2013 04:40:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2013 04:40:29 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:65347] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/F5-51393-A32CBC15 for ; Thu, 27 Jun 2013 00:40:27 -0400 Received: by mail-la0-f52.google.com with SMTP id fo12so283908lab.11 for ; Wed, 26 Jun 2013 21:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=FNYMZXIWV8tPGQX/yFcNv8qcY4YCBLWHGvitbn4B8IA=; b=Tosjke84GmvDFc6MJwCiDgVEwbc6sNeJXNnRnJRF07gH40X7ekK64U13wiucoPANEM i/fBFqmvIYTfOUFp8mGh/GIpRxqhnO6fcp+Gb3S0fPS7hGIA9S023qEEZO+JYUFfsq+U RHqdfPqZfqy2D+uW4CdDDCv7IbalMiV6vDbamvT79wT2NY1auZX0jClJdqsrk9RomWf0 Na6rOYvg+wzWyZfqfQ4zo1QosRT8qRdXGFU+42WpaPjVjMP3R9T+fiDvF+1yJcQWr7aK 2PVr0a/FFFjQcFdlolzjyjmg5Gzud5t2F2AbFo1g3tHIGH50+Cs73VJPbbR6dTdkAW96 9Y1g== X-Received: by 10.152.37.138 with SMTP id y10mr3284528laj.40.1372308023512; Wed, 26 Jun 2013 21:40:23 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.29.36 with HTTP; Wed, 26 Jun 2013 21:40:03 -0700 (PDT) In-Reply-To: <51CB1B11.7090509@hoa-project.net> References: <51CB114C.5020606@hoa-project.net> <1372263564.2410.25.camel@guybrush> <51CB1511.9050109@hoa-project.net> <1372264251.2410.27.camel@guybrush> <51CB1B11.7090509@hoa-project.net> Date: Thu, 27 Jun 2013 12:40:03 +0800 X-Google-Sender-Auth: 01L5UacLrrrfRMU1m9AokiFiWdA Message-ID: To: "Ivan Enderlin @ Hoa" Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] UNKNOW:0, what is it? From: laruence@php.net (Laruence) On Thu, Jun 27, 2013 at 12:47 AM, Ivan Enderlin @ Hoa wrote: > > On 26/06/13 18:30, Johannes Schl=C3=BCter wrote: >> >> On Wed, 2013-06-26 at 18:21 +0200, Ivan Enderlin @ Hoa wrote: >>> >>> On 26/06/13 18:19, Johannes Schl=C3=BCter wrote: >>>> >>>> On Wed, 2013-06-26 at 18:05 +0200, Ivan Enderlin @ Hoa wrote: >>>>> >>>>> Hello, >>>>> >>>>> Again, I have a segfault with RecursiveDirectoryIterator when I exten= d >>>>> it. This time, I have a very strange value on my SplFileInfo extensio= n >>>>> (subclass). When I var_dump the value, I have UNKNOWN:0. This is not = a >>>>> string, not null, not false, just UNKNOW:0, without type. Any idea of >>>>> what is it? >>>>> >>>>> Thanks :-). >>>> >>>> Unknown is an unknown value in a structure when a zval is not properly >>>> set. Most likely you didn't call the parent's constructor. >>> >>> To bad, the constructor has been called :-(. >>> The error is here: >>> >>> https://github.com/hoaproject/Iterator/blob/master/Recursive/Directory.= php#L125. >>> This is a line that causes the segfault. And at line 109, >>> $this->getRelativePath() returns UNKNOWN:0. But if I var_dump >>> $this->_relativePath directly (without using the method), I have a real >>> value. I can't explain this. >> >> Try calling the parent ctor before doing anything with properties (i.e. >> setting _splFileInfoClass) >> >> If it doesn't fit please provide a complete reproduce script (and report >> a bug in any case) > > https://bugs.php.net/65136 here we are :-). thanks for the report, fixed in https://github.com/php/php-src/commit/fa8611c81ee72839cdff3e72b18cc586feb4a= a29 thanks > > > -- > Ivan Enderlin > Developer of Hoa > http://hoa-project.net/ > > PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) > http://disc.univ-fcomte.fr/ and http://www.inria.fr/ > > Member of HTML and WebApps Working Group of W3C > http://w3.org/ > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Laruence Xinchen Hui http://www.laruence.com/