-
Notifications
You must be signed in to change notification settings - Fork 19
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
Windows dll #3
Comments
Windows is not my target. If you want to support the Windows platform, please feel free to support this platform. Maybe you can create Travis-CI file to compile this PECL extension for Windows in the MINGW environment. I have not checked if this is possible though. |
Understood. First let's get the other fix before tackling Windows. |
Windows compilation fails, I'll check the root cause. See below some notes to compile it:
|
@nanosonde Many files from bcgen are extracted from opcache. Upstream opcache is able to compile on Windows so I was hoping to get a quick solution thanks to opcache. For instance:
This initial commit seems to already have some modifications. I cannot find the same vanilla codes from any tag from https://github.com/php/php-src Please, can you describe a bit more? Or do you have some records somewhere so we can rebase bcgen with https://github.com/php/php-src/tree/master/ext/opcache ? |
@vjardin Hi! Unfortunately, there is no commit history for the modifications. :( What I basically did is to assume the the opcache option "file_cache_only"is set to true. |
Thank you. Just in case, do you remember the git hash/tag that you started from? Enjoy your holidays. |
I have started from this branch: https://github.com/php/php-src/tree/PHP-7.2.6 |
The master branch is based on https://github.com/php/php-src/tree/master Arround the date of the initial GitHub commit here. |
Please see this initial commit on the 7.2 branch. |
BTW: if you want to compare BCgen with the original OPcache from 7.2.6:
|
Currently, I am using bcgen with PHP 7.2 (but not the head yet / PHP 7.3). It works fine. Could you register bcgen on PECL: thank you, |
If you could register it on PECL that would be fine. One remark concerning platform compatibility: So the check of the header signature need to be strict: if some values in the header of a provided BCgen compiled file does not match the current values, then BCgen must exit as it would crash otherwise as the datatype sizes do not match. I think that the datatype size problem could be fixed by always putting smaller datatypes into bigger ones, but at the moment I do not care about this. |
thanks for these comments. I'll check them. |
@vjardin Did the bcgen can build dll for windows now? |
Yes, it does compile: we use it. |
Please, can you provide builds with bcgen dll for Windows?
The text was updated successfully, but these errors were encountered: