Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61537 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67384 invoked from network); 20 Jul 2012 03:58:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2012 03:58:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=manchokapitancho@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=manchokapitancho@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: manchokapitancho@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:52784] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/85-18983-E47D8005 for ; Thu, 19 Jul 2012 23:58:06 -0400 Received: by weyr1 with SMTP id r1so2620355wey.29 for ; Thu, 19 Jul 2012 20:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=f+XoURfVaRtIuJEy9iXqVU4t/CvznxQ/IgNQefT8V00=; b=C1NjP/uSPjJE2ip9Qb/wuxdVzrUYgqTbdgfk2ZwUQIMk4sqVJnm/MUKbM/otUaOdAu u0NZ0NfwYw4oXLo+NXHTl2o+QSL9o70U1tDbJxVKeuSqj60bAOHeSbq1gRH1nammE7X3 YTIGhaLsyUWzlQgQ7U5LEexDgY+YH2TQc49Jnw2hWCyfi8uHkrAYXLFcX4zAO2MXNUd5 Sr9YnGgqzqqjT/RD4zTwhMYuZKz3sg287+iZiVecfhs+0jtn8QO4woxSJ7JziQVJYJtD W1nkwcKAUiFKZqsVXAH2MolDwhQEVGgt0k8Yj7487jtmEUqlQ4+5SZGIzgaq74czEiDU 9MsQ== MIME-Version: 1.0 Received: by 10.216.26.129 with SMTP id c1mr2634352wea.45.1342756682332; Thu, 19 Jul 2012 20:58:02 -0700 (PDT) Received: by 10.223.56.8 with HTTP; Thu, 19 Jul 2012 20:58:02 -0700 (PDT) In-Reply-To: <9093d71180d4269bcd7b5b8062b22649.squirrel@webmail.klapt.com> References: <20120619190239.25690df10eba5818edaa562c@php.net> <20120619194518.2f18ff6778233d9bc2366768@php.net> <82f0778e3ed297f0f8ff8f567362daf8.squirrel@webmail.klapt.com> <9093d71180d4269bcd7b5b8062b22649.squirrel@webmail.klapt.com> Date: Fri, 20 Jul 2012 06:58:02 +0300 Message-ID: To: ab@php.net Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001636d3469111f91804c53ae71c Subject: Re: [PHP-DEV] Any chance to fix php-trunk for windows? From: manchokapitancho@gmail.com (Marian Kostadinov) --001636d3469111f91804c53ae71c Content-Type: text/plain; charset=ISO-8859-1 Hello Anatoly, I've just downloaded 5.4.5 and initially it seemed to be working. But after I clicked here and there and ... it started to crash again. I suspect that it is all about accumulating memory errors because initially it used to work but then it stopped. Also, in CLI mode, it is more difficult to get the heap corrupted message but not impossible. The code pattern is nothing more than this: namespace bug\ns; trait feature { function getTemplateNames() { return "ABC"; } } class test { use feature { getTemplateNames as private getTemplateNamesBase; } function getTemplateNames() { return $this->getTemplateNamesBase() . "D"; } } $test = new test; echo $test->getTemplateNames(); //ABCD This works just fine but when it is a part of a request that loads many more files before reaching that code, it still works but after the shutdown cleanup, the mm heap corrupted message appears. I used to think that the autoloading was a part of the problem but then I pasted the trait just before the class and I had no change. It is worth mentioning that importing without alias works flawlessly: namespace bug\ns; trait feature { function getTemplateNamesBase() { return "ABC"; } } class test { use feature; function getTemplateNames() { return $this->getTemplateNamesBase() . "D"; } } $test = new test; echo $test->getTemplateNames(); //ABCD Do you mind if I send you the entire source along with a sample DB and instructions on how to reproduce the problem? As of now, I see no better solution because of the reproduction difficulties. Greetings, Marian. 2012/7/19 Anatoliy Belsky > Hi Marion, > > not sure what's not working for you, the test > Zend/tests/traits/bug61998.phpt passes for me on windows master. Could you > supply a piece of code for that? > > Regards > > Anatoliy > > Am Mi, 18.07.2012, 08:12 schrieb Marian Kostadinov: > > Hello Anatoliy, > > I've just tried latest and greatest from today (18.7) : > > php-master-ts-windows-vc9-x86-r08302e3.zip< > http://windows.php.net/downloads/snaps/master/r08302e3/php-master-ts-windows-vc9-x86-r08302e3.zip > > > > > > Unfortunately, still not working ... > > > > 2012/7/17 Anatoliy Belsky > > > >> Hi Marian, > >> > >> since last week current master snaps can be found here > >> http://windows.php.net/downloads/snaps/master/ > >> > >> Cheers > >> > >> anatoliy > >> > >> Am Di, 19.06.2012, 20:16 schrieb Marian Kostadinov: > >> > Hello Anatoliy, > >> > > >> > https://bugs.php.net/patch-display.php?bug_id=61998&patch=bug61998.patch&revision=latest > >> > > >> > seems to be the patch for a similar bug. Hopefully, this should fix > >> the > >> > issue I found. > >> > I will try to investigate what has happened in the GIT respository. > >> What > >> I > >> > am sure is that this has been fixed before php 5.4.4 release. > >> > > >> > Thanks! > >> > > >> > 2012/6/19 Anatoliy Belsky > >> > > >> >> Hi Marian, > >> >> > >> >> perhaps you need master, there are no snaps for that. Otherwise, did > >> you > >> >> check the date of the fix commit on 5.4 or 5.3 and of the latest > >> snapL > >> >> If > >> >> it's not there, just wait a couple of days for the most recent snap > >> and > >> >> it > >> >> should be there :) > >> >> > >> >> Anatoliy > >> >> > >> >> On Tue, 19 Jun 2012 20:07:18 +0300 > >> >> Marian Kostadinov wrote: > >> >> > >> >> > Hello Anatoliy, > >> >> > the snaps for php-5.4 and php-5.3 doesn't work for me. I have > >> reported > >> >> a > >> >> > php bug that *Laruence* says it was fixed in trunk but not merged > >> in > >> >> > php-5.4. So I have to check if it is fixed in trunk but I cannot do > >> it > >> >> > because of the missing builds :) > >> >> > > >> >> > 2012/6/19 Anatoliy Belsky > >> >> > > >> >> > > Hi, > >> >> > > > >> >> > > recent snaps can be downloaded under > >> >> > > > >> >> > > http://windows.php.net/downloads/snaps/php-5.4/ > >> >> > > http://windows.php.net/downloads/snaps/php-5.3/ > >> >> > > > >> >> > > respectively to version you need. The snaps are created almost on > >> >> daily > >> >> > > basis. > >> >> > > > >> >> > > Regards > >> >> > > > >> >> > > Anatoliy > >> >> > > > >> >> > > On Tue, 19 Jun 2012 19:46:59 +0300 > >> >> > > Marian Kostadinov wrote: > >> >> > > > >> >> > > > Hello, > >> >> > > > currently > >> >> > > > http://windows.php.net/downloads/snaps/php-trunk/ > >> >> > > > is empty and no windows builds can be downloaded. > >> >> > > > Are there any plans for fixing this? > >> >> > > > >> >> > > > >> >> > > -- > >> >> > > Anatoliy Belsky > >> >> > > > >> >> > >> >> > >> >> -- > >> >> Anatoliy Belsky > >> >> > >> > > >> > >> > > > > --001636d3469111f91804c53ae71c--