-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Question about suspicious code #13472
Comments
Another code to reproduce https://gist.github.com/Ultimater/4525404c2b48f6d7458b1ca2607d2fb8 problem. Line with
could be changed to
result will be the same |
As far as i know this issue happens on TS php. |
I have this issue on jino.ru hosting. If I set 2.0.8+PHP5.3 - it works, 2.0.10+PHP5.4..5.6 - stable reproducible bug. |
And there used NTS versions of PHP |
What OS? |
$ cat /etc/centos-release |
@kov-serg this C code is generated by zephir if you think we should change it or do anything else write here please - https://github.com/phalcon/zephir or feel free to create PR about this if you know hot to fix it. I will close this issue because there is already one similar existing #12056 but about C code we should discuss it in zephir repository what is generated and fix it if there is something wrong Here is discussion about this issue in zephir zephir-lang/zephir#1530 |
@kov-serg |
@sjinks Do you know the reason for the suspicious code? |
Because of this: I found only difference in source code of phalcon.
This code generated by zephir. But when I do this zephir forum was down. |
@kov-serg you are looking at some old phalcon version which was made with an old zephir version. That check was removed from zephir some time ago. Right now you only have the following:
What do you mean? Do what? Zephir forum? |
Yes. I unable to open zephir forum in august. |
You should be able to easily reproduce the issue with Thread-Safe (the most important part) PHP 7 on Windows and Apache web server. Once you have everything set-up, just have some loop which makes asynchronous calls (curl?) to your phalcon endpoint and I can guarantee that it will crash. |
Also, Zephir forum works well for me. Are you behind Russian national firewall or something? |
Now it works. But in august and september it was inaccessible even trough tor. |
The bug should not be reproducable with NTS version. |
|
Expected and Actual Behavior
See no "Fatal error: Access to undeclared static property: Phalcon\Di::$_default" under high load.
Code to reproduce
Question
Why in source of phalcon https://raw.githubusercontent.com/phalcon/cphalcon/master/build/php5/64bits/phalcon.zep.c
in line 7225:
used &ce->properties_info instead of CE_STATIC_MEMBERS(ce) ?
And why
placed after this line. Should it paced before line with zend_hash_quick_find?
Can any one explain this code?
The text was updated successfully, but these errors were encountered: