« first day (4112 days earlier)      last day (829 days later) » 

12:05 AM
@cmb github.com/marketplace/actions/send-email Knowing nothing about PHPs infra, could we not simply configure the SMTP we already have to send mails directly via Github actions?
And maintain a list of people wanting to get notified somewhere on Github. Not a great solution but could do the job.
 
cmb
I think so, but that would require everyone to (un)subscribe via changes to the repo.
 
@cmb Yeah... I think that would be mostly useful for maintainers.
Who can make changes to whatever repo directly.
 
cmb
Consider to provide a PR. :)
 
@cmb Ok :)
I might ask you about smtp credentials at some point :)
 
TBH you might be better off getting a free slack account and pushing messages into it, it's what we do at work and it's really handy
I think discord has much the same capability
 
12:12 AM
@MarkR I could get used to that but since we're doing everything else over mail that would cause less information fragmentation.
It also seems easier to overlook, at least for me (with a zero inbox)·
I'm off to bed. Sleep tight.
 
 
1 hour later…
1:15 AM
shouldn't deque be dequeue?
I must be missing something
double-ended queue
-_-
 
@Tiffany You know how computer programmers are bad at counting?, well they're also bad at words: en.wikipedia.org/wiki/Double-ended_queue, probably.
 
yeah... that's how I realized the spelling was correct
even this
> "Deque" redirects here. It is not to be confused with dequeueing, a queue operation.
 
> It is not to be confused with
SOMETHING IT SOUNDS EXACTLY THE SAME AS.
I'll be confused as much as I like, thank you very much.
 
second time I've gotten this mixed up cause I remember asking this before in r11...after looking it up on wikipedia
 
@FlávioHeleno if you're having fun.....crack on mate. But I still think either adding new examples, or updating old ones, or adding descriptive words to the examples Mr ThW has already made might be a more productive thing to do.
btw @ThW did you get your watch back?
(btw your bio points to github.com/FluentDOM/FluentDOM)
 
2:06 AM
Cannot vote to delete answer to a different question that has been upvoted too many times. stackoverflow.com/a/22100877/2943403 With just four more votes, I can pass it to SOCVR as a del-pls request.
 
 
2 hours later…
4:05 AM
@JRL I've been using it for years via compiledb.
 
 
2 hours later…
6:02 AM
Does anyone know how to answer this question? stackoverflow.com/q/70709294/3416774
 
skimming through the question, any reason why you aren't using DOMDocument?
why str_replace?
 
JRL
yeah, the solution seems like either DOMDocument to me, or regex if you know how to use it
regex will be more flexible, but you need to learn more to use it
 
in other words, be careful with regex :P
 
JRL
lol
that's amusing, but a surprisingly useless answer for SO
the moderators usually have an absolute conniption fit about "jokes" like that
 
I mean, it ends with "Have you tried using an XML parser instead?"
 
JRL
6:15 AM
to be fair, any use of regex should come with the warning "be careful with regex"
 
with something like sed, completely agree.. but there are plenty of safe environments to use regex
and sometimes regex is the best solution
writing regex is easy, reading regex is harder
 
JRL
i wasn't so much talking about it being unsafe, although it can be sometimes... more that it's pretty easy to put together a regex that looks like it's capturing how you want it to on all your test strings, and then goes bonkers on actual data
unless you have really learned regex of course
 
fair
 
JRL
though in my experience, not many developers do
 
also matching and capturing aren't the same thing... learned that several times over in my last job XD
 
JRL
6:19 AM
i have a library when i used regex to inspect PHP code in PHP because i needed something very limited and quick
lol, that was... fun
 
I imagine PHP-Parser uses it a fair bit
...I haven't dug through the code
 
JRL
possibly
neither have i actually
 
though, that's not a great representation
 
JRL
something that would be very nice is if a default installation of php included an AST compiler binary by default
or doesn't have to be AST i guess
but it would be nice if as soon as a new version was available, there was a way for PHP to inspect PHP from PHP
and, if the ability to inspect PHP code didn't put very tight constraints on the versions your library can support
or perhaps a ReflectionFileIterator and ReflectionDirectoryIterator
since that's the main thing that i encountered... trying to figure out what i need to reflect based on a root directory
 
7:06 AM
posted on January 18, 2022

 
7:44 AM
@JRL why wouldn't RecursiveDirectoryIterator work?
 
JRL
Well, you don't know what the file contains yet, so you don't know what to reflect inside the file
 
I'm assuming it's been tried given Reflection is closely named
 
