-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
PHP Deprecated: Function (null)() is deprecated #25
Comments
Possibly related: |
"Avoid using magic" was bad idea, PHP needs some magic to work :-) |
:-) @JanTvrdik That's it. According to tags, fixed since |
The question is – did it really work reliably before? Or is it unusable for PHP < 5.4.25? |
If we believe that it worked before, we can just update to this: // requires closure due PHP bug #66375
header_register_callback(function() {
$this->removeDuplicateCookies();
}); I would suggest to increase the requirement at least to 5.4.1 due to another segfault |
|
The code is in condition for PHP 5.4+ |
@JanTvrdik agree with Closure and PHP 5.4.1+ |
@milo thx for investigation, my today training nearly ended in ruins because of it :-) @JanTvrdik the question is: is this workaround (for IE) still needed? 👍 for remove it |
You mean removing duplicit cookie headers? Then yes, it is, there is still a LOT of IE<=9 users out there. |
@Majkl578 The issue however does not affect every IE 9 user. It was officially marked as not reproducible btw: maybe this will one day be solved in PHP https://bugs.php.net/bug.php?id=67736 |
Response: workaroud for PHP bugs #61106 and #66375 [closes #25]
Forum: http://forum.nette.org/en/21268-nette-framework-2-2-4-released#p145829
This bug shows self in Nette 2.2.4 as:
This bug occures on mine website when I migrated to Nette v2.2.4. It is hard to reproduce, I did it by refreshing page and one from 10-50 requests failed by different error message.
I replaced
nette/nette: 2.2.4
in composer by all single packages and I started to downgrade packages one by one. After revertingnette/http
tov2.2.1
, bugs stopped to showself. After that I bisected commits and I found 0914fe9 as buggy. After that, I upgraded back tonette/nette
v2.2.4 and starts to reverting single commit changes. When this was reverted, everithing is OK.I know it sounds like nonsence. And when PHP bug is about memory corruption this is maybe only final crash. Let's wait for forum feedback.
PHP 5.4.16 as a apache2handler, Debian
The text was updated successfully, but these errors were encountered: