« first day (3625 days earlier)      last day (1305 days later) » 

 
4 hours later…
5:23 AM
Good morning.
 
Wes
6:18 AM
always suspected domain registrars did this youtube.com/watch?v=i05uGLFZe2Y
 
6:46 AM
I moved from GoDaddy to Namecheap 5 years ago. GoDaddy is great just for worst enemies.
Btw. Football Manager 2020 and Watch Dogs 2 for free on Epic.
 
7:21 AM
can anyone recall hearing about memcached not beimg compatible somehow when upgrading from php 7.3 to 7.4? seing weird behavior here
 
7:35 AM
not aware of anything
 
8:30 AM
@NikiC No, it doesn't use EXT_NOP. It only makes sure to ignore ZEND_NOP and ZEND_EXT_NOP for code coverage purposes.
 
@Derick does it use the other EXTs?
 
@Crell Done
EXT_STMT is used for breakpoints.
It's vital for that :-)
 
okay
 
are there others?
 
I think we should kill EXT_NOP then, it's a pita to support
 
8:31 AM
How is something that does nothing hard to support? :D
 
@Derick well, there's EXT_FCALL_BEGIN/END
@Derick It breaks the assumption that the opcode for argument i is at position i
 
There is a reference to these, but only to make sure the lines with these ops are covered during code coverage.
@NikiC Sorry, I don't follow :-)
how does an argument have an opcode?
 
@Derick Sorry, parameter. Each parameter has a corresponding RECV opcode
 
oh yes
I do need to do a hack for that as in most cases these are skipped over, right?
 
ForEach() backwards support? ・ *General Issues ・ #80120
 
8:34 AM
Well, in increasingly rare cases ^^
Because they're not skipped if they have types
 
hi
my iframe video showing not support format in chrome
but its working fine on other browser
anyone can please help me
to resolve this issue
 
8:53 AM
morns
 
9:10 AM
tell me
 
Wes
 
10:07 AM
:D
 
10:19 AM
but still friday
 
10:31 AM
@irockstechnology please share your code
 
or not.
kind of not PHP related.....but also, the problem is with the video file rather than PHP code...the only useful bit would be the error message, and headers of the response.
and maybe like the first 16 bytes of the video...
 
11:22 AM
@RemiCollet How can I easily see which ones are support in 8 yet on blog.remirepo.net/pages/PECL-extensions-RPM-status ? It only has an overal green status bar?
 
11:45 AM
....has PHPStorm moved the 'copy reference' context button somewhere?
it's under copy/paste special...
 
@Danack Yeah! I also couldn't find it at first :D
 
Weird for them to do that. I use that about once a minute when writing code...
 
12:03 PM
NullPointer dereference ・ cURL related ・ #80121
 
@Tpojka Schema for a master key lock system I am creating for an LP department at some point; Just jotting down first thoughts on it one day.
 
Just very brave name for public repository. :D
 
@Danack lol
@Tpojka There's nothing sensitive.
 
@NikiC Was there a change recently that changed things with opcodes? I'm having code coverage tests fail (suddendly)
it all looks like an off by one - so perhaps the EXT_NOP tha tyou spoke about?
 
@StatikStasis I didn't say opposite to that. Just said similar (exact) public repo name bargains for being checked. :D
 
12:24 PM
@Derick possibly
 
Are you expecting to make more changes to this ?
 
@Derick nothing planned
 
Anyone familiar with SharePoint
 
@PeeHaa Here ya go! Photos of new doggo! imgur.com/a/uoz3bEV //cc @Tiffany
 
Why do I get a 403 Error when trying to POST with Rest docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/…
 
12:44 PM
@StatikStasis happy boy
 
@Tiffany happy girl =)
Our older dog on the left is a boy though.
 
:3
 
1:05 PM
@MateKocsis Where? I want to try and do another param naming patch or two before deadline.
 
@StatikStasis awwwwwww
 
FINALLY, I've got a potential CI setup for IMAP working
 
@Crell in the same directory. But you can search for the name of the function/method you are looking for while filtering for *.stub.php files
 
That's what I expected; hence why I was confused that pdo_stub.php was just one function.
 
2:06 PM
received my work computer :O
tiny little Dell box
 
2:49 PM
Morning
 
o/
 
