Giter VIP home page Giter VIP logo

Comments (7)

 avatar commented on July 20, 2024

Hi Nikita,

Thanks for comments. Can you reproduce the same problem without xdebug?
I tried your test case with FastCGI SAPI without xdebug, and didn't get any problems.
I suppose it somehow must be related to xdebug, may be caused by extension loading/initialization order...

Thanks. Dmitry.

from zendoptimizerplus.

 avatar commented on July 20, 2024

I can't reproduce it even with xdebug (still FastCGI SAPI).
Do I need to set any xdebug configuration directives?
Please, try to localize the problem.

from zendoptimizerplus.

nikita2206 avatar nikita2206 commented on July 20, 2024

Hello again, yes, sorry for not answering. While you can't reproduce it w/ xdebug, I can reproduce it even w/o it, so I think xdebug is not the one who causes the problem. I'm trying to debug it now, unfortunately I don't have much skills in C (I'm debugging it using zend_printf output...). If it can give you any clue: I found that when zend_class_copy_ctor called, class_entry of BarClass has num_traits equal to zero (on first and all subsequent runs).

If it can help, here's more info about my environment:

uname -a
Linux nikita2206-N56VJ 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

php -i: https://gist.github.com/nikita2206/4951643

from zendoptimizerplus.

 avatar commented on July 20, 2024

Traits are added at run-time by ZEND_ADD_TRAIT and ZEND_BIND_TRAITS opcodes, so it's expected that " when zend_class_copy_ctor called, class_entry of BarClass has num_traits equal to zero".

I think - something is wrong with your PHP configuration or build. try to disable all php extetnsions.

from zendoptimizerplus.

nikita2206 avatar nikita2206 commented on July 20, 2024

I rechecked PHP on tag 5.4.11, recompiled it, now all works fine, sorry for bothering.

from zendoptimizerplus.

 avatar commented on July 20, 2024

Great!

from zendoptimizerplus.

fotografi avatar fotografi commented on July 20, 2024

from zendoptimizerplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.