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

00:29
@StatikStasis The what festival? (No)
@brzuchal Both fixed.
01:12
@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…
04:30
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.
04:42
Yes this is what I think
05:01
morns
 
2 hours later…
07:24
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
```
Ah, code blocks don't work. Whoops, sorry :)
07:36
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
08:25
@Danack Oh... I was reading it was like our Thanksgiving. That sounds much different. //cc @Derick
09:06
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
09:21
I remember when people started adding JS packages to Packagist. There's still a bunch in there
09:52
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
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
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?
09:54
@brzuchal i just have too much free time currently, and enjoy rust :P
I see
cmb
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
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.
09:58
@cmb I wish github issues has an "ignore user" feature...
cmb
cmb
@SaifEddinGmati Ah! I think this is because enums are declared dynamically (DECLARE_CLASS).
10:50
@Danack lol
 
3 hours later…
13:53
Morning
14:47
\6
15:08
o//
@cmb just to double check, everything is okay now for the Type section rewrite? :)
cmb
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
15:55
@TimWolla quick question, is the documentation around SensitiveParameter enough and I can tick it off or do you still think there is stuff needed?
16:33
@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…
17:57
o/
18:08
\o
18:40
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
19:14
@QuolonelQuestions php -r expects quoted option i.e. php -r "echo 'foo';"
19:25
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…
22:28
@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
23:03
@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.
23:29
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?
23:44
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 (746 days later) »