o/
 
\o
3v4l.org throws a syntax error when you use ??= :o
 
2:55 PM
Oh :p
Always one step ahead of me Tiffany
 
back when I was preparing documentation for it
 
I was gunnu ping them but I don't know them like that :s
 
@Sjon is friendly
 
3:07 PM
That's good to know
Well thank you for your tool Sjon it's very useful
 
@Alesana Tell your boss to buy him a bottle of whiskey :)
 
@PeeHaa I'll pass it along :p
 
<3
 
4:08 PM
what's the current url for the lxr?
 
@Gordon heap.space
 
If you guys have a method which accepts a single character as an argument, would you guys do anything special to enforce that or just check the strlen in the beginning of the character? I'm wondering if I should accept an integer as the bytevalue, but that would just add extra work
 
@Ekin thanks
 
yw :-)
@StatikStasis those are suuuch cuuute doggos!
 
cmb
4:18 PM
@Alesana do you expect a certain character encoding? If, e.g. UTF-8, a bytevalue wouldn't be possible, and a more general integer would still be confusing.
 
@cmb The character encoding is passed in with the method but I guess I don't understand bytevalues or character encoding enough to do anything special like that
In the end the method isn't necessary anyways because I realized it was only being called inside a catch block when no exception could be thrown in the try block
 
What does the method do? And what is being passed in
As in what does it represent
 
a character, it's original encoding, and the encoding that it should be converted to
It was acting as a wrapper method anyways for iconv(...)
 
Why does it only support a single character?
I feel like if it is an iconv wrapper it should just process whatever string and the validation of the length should take in something that is responsible for it
 
There was a string converter and if it caught an exception when using iconv(...) it would loop through each character of the string and call it. But like I said the exception would never be thrown so I removed it completely
 
4:37 PM
I was given the task of updating our services and libraries to PHP 7.4 so I'm trying to sneak in a little bit of light refactoring under the guise of PHP 7.4 enhancements :p
 
4:49 PM
@Alesana "single character" - any character? or within ascii?
 
I have an object where if I free it, I get (zval_gc_type((ref)->gc.u.type_info) == 7 || zval_gc_type((ref)->gc.u.type_info) == 8), function gc_possible_root, file /usr/local/src/php-8.0.0beta3/Zend/zend_gc.c, line 646., but if I don't, then I get a memory leak from zend_objects.c where it's allocated. Any ideas?
 
@Trowski this assertion is a typical use after free
 
@bwoebi More context: I'm freeing it in a function called in PHP_RSHUTDOWN_FUNCTION.
 
so probably you are trying to actually access the object after it's freed - maybe forgot to cleanup a value holding a pointer to it or such
 
Yeah, there must be another reference.
 
4:56 PM
look at the backtrace in gdb
and find where the ref is held
 
@Alesana "unpaid overtime"
 
@bwoebi I've been using lldb on macOS since gdb seems broken. This has been helpful: lldb.llvm.org/use/map.html Last time I did C programming was on Linux.
 
@Trowski ah, you're on lldb … I can recommend using env DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib USE_ZEND_ALLOC=0 before you type run
then you may get a more useful backtrace
 
@bwoebi Interestingly USE_ZEND_ALLOC=0 broke it.
That is, I get a EXC_BAD_ACCESS when I wasn't before.
 
yes, that's expected
 
5:04 PM
Ah, so that was probably my use after free?
 
yes
just at the very first place you access it after free
 
Yes, that was much more helpful than the backtrace before.
 
libgmalloc is basically allocating every single allocation as a dedicated mmap() without address reuse and then forbidding you access to it after a free()
 
Huh, now I'm getting a EXC_BAD_ACCESS on return_value… interesting.
At least I think that's what it's tell me, lol
No, of course not, it's on the pointer I'm trying to copy to return_value, that makes much more sense. :)
 
@Danack Any character I suppose but thinking about how character encodings work I'm not sure if that even makes sense :p
 
5:17 PM
Well, I mean if it's like a set of known characters, I'd just list the allowed ones in an array...or you could check the string length and php.net/manual/en/function.ord.php
 
I think that since the method was converting it from one character encoding to another it would have to work with any encoding and byte length and preserve it. But the idea for the method in general didn't make much sense so I just used the iconv(...) method itself anyways
 
