Comments (5)
zend可能很难支持了,目前只支持标准的pecl扩展。
from static-php-cli.
zend可能很难支持了,目前只支持标准的pecl扩展。
pecl 现在是支持了的吗?pecl似乎也行,如果用C++ 编写一个加密代码扩展,有源代码的情况下,是不是能将这个自定义扩展的文件编译内置在 sfx 里面
from static-php-cli.
如果用C++ 编写一个加密代码扩展,有源代码的情况下,是不是能将这个自定义扩展的文件编译内置在 sfx 里面
是,也不是。首先编写扩展需要注意的第一点就是扩展如果依赖了别的库,那个被依赖的库也必须能以静态模式编译;其次编写扩展也必须插入 in-tree 构建的几行代码(我不知道这个怎么叫,就印象中 dixyes 大佬是这么叫的,反正就是能让扩展放到 php 源码中一起编译进去)。
pecl 现在是支持了的吗
pecl 扩展都是提供源码的,而且大部分似乎并不需要依赖外部的扩展,所以理论上只要类似 redis、mongodb 这类 pecl 扩展,都是可以直接编译的。少部分没有编写 in-tree 构建的头文件,例如 event,最后也是通过给上游开发者提 PR 来解决。所以最大的问题还是在于扩展本身依赖的其他库问题,而不是扩展本身的问题。
from static-php-cli.
https://github.com/dixyes/phpmicro/blob/master/patches/static_opcache_83.patch
但这个有点邪恶 只支持了opcache, 什么xdebug就甭想用了
(你可以参考这个patch把你的zend扩展改一改编译进去,如果是别人的.so/dll就别想了,触发你够闲自己写ELF/PE loader
(但你都能在改PHP源码了,还纠结什么扩展,加密直接做到PHP解释器里不好吗
from static-php-cli.
https://github.com/dixyes/phpmicro/blob/master/patches/static_opcache_83.patch
但这个有点邪恶 只支持了opcache, 什么xdebug就甭想用了
(你可以参考这个patch把你的zend扩展改一改编译进去,如果是别人的.so/dll就别想了,触发你够闲自己写ELF/PE loader
(但你都能在改PHP源码了,还纠结什么扩展,加密直接做到PHP解释器里不好吗
你发的这个是啥意思? 我还没看懂
from static-php-cli.
Related Issues (20)
- 大佬,拉取你新的代码 然后再github actions构建 又报错了,有时间您看一下吧 HOT 1
- xz dependency unavailable HOT 1
- win版中构建的micro.sfx HOT 1
- Build error with Postgres because of libxml2 HOT 3
- libuuid fails to build on linux HOT 1
- FreeBSD Support Not Working - "Current OS is not supported" HOT 10
- bug: Linux x86_64 build failed HOT 6
- Compiled Windows executable isn't running HOT 1
- Windows Defender SmartScreen HOT 4
- SSL operation failed with code 5 HOT 10
- In extreme cases micro.sfx using `--with-upx-pack` will build the wrong binary
- Extension request: `gd` on Windows
- postgresql: Failed to get pkg-config information HOT 3
- ncurses 6.5 not working with libreadline
- xz build failed on Linux and macOS
- download bug: for-extensions=redis does not download zstd
- Extension request: `intl` on Windows HOT 2
- `intl` ICU build errors HOT 2
- SAPI embed Support on Windows HOT 2
- Add the parallel extension HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-php-cli.