forked from facebook/hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a good one. It doesn't need an external library and found a ton of corner cases I screwed up. It also got my stream handling much more solid. I had to wrap other streams as they came into the extension and then unwrap them on the way out Reviewed By: @sgolemon Differential Revision: D945250
- Loading branch information
Showing
93 changed files
with
9,515 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Zend Extension Source Compatability Layer | ||
|
||
If you want to compile your existing zend extension against HHVM, you can use | ||
these headers. The runtimes are similar enough that we can just map the macros | ||
to our data structures and it mostly works. | ||
|
||
## Migration Steps | ||
|
||
cp -R <zend_extension_dir> runtime/ext_zend_compat/<ext_name> | ||
|
||
# move all the .c to .cpp | ||
for i in runtime/ext_zend_compat/<ext_name>/*.c; do mv $i "$i"pp; done | ||
|
||
# If your extension has docs on php.net you can make the idl like this: | ||
cd system/idl | ||
php newexp.php <ext_name> | ||
# Otherwise you have to make the .idl by hand | ||
|
||
<setup the build environment> | ||
|
||
## Things you have to fix in your code | ||
|
||
* C++ compile errors | ||
* Use `Z_RESVAL` instead of `Z_LVAL` for resource access |
Oops, something went wrong.