« first day (3640 days earlier)      last day (1299 days later) » 

3:01 AM
Ah yes, my sleep schedule is truly utterly fucked
 
 
3 hours later…
6:08 AM
@Girgias Same :|
 
big mood
 
6:28 AM
posted on September 12, 2020

If I ever missed a comic, and then went back weeks later to fill in the gap, I would certainly add new art. I wouldn’t drag Janet’s arm off the side of the panel, and pass off a shrunken Jeff hand as Janet’s. Because my readers would be able to tell. And I have too much respect for their comic reading experience. And I would never be late on a comic.

 
7:04 AM
posted on September 19, 2020

How the hell is this comic five years old? Why am I still making this? What am I doing with my life?!? Well, I suppose I might as well celebrate. And there’s no better way that I can think of than to slap together a quick review of the past year’s comics like I do every year. Let’s do this! My favorite comics Keep At It This is possibly my favorite... [read more]

 
7:55 AM
hai guys can i forward my question to this chat?
 
posted on September 26, 2020

I don't think I've heard anyone say "surf the web" since the 90s. It's time to bring that back.

 
8:09 AM
Don't sak to ask, just ask
 
@Dharman It's perfect now! Good job!
 
8:40 AM
posted on October 03, 2020

Welcome back! I feel like I haven’t seen you since the beginning of September. I’m sure it’s because you checked the site wrong. I certainly didn’t go back and fill in 3 comics in the last few hours. You should probably check that you read everything, just in case. In some completely unrelated comic news, the ol’ work/life balance has been incredibly off balance for a month. It will li

 
 
2 hours later…
Wes
10:57 AM
\o
 
o/
 
11:39 AM
o/
 
Please answer my question
https://stackoverflow.com/questions/64181798/how-to-get-content-using-curl-web-scraping-with-parsing-phpsessid
 
Wes
12:09 PM
why every php i compile, even if it's the release commit, appears e.g. as 7.4.11-dev when i compile it?
 
cmb
12:30 PM
make clean is likely missing
 
Wes
1:17 PM
i am not sure exactly when i need make clean
i am trying if it works though
 
Hi all :) I'm building a project with Symfony 5 — I want to eyeball mails sent by the app by dumping them to disk, logging them, or something.

In previous versions of Symfony I seem to recall this was very easy, for example you could spool mails to a file.

In Symfony 5 I cannot see any way to do this, or some other way to inspect mails.
 
Wes
that worked. weird, i thought i tried deleting the folder entirely
 
cmb
@Wes the PHP build system doesn't detect changes to header files; in this case main/php_version.h
if you're working with different branches, consider using git worktree
 
Disregard my question! A friend suggested running python -m smtpd -c DebuggingServer -n localhost:8025 and pointing the MAILER_DSN to that in .env.local. Works!
 
1:56 PM
@Wes when in doubt, make clean
It's almost scary surprising how much it works...
 
Wes
2:29 PM
no idea what it does
 
How to get the length of a hash table? Is there a macro for this?
Is it zend_array_count(Z_ARRVAL_P(array))?
 
cmb
@Wes consider the following experiment: you have a fully compiled PHP; then you change the version in main/php_version.h; then you do make and nothing happens; that is because changes to .h files are not tracked by the PHP build system, so you do make clean and make.
 
Thanks, and the next question how to call str_repeat from within C
 
cmb
3:05 PM
Ideally, you avoid calling back to userland; in this case, str_repeat() doesn't actually delegate to a C implementation function, but it may be worthwhile to refactor it so that it does.
 
 
1 hour later…
4:26 PM
Who here can manage labels for php/php-src on GitHub? Hoping someone can make a Hacktoberfest topicand tag this: github.com/php/php-src/pull/6261. Also, what does it take to get added to the list of people who can manage this kind of thing?
Supposedly here are instructions for it: reddit.com/r/programming/comments/j459hr/….
 
4:52 PM
I am a genius. I just hacked mysqli and added bind-in-execute for mysqlnd. github.com/kamil-tekiela/php-src/commit/…
 
Watching @Ocramius's talk on CQRS/Event Sourcing, it's great! :D
 
Broken link on edit.php.net login page ・ Online Doc Editor problem ・ #80178
 
5:19 PM
I just got a silicone keyboard cover for my mac
And I don't know how anybody actually uses this to type?
It's almost impossible
 
 
1 hour later…
6:33 PM
@Alesana why?
Just get something that can easily clean the keyboard
 
7:08 PM
We're still doing parameter renames, right?
 
7:25 PM
@Crell I'm finally starting to prototype on enums again. This is what I wanna achieve first, looks sensible? gist.github.com/iluuu1994/a6fc5e77c4d51d4c0e80ee6927714bad
 
