Comments (7)
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.
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.
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.
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.
I rechecked PHP on tag 5.4.11, recompiled it, now all works fine, sorry for bothering.
from zendoptimizerplus.
Great!
from zendoptimizerplus.
from zendoptimizerplus.
Related Issues (20)
- Failed to compile on PHP 5.6 HOT 3
- Opcache crashed with PHP7 HOT 6
- current_wasted_percentage > max, restart_pending=1 but no restart HOT 4
- Error for make HOT 3
- No support for mod-itk? HOT 3
- the same cached and misses files bug HOT 11
- E_WARNING: Cannot modify header information - headers already sent by
- opcache_enabled automatically turns false HOT 2
- pfsockopen - when using opcache ,pfsockopen returns empty when server initiative to disconnect the current connection HOT 1
- 2 different files required w/ same relative path resolve to one file HOT 1
- Don't 7.0.5 work on PHP 5.4.45 ?
- OpCache Constantly Restarting Itself
- Php 7.0.19 call to undefined function exception despite defined
- Frequent PHP errors
- PHP 5.2 with OPcache and ZendOptimizer v.3.3
- Using opcache in command line HOT 1
- Feature request: opcache_evict HOT 1
- How to serialize op_array ?
- Opcache optimisation
- zend_compile_file use of uninitialized memory on second request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zendoptimizerplus.