Chung Shing Hin
Chung Shing Hin
Yes, I did modified `commandDictionary.plist`. It created a `Mach-O 64-bit arm64 executable` unfortunately. Adding `-dylib` to `LDFLAGS` doesn't work either. I'll investigate how I can create a dynamic library instead....
I have made a progress! I added `-dynamiclib` to `LDFLAGS` and it successfully produced a `Mach-O 64-bit dynamically linked shared library arm64`. Now I'm getting this: ``` Failed loading php...
I edited one of the header files and it seems to be working now :) No output though, I'm now going to link it to `ios_system`.
Yes, I am seeing output in Xcode console and program exit is redirected to `ios_system`. Fixing the `printf`'s now. > You should see the program output in the Xcode console....
PHP executions are also working fine!
Good news: Just by `#define printf(args...) fprintf(thread_stdout, args)`, both cli commands and outputs from php files are redirected to the terminal. Here's a screenshot from my app called Code App...
It's actually on App Store already! https://apple.co/2ItI3ub I have forked PHP: https://github.com/bummoblizard/php-src/tree/PHP-8.0.8. In the release page, you can download the XCFramework for a quick test. So far I have noticed...
> It's actually on App Store already! https://apple.co/2ItI3ub > > I have forked PHP: https://github.com/bummoblizard/php-src/tree/PHP-8.0.8. In the release page, you can download the XCFramework for a quick test. > >...
TODOs: - Support for OpenSSL, using configure option `--with-openssl[=DIR]` (https://www.php.net/manual/en/openssl.installation.php) - Support for `stdin` from terminal - Set the path of configuration file `php.ini` in `PHPRC` environment variable (https://www.php.net/configuration.file) -...
I also noticed Python produces `bus error` after I ran any php command. Not sure what's happening there. > TODOs: > > * Support for OpenSSL, using configure option `--with-openssl[=DIR]`...