With the caveat of making Bar a cached singleton, yes.
 
One nice thing I forgot about, we can use protected constructors in the case classes, this prevents you from constructing it yourself.
@Crell Yeah, I can deal with that later.
 
I'm curious if we can do without the case keyword. We've just kind of assumed we need it, but not every language has that.
 
HTTP version still shows as HTTP/1.0 ・ HTTP related ・ #80179
 
private constructors is a trick PHP devs really should use more often. :-)
 
7:27 PM
@Crell Maybe not, but I think in the case of PHP it's better to avoid ambiguity in the future since we have very limited lookahead.
 
True. I'm more musing than calling it a feature request.
'It keeps the parser happy" is a good argument for syntax in most cases, in my mind.
Hm. I just had a probably terrible thought. Please tell me why this is a bad idea.
If abstract class Foo has an annotation on it, like: #[Sealed(Bar, Baz)]

Then the enum syntax can *almost* just compile to code you could write yourself. At that point, sealed classes and enums become almost isomorphic syntaxes.
Please point out why what I just said is stupid, because I feel like it probably is...
I guess there would be challenges around edges in the syntax, like Foo::Bar vs Foo::Bar(), or referencing the "subclass" enum case...
 
8:08 PM
Nov 23 '18 at 16:14, by Danack
> In biology, two things are isomorphic if they resemble each other. In mathematics, two things are isomorphic if there is a structure-preserving map between them in both directions. In computer science, two things are isomorphic if the person explaining a concept wishes to seem educated.
does that help?
 
:-P
 
btw....hardly anyone on internals will understand that discussion (imo) probably best just to mostly keep it at "look at how it can be used"...
or even just 'hey! shiny!'
 
Well, I was mostly talking to Ilija on that, for implementation details and politicking.
I don't think the RFC mentions isomorphic anywhere.
I really don't want to change this parameter name, but $whence is a rather obscure parameter name to have. :-)
 
What would it take to actually implement my little experiment with MySQLi bind-in-execute into PHP? I assume we would need to make it work for libmysql as well and write some test cases. But does it need to go through RFC and discussion on internals?
 
@Dharman If it would impact user-written syntax, it needs an RFC. At least that's a good heuristic
 
8:16 PM
Doesn't everything have an impact?
 
Performance tweaks don't change the code. just make it faster.
 
From syntax perspective we would add a parameter to a method that takes none at the moment
 
I'd err on the side of RFC.
 
@Dharman some tests would be good. If nothing else they would show how to use it.
@Crell I would guess that most PHP people aren't familiar with the phrase 'sealed class' also.
 
No, but it's a related topic to enums that some here were asking about doing instead.
 
8:22 PM
@Dharman out of interest, how come the code you wrote doesn't do the type specification stuff that is inside the normal bind param code like github.com/kamil-tekiela/php-src/blob/…?
 
Because 1. The type is not needed most of the time. Almost everything can be bound as a string. 2. To make it work the same as PDO 3. It would look nasty to have type specifications in an array.
In PDO you have $stmt->execute(['param1', 'param2']) but there is no way to do the same in mysqli. You need to create 2 variables and bind them separately using $stmt->bind_param('ss', $param1, $param2)
Meanwhile mysqli_stmt::execute() takes no parameters but it easily could same as PDO
 
> Almost
 
For the 0.001% you can still use bind_param() but you know when you need it.
 
@friday
!friday
 
8:45 PM
class_alias() convert alias in lowercase ・ Unknown/Other Function ・ #80180
 
9:16 PM
 
9:36 PM
@twodee glad you liked it! I wish I could do more of that next year :)
 
@Ocramius With a bigger board hopefully :D
 
Now that RC1 is out, is it fair game to propose RFCs for 8.1? Or would it be more polite to wait longer?
 
@twodee yeah, I had asked for a big whiteboard, but the hotel thought that would suffice -.-
 
@Crell Erf wait for branch cut in 2 weeks I think
 
Fair. That was originally going to be RC1 but got delayed, so that works.
 
9:52 PM
OK, help me out here. I have this diff:

-function pg_execute($connection, $stmt_name, array $params = UNKNOWN) {}
+function pg_execute($pgsql, $stmt, array $params = UNKNOWN) {}

And when I run tests, no new arginfo.h file is generated, but I do get this error:

Missing parameter type for function pg_execute()

Wat?
 
 
2 hours later…
11:27 PM
@Derick re: your poll, have you tried colcannon?
Or champ
 

« first day (3640 days earlier)      last day (1299 days later) »