-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traits related issue #5
Comments
Hi Nikita, Thanks for comments. Can you reproduce the same problem without xdebug? Thanks. Dmitry. |
I can't reproduce it even with xdebug (still FastCGI SAPI). |
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:
|
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. |
I rechecked PHP on tag 5.4.11, recompiled it, now all works fine, sorry for bothering. |
Great! |
No description provided. |
Hi, Zeev! Glad to hear that Zend Optimizer+ finally open sourced! There's this bug I found, it's actually very strange, because it reproducible fairly easy.
Anyway, there's description:
Environment: Ubuntu 12.04 with PHP compiled, here's
php -v
output:php.ini contents:
Code reproducing the bug:
Expected output:
First run output:
Second and subsequent runs output:
This bug is reproducible on fpm, but not on cli.
The text was updated successfully, but these errors were encountered: