-
Couldn't load subscription status.
- Fork 8k
Zend Engine 3 #829
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
Zend Engine 3 #829
Changes from all commits
90d916c
c7157e4
8efe343
8a065c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,10 +29,6 @@ | |
| #include <stdlib.h> | ||
| #include <stdio.h> | ||
|
|
||
| #ifndef ZEND_ENGINE_2 | ||
| #error HEAD does not work with ZendEngine1 anymore | ||
| #endif | ||
|
|
||
| #include "ext/standard/dl.h" | ||
| #include "ext/standard/file.h" | ||
| #include "ext/standard/fsock.h" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do wonder why this is here at all. Were people trying to build PHP5 internal files for PHP 4? Was this in an extension? Regardless, I doubt we still need this message after more than ten years. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. initially it came from 7c0e7b4#diff-89fb8b368c48bf62a149e0c2853141e7 and later on was moved to this location There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh wow, it's been 11 years, then! |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since a lot of code may do #ifdef ZEND_ENGINE_2, maybe it'd be good to leave ZEND_ENGINE_2 there but also add ZEND_ENGINE_3 in addition to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd make sense, would avoid updating existing extensions. Maybe we should add a comment for clarity in that case, though? Something like this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, actually, I don't think I'll keep
ZEND_ENGINE_2around. Code that checks for it should probably just be removed, since that's basically just checking for PHP 5, and it's been a decade since its release. Plus, this'd complicate checks by cross-5/7-compatible code, asZEND_ENGINE_2wouldn't guarantee it's actually ZE2, you'd have to dodefined(ZEND_ENGINE_2) && !defined(ZEND_ENGINE_3), or worse,!defined(ZEND_ENGINE_3)which isn't future-proof against a hyptothetical Zend Engine 4.