|
|
|
|
|
by eru
744 days ago
|
|
> Wow the PHP is going to magically get into the binary? It's fairly simple to pack assets into a binary. (Not sure, if they are doing that. But it wouldn't involve any magic.) Compare also https://doc.rust-lang.org/beta/core/macro.include_bytes.html Btw, making a tarball or a zipfile is also a way to put multiple files into one binary file. You might have even heard of self-extracting zip files? They were very popular, before Windows got a build-in unzipper, I think. |
|
But for PHP, it's even simpler: PHP is available as a C library, and we just use it. (libphp can be embedded using static compilation, or used as a dynamic library, we support both).