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 <a...@php.net>

> 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 <a...@php.net>
> >
> >> 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 <a...@php.net>
> >> >
> >> >> 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 <manchokapitan...@gmail.com> 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 <a...@php.net>
> >> >> >
> >> >> > > 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 <manchokapitan...@gmail.com> 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 <a...@php.net>
> >> >> > >
> >> >>
> >> >>
> >> >> --
> >> >> Anatoliy Belsky <a...@php.net>
> >> >>
> >> >
> >>
> >>
> >
>
>

Reply via email to