JRL
you have to parse the file to see what symbols should be reflected
 
glob?
Ahh
 
 
2 hours later…
10:06 AM
morning
 
ormings
 
11:02 AM
doctrines
 
11:27 AM
Anyone used Doctrine extension - Translatable with EasyAdmin, how can you display the different languages for a record?
 
 
1 hour later…
cmb
12:40 PM
 
IGP
( ╯□╰ )/
 
@cmb How is that a security issue?
 
cmb
@Derick OP claims exploitable DoS.
 
"This is the Typo3 code location where var_export() gets called with an
embedded serialize() call" — maybe don't do that?
 
cmb
requires IMO fishy code though (var_export(serialize(...)))
yeah, right
So, not a sec issue, and WONTFIX for PHP < 8.2?
 
12:46 PM
let me think about this - but this is an issue with the PHP parser, not with var_export output... so it shouldn't be fixed there, not?
 
@GabrielCaruso can you please push tarball to distribution repo ?
 
cmb
@Derick yeah, it has been fixed in the parser for master, but I'm not sure whether we can backport that for BC reasons.
 
1:26 PM
would it make sense to propose introduction of #[Transient] attribute for properties?
currently I use a trait with __serialize(): array method which filters properties including #[Trannsient] attribute but I feel like it should be a general language feature
 
2:16 PM
Basically a "do not serialize" flag?
 
2:56 PM
@JRL There are probably several thousand questions that are marked as duplicate of that one.....at some point, taking the piss is more effective than trying to teach people to 'unask' the question.
 
3:09 PM
@MarkR What could possibly go wrong
 
 
1 hour later…
4:35 PM
@cmb That's only in master, right?
 
cmb
@Derick yes
 
so, then, no backport into 7.4 :-)
 
cmb
okay :)
 
 
2 hours later…
Date Time stuff is hard.
Maybe that should be the comment I close the issue with.
 
Store dates in UTC, offset accordingly with user location / settings
<closed>
I am clever guy (?
 
6:38 PM
that's pretty good, but not for every occasion
have a Date-only type would make sense though.
 
You mean like SQL DATE vs DATETIME
it would, I thought about it once
You can always format currently tho
 
7:10 PM
@Crell Yes, it's helpful if you wanna store serialized object in persistent storage but wanna filter out services/resources which you can only inject after unserialize
the same feature exists in Java world since like ever
@MarkR if adding an attribute and built-in support makes it easier to maintain a feature like this then yes, this is one of the features which reflect use cases from other languages nothing not-generic what would deserve being built-in feature I think
I'd consider the #[Transient] attribute on any serialization mechanism, despite of current or future ones
 
7:35 PM
Anyone ever have to do application compliance reports?
SOC Type 2
 
7:46 PM
@brzuchal Hm. If you implement __serialize(), though, that would be ignored as you're doing your own logic anyway. So it's more of automating a common case of __serialize, but in a way that third party serializers (like the one I just wrote) could also look for and respect as well, if they were so inclined.
Though in practice I'd expect derived values to be a more common use case than services, unless people are doing something stupid. (Which they often do.)
 
 
1 hour later…
JRL
9:00 PM
hey @JoeWatkins, what was your thoughts on adding the internal separation between == and <=> in the VM so that objects could intercept with do_operation handlers if they wanted to?
i know nikic said that might be worthwhile on its own
 
IGP
9:16 PM
-sigh- SO can be such a cesspool sometimes.
 
9:45 PM
@cmb I don't have the attention span to read a quarter of that issue.
 
cmb
I've read less – looked like a rant to me.
 
JRL
10:03 PM
it's really hard to understand if any of that issue is an actual bug report of any kind
 
10:45 PM
@cmb github.com/iluuu1994/github-actions-new-pr-notification/blob/… Where can I find PHPs SMPT credentials? It seems to work fine with gmail.
 
cmb
@IluTov you mean to be able to send from a php.net address? I think you need to contact systems@ for that (or maybe mj@ directly). Nice btw :)
 
11:10 PM
Nothing has been merged into the PHP-8.1.2 branch since the RC was tagged two weeks ago. I'm about to tag the 8.1.2 release, so I'm double-checking whether that sounds correct.
 
@cmb Yeah, exactly. I mean, I don't mind sending it with my gmail address either but a PHP address might be less surprising for other people ^^ Thanks for the contact!
 
cmb
@ramsey yes, that is normal. Only security fixes would be merged, and there is none this month.
 
@cmb Thanks!
 

« first day (4112 days earlier)      last day (829 days later) »