@bwoebi Does asan on GCC do anything like this?
I should probably be using this technique somehow in my test suite.
 
cmb
@Alesana hm, seems like the exception was a promoted warning (via set_error_handler()), and the idea was to try to convert every single character to get the exact error position in the string. Just guessing here, though.
 
@bwoebi Thanks for the help with lldb. The backtraces pointed directly to the issues I had and I was able to quickly fix them.
 
@LeviMorrison yes, asan would be fine as well
 
5:30 PM
@cmb It might've been a promoted warning, but it also checks for false as the result (which would only happen if a notice is thrown). When it catches it, it will loop through each character of the string using for ($i = 0; $i < mb_strlen($str, $encoding); $i++) { ... }, then it will grab the character using mb_substr($string, $i, 1); and try to convert that character appending it to a string (which starts out as an empty string)
Something smells here though
I don't know enough about encoding to be 100% certain there's something off here but it doesn't seem right
 
6:13 PM
Is is considered bad practice to exit a function with if(false) return;
 
@samayo That specific code, or generally having "guard clauses" to bail out of a function early?
 
I honestly don't know the difference.
I am just existing early I guess
But the code is the same, except false is an expression
 
Early-return guard clauses are a good practice, I'd say. As long as you have a logical return.
eg:
function foo(int $a) {
  if ($a <= 0) {
    return null;
  }
  // do stuff knowing that $a is positive.
}
 
@Alesana ....have you thought about just not touching that code? it sounds like it might be broken already, and just only kind of working.
 
That's totally fair; aside from returning null being a bad practice, and returning false being worse... :-)
 
6:19 PM
@Danack :p I just confirmed that it is only sometimes working. I needed to change some things in the file so naturally I looked at the whole thing
But now I have the ticket to fix it so it works out
 
@Crell I thought false was the better one, since it is explicit
null seems like neither here nor there
 
as a suggestion then, I'd recommend first just recording what it does in depth for a large variety of different input, so to at least be conscious about what changes you make....
 
It depends what your function is doing. Returning boolean false when the function normally returns an int, or a Product object, is Very Wrong And You Should Feel Bad(tm). It's a total type mismatch.
Returning null is... less type bad, but still useless for the caller.
If there's no natural return value to use, that's when either exceptions or monads come into play.
But to answer your original question, the "check values early and bail out quickly if needed" pattern, known as guard clauses, is quite common and a generally good practice.
 
hmm, good to know. thanks!
 
@cmb Do you mind if I go ahead and merge the entropy API PR? github.com/php/php-src/pull/5871
 
6:40 PM
@Danack Yup will do. I see some similar pieces of code online with a lot of tests so I will write all the tests first and show which ones are failing and why they're failing
 
7:02 PM
@StatikStasis good show, sir
 
7:13 PM
I'd like to execute something at script end in an extension but before destructors, etc are run. Is there a way to insert an opcode, or hook into something to do so?
 
7:50 PM
@Trowski Which versions of PHP do you care about? (please say PHP 8.0+)
The observer API can observe script executions, so you could use it to monitor the .end of the script.
But I'm not exactly sure when destructors and other things you are interested in are running, so maybe it's not quite the right time.
 
8:27 PM
@Girgias Nice job so far :) But I guess the worst part is yet to come... :D P.S. my girlfriend shows some mild symptoms of the COVID-19 (like lost taste perception), so I've just earned 2 nice weeks at home. :D At least I can do more stuffs before RC1.
 
Actually the warning promotion went rather easy
It was setting up the CI and testing which was a struggle
 
@LeviMorrison yes, PHP 8
 
cmb
8:53 PM
@SammyK no :)
 
@cmb ty! :)
 
9:25 PM
I didn't believe these stories when I read them online, but I had htop open on my terminal at office and this guy(a developer) came up to me and said "are you hacking?" and I was like wtf?
 
@MateKocsis You'll also appreciate that there are a couple of integer overflows in IMAP :')
 
 
1 hour later…
10:51 PM
@Girgias if that was the only problem with IMAP (the protocol) we'd be laughing :-P
although at least it's not smtp
I'd rather VNC to the remote user's computer and type out the message with an audience than trust SMTP to deliver anything
 
@DaveRandom I was talking about th extension tho :p
 
yeh I know :-P
 
I mean if you have any knowledge and want to review the PR that'd be great :D
 
oh maybe actually, link?
 
10:56 PM
first glance looks sensible certainly
I assume those tests pass in All The Places?
 
Well I just got it set-up on Azure Pipelines Ubuntu X86_64
But it works on a release build (well there is a warning apparently which is now generated which I need to fix)
 
all the tests read sanely, this is the kind of thing where I trust them because it's really just a change in program flow behaviour, so as long as there are enough sane tests you are pretty safe
 
I mean I marked one as XFAIL because passing 999 as a message number emits a ValueError about how it's less than 0 lol
 
basically, you've done about the only thing it's possible to do to ext/imap that can be tested without an internet :-P (so I trust the tests)
 
Which seems to come from trying to fit a zend_long into an int
 
10:59 PM
@Girgias uhhhhh... lol
I read that as a passing test, let me re-read them :-P
 
Yeah i was very confused :')
 
specifically 999?
 
Look at the TODOs I've annotated in php_imap.c
 
not just >255 or sth?
 
IIRC that was the value yeah
I didn't attempt any others tbh
 
11:00 PM
@Girgias ah, yeh I didn't read that yet
also tbh I'm too drunk to be 100% trustworthy rn
 
The XFAIL test is imap_body I think
Aye it's fine :p
 
I will do a proper actual real review tomorrow though if you want
 
Would be nice :)
 
ping me if you haven't heard from me by like 3ish
I'm planning to shove my head into a github tomorrow afternoon/night
 
Well I'll try but I'm flying back to the UK tmr morning so :')
 
11:02 PM
for the first time in several months :-/
@Girgias oh where are you atm?
also have fun with the 2 weeks isolating
 
Still South of France with my parents because my previous flight got cancelled when the UK added quarentine back
I know
Well I can play Valorant I suppose lol
 
@Girgias you know you could walk it in like 2 weeks :-P
that might be optimistic
definitely cyclable
 
@DaveRandom I quite like my parents so its fine :D
 
not sure if they let push bikes on the eurostar
@Girgias lol :-P
tbf you are in a better country, maybe just chill there for a bit :-P
I know the French can be socialist to the point of tiresome sometimes, but in general it's a nice place with nice people
albeit grumpy people
(sometimes)
The only time I have ever been into a shop and fully blanked by the shop assistant as if I had offended her simply by walking through the door was in France
 
Typical joke is France would be perfect if not for the French
 
11:07 PM
that's not fair
the country is far from perfect in other ways as well
/hides
:-P
in all honesty, certainly right now I would much rather be french than english
your govt don't do anything other than filling out forms afaict, but that is waaaaaaaaaay better than the "doing things" that the UK govt does
 
Oh there a loads of issues, but any country has them so
 
yeh indeed
 
Well I've stopped following what the fuck the UK has been doing because they seem to change stuff every 2 days
 
tl;dr politics is bullshit but most individuals are generally pretty solid
 
But France was a bit consistent but this week it's been a bit all over the place too
 
11:10 PM
"people" as a collective are a shower of cunts
 
aye aye
 
My county has a nationally reported on base of idiots that believe that the government doesn't have the authority to regulate wearing masks.
 
@DaveRandom We're often living in a bubble and tend to not have as much exposure to the individuals which are ... yea. … there are too many of them, but we do not meet most of them
You just do subconsiously avoid most of them
 
@LeviMorrison lol @ "believe" (although my country has the same aforementioned shower)
 
The government definitely has the authority to do this, BTW. The US bill of rights specifically says: "The powers not delegated to the United States by the Constitution, nor prohibited by it to the states, are reserved to the states respectively, or to the people." The states can definitely regulate public health matters, which is why they can forbid smoking in public buildings and require you to turn your lights on your vehicle at night, etc.
 
11:20 PM
@bwoebi ftr my bubble is much larger than yours I suspect (I do a lot of face-to-face direct interaction with end users and indeed some of them are awful people, but I think it's largely a minority
 
I do not say it lightly, but these people are idiots. These people are precisely why we can't have progress on SOOOO many issues...
 
@LeviMorrison ah yeh I forgot the "the state" means a different thing on your side
(here is just means "the govt" in general, not restricted to regional/national)
regardless of that though.... just wear a mask. srsly.
not that I need to say that anyone in here, obv
 
People showed up to an organized hearing for opposing masks, and guess what? They didn't follow health dept. requirements of wearing masks and were over capacity of the building. The people in authority adjourned the meeting immediately on arrival for health safety concerns. Like, what did they expect?
The thing is, to these people, this proves their point. "We don't believe in wearing masks, and we showed up to a meeting so people could hear our points and arguments, and they wouldn't even listen to us!"
 
the problem is they expect their opinion to matter :-P
 
Masks have only recently been mandated here, and there is extreme opposition to the mandate, and I common hear things like "We've been wearing masks and our numbers are going up! Masks don't work!" Let's ignore the fact we have multiple universities in our county and most of the increases are in these universities which just started the semester...
 
11:26 PM
I swear if I hear the term "R rate" again I will punch someone
 
Elementary schools have been in session longer and haven't seen out-of-line increases, and masks have been enforced by all students, staff, and visitors, among other precautions.
 
It's like people who refer to "ATM Machines"
automated teller machine machine
the Rate rate
@LeviMorrison oh interesting are they enforcing masks for students in class over there?
 
Yeah, and they provided masks and water bottles too (to help avoid the drinking fountain).
 
I can only speak for primary school (<11) but here it's currently "masks up to the gate" but then after that it's a free-for-all
 
The elementary schools, I mean. No idea what universities are doing, but every time I've gone to campus housing districts I've seen people gathering irresponsibly so there's no surprise there that we are seeing increases in cases at universities...
 
11:28 PM
absolute joke
the thing that's driving me nuts is the way keep talking about "science" without numbers
or any form of evidence or info about where to access evidence
so, not even remotely scientific
 
They publish case numbers in our school district and county, so at least you can see the raw data that policy makers are using.
 
weirdly considering where you live (utah?) you guys are being soooooo much more scientific than we are
 
It's unusual for us, I promise. They don't care about science on so many other issues (ahem, climate, pollution, etc).
 
yeh indeed :-P but it's a start
one of the positive things about all this shit is I think it's a real opportunity to teach basic critical thinking
 
My kids only go to school 2x per week. Next week they are supposed to start going 4x per week. My daughter was tested yesterday; we'll find out if it's just the sniffles or if it's covid-19 in the next day or too. But even if they are healthy I'm not sure about sending them 4x per week...
 
11:33 PM
Imagine getting on a plane
I'm not really mad keen on the idea of sending my kid to school, imagine sitting in a metal box with 200 other people for 4 hours
because, ftr, that's what air travel is, in case anyone hasn't noticed
 
@DaveRandom Yes, I do suspect that as well, but the argument should still hold.
And well… a lot of people can be cunts without being outright awful
 
@bwoebi don't get me wrong, there are a fair few people who I wish I could just headbutt and walk away, but they are a small minority
 
But there are also a lot of just uneducated / easily manipulated people
 
maybe I've just been lucky though
@bwoebi those people are usually quite nice though
they just don't know
 
yes
 
11:37 PM
which I can't really criticise people for
there's loads of things I don't know
 
@DaveRandom you cannot, no.
but there are far too many of them
 
@bwoebi I could give it a real solid attempt, tbf :-P
(jk)
 
haha
 
I just got an email that we are delaying the 4x per week til the next week due to the data. Relieved.
 
I love coincidences like that, if you ever want an answer to an open question, just go complain about it in a public forum
 
11:49 PM
...well, as we're on the subject of depressing stuff - Supreme Court Justice Ruth Bader Ginsburg died.
 
she must have been cracking on a bit by now though (on the up side)
like without googling she must have been min 80
 
87.
 
that's not a terrible innings
yeh
It's not great but I'm pretty sure that she would be OK with that figure :-P
 
President Trump probably can appoint a replacement. Who could be the deciding vote for any cases coming up....say around election shenanigans.
 
yeh that's where it gets interesting, but I do get the impression that chunk of the US state is still fairly unimpeachable, it's much harder to be a dickhead in a group of 9 than a group of 1 (not impossible obv)
sorry I seem to be tiresomely optimistic this eve
 

« first day (3625 days earlier)      last day (1305 days later) »