Why laravel claims they can do mobile apps? Afaik in fact .php script wont run in mobile app right? They either just wrap it in-app webview acts like a browser, or re-build entire UI in native, and contact php server via http requests or restful.
I thought they did, Im constantly heard 'laravel mobile app' around in my circle lol, now a company review my resume and they say they want to build an app with laravel, I did better becareful with this company
Gotta love early morning compiler complaints: ``` In file included from /Users/alcaeus/Code/mongodb/mongo-php-driver/src/BSON/BSONIterator.c:17: In file included from /opt/homebrew/Cellar/[email protected]/8.0.26/include/php/main/php.h:318: /opt/homebrew/Cellar/[email protected]/8.0.26/include/php/main/php_syslog.h:40:25: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] PHPAPI void php_closelog(); ^ void ```
Has anyone though about publishing Composer package inside npm registry and hacking Composer via plugin to allow lookup and download of such packages?
I see GH Packages doesn't have Composer packages support until now it's near to 3yrs now. I was thinking if it could be possible to publish a Composer package with composer.json and package.json only to cheat an NPM Registry that is provided by GH Packages.
I'm working on a PHP parser in Rust, and was wondering, should the parser error for these type of issues or not? PHP's own parser doesn't, and errors at compile/run time. github.com/ryangjchandler/php-parser-rs/pull/141/…
@cmb I don't do them willingly, but I think a couple are necessary sadly, if I ever get round to rewriting the function section that's going to be easy... as it's just in one file and the best thing is just to delete it from the translations and have a "fresh" rewrite
@Girgias I've just had the time to read your mathematical explanation of LSP! :D it was very impressive! I appreciate your responses to the readonly thread very much! :)
How do you read a script from STDIN? php -r - doesn't work, neither does php -f -, yet the help says (when talking about args) that -- should be used when a script is read from stdin... yet never says how you would actually read a script from stdin
That is, bar a direct reference to /dev/stdin
Although I can't even get that to work either
$ php.exe -f /dev/stdin <<<'echo "foo";' >Could not open input file: /proc/self/fd/0
$ php.exe -r /dev/stdin <<<'echo "foo";' >PHP Parse error: syntax error, unexpected token "/", expecting end of file in Command line code on line 1
Anyone have any experience with PHPLint and the like? I want to have something in our CI pipeline throw a warning/error if non-mb string functions are used, but I haven't found anything helping in googling. I would've thought that would be a slightly more common desire. Any ideas how I might do that, preferably with existing tooling, rather than manually writing a script to grep the codebase?
@404NotFound Not used (or heard of, as far as I recall) phplint, but I would look at the popular static analysis tools - CodeSniffer, PHPStan, possibly Psalm. They're a bit more sophisticated than "grep", using the Abstract Syntax Tree (a form of parsed PHP syntax). The PHPStan docs have some help on writing custom rules and I'd wager there's a blog post or two around too