« first day (4428 days earlier)      last day (503 days later) » 

12:29 AM
@StatikStasis The what festival? (No)
@brzuchal Both fixed.
 
1:12 AM
@StatikStasis The holiday we have in November is to celebrate burning things/people. And we don't get a day off for it.
 
 
3 hours later…
4:30 AM
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.
Im I correct?
 
@nyconing where are they claiming they can do mobile apps?
 
Ohh they didnt?
 
I have no idea. you were the one who was asking for a reaction to a claim.
 
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
 
You can use Laravel to make an API. Which can power a mobile app.
 
4:42 AM
Yes this is what I think
 
5:01 AM
morns
 
 
2 hours later…
7:24 AM
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/php@8.0/8.0.26/include/php/main/php.h:318:
/opt/homebrew/Cellar/php@8.0/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
```
Ah, code blocks don't work. Whoops, sorry :)
 
7:36 AM
o/
does anyone has an idea if this is a bug? is there a reason PHP doesn't resolve Foo::Bar earlier? 3v4l.org/bgraf
 
8:25 AM
@Danack Oh... I was reading it was like our Thanksgiving. That sounds much different. //cc @Derick
 
9:06 AM
morning
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.
 
even if possible, please don't, the js ecosystem is already a mess, adding PHP packages to it will not help lol
 
9:21 AM
I remember when people started adding JS packages to Packagist. There's still a bunch in there
 
9:52 AM
The idea behind is to use packages for private repositories owned by an organisation only.
Not to publish a packages publicly available - as an hack to GH Packages only.
 
cmb
@alcaeus PHPAPI void php_closelog(); should be PHPAPI void php_closelog(void);
 
Maybe you're right, but it's been near to 3yrs when GH announced Packages and there is still no Composer package support.
 
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
@alcaeus Code blocks only work for the full message, and need to be indented with tabs; pressing CTRL+k should do that.
 
@SaifEddinGmati what is the purpose?
 
9:54 AM
@brzuchal i just have too much free time currently, and enjoy rust :P
 
I see
 
cmb
@SaifEddinGmati looks correct to me; compare with 3v4l.org/9UWCo
 
@cmb Do you understand anything that "hormus" writes in the GitHub reports, because I certainly can't follow a single thing
 
cmb
@Derick Almost nothing; I sometimes wonder whether it is a bot.
 
@cmb oh, i know it's correct, i was wondering why is Foo::Bar ( hence they type error ) is only resolved when accessed, not before that.
 
9:58 AM
@cmb I wish github issues has an "ignore user" feature...
 
cmb
@SaifEddinGmati Ah! I think this is because enums are declared dynamically (DECLARE_CLASS).
 
10:50 AM
@Danack lol
 
 
3 hours later…
1:53 PM
Morning
 
0/
 
2:47 PM
\6
 
3:08 PM
o//
 
@cmb just to double check, everything is okay now for the Type section rewrite? :)
 
cmb
@Girgias I think so, although I'm generally not too happy about those massive rewrites (hard to review, and lots of work for translators).
 
@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
 
3:55 PM
@TimWolla quick question, is the documentation around SensitiveParameter enough and I can tick it off or do you still think there is stuff needed?
 
4:33 PM
@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! :)
 
@MateKocsis Took me some time, but got it down finally :)
 
 
1 hour later…
5:57 PM
o/
 
6:08 PM
\o
 
6:40 PM
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
 
7:14 PM
@QuolonelQuestions php -r expects quoted option i.e. php -r "echo 'foo';"
 
7:25 PM
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?
 
 
3 hours later…
10:28 PM
@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
 
11:03 PM
@404NotFound Maybe disallowedFunctionCalls - though annoyingly, sometimes strlen is the appropriate call.
but I guess you can always phpstan ignore the next line.
 
Yeah blocking the strxx functions sounds like an invitation to a whole bunch of false positives.
 
11:29 PM
It's possible this is a case where tests to prove the correctness of code would be useful...
 
@Tpojka Yeah, sure. But I'm trying to pipe a script to STDIN. Was that not clear?
 
11:44 PM
I don't even. I cannot understand this output github.com/ScriptFUSION/Porter/actions/runs/3587993647/jobs/…
>line 2: ?php: No such file or directory
You've gotta be kidding me, right? How is there ever any way that line could be parsed as shell and not PHP
 

« first day (4428 days earlier)      last day (503 days later) »