« first day (3490 days earlier)      last day (1683 days later) » 
00:00 - 23:0023:00 - 00:00

00:02
1 message moved to Trash can
00:31
Hey. So I really couldn't get PHP extensions to work that day, so here it is as a question, in case anyone here wants to check it out I guess: serverfault.com/questions/1015819/…
01:14
$jsonArray = json_decode($values[‘jsonString’],1);
$someField = $jsonArray[‘someField’];
$test = $someField[‘randomString’];

Does anyone have any idea what the result of the test variable here is? I see this code and it makes no sense to me, cant test it with a compiler rn. someField in the JSON String is just a single value field, so the notion of accessing the someField-Variable with another string makes no sense to me, there should be a single value inside the someField variable.
> cant test it with a compiler rn
Sure you can
@PeeHaa Ah right, I forgot these are a thing.
I just checked, it produces a warning but it does use the actual field value for the test variable
So this code is buggy but whoever wrote it was lucky enough that the default behaviour randomly works, I guess. Unless this is some kind of trick, but i doubt it
Thanks for the compiler link!
user11867329
02:02
:49300507
user11867329
amavisd-new is a high-performance interface between mailer (MTA) and content checkers: virus scanners, and/or SpamAssassin. It is written in Perl for maintainability, without paying a significant price for speed. It talks to MTA via (E)SMTP or LMTP, or by using helper programs.
user11867329
That's why it's only accepting 143 and unsecure! I don't know how I feel about it though
user11867329
Man, so complicated
user11867329
and proprietary
user11867329
I mean
user11867329
02:09
This is plain not working
user11867329
Why oh why, is my Thunderbird saying port 587 uses no encryption, that's impossible!
@Danack No, Rector is one of its kind. I've helped in the begining of its project.
user11867329
02:27
Why
user11867329
Why does 587 gives me a "Not Encrypted" warning
user11867329
Who do I have to pay
user11867329
Walt-Walter Payton?
06:41
hm the turkish php manual translatoin also translates parameter names :-/
(not sure about the claim of most translations translate parameters, a large set I tested over all languages except turkish seem to use exactly the same)
07:38
@beberlei They will have to switch back to the English version regardless to named parameters because we're now displaying internal param names in error messages
cmb
cmb
I think some of the inactive translations also translate parameter names (and perhaps there are still some occurances in the active translations, besides TR).
However, wouldn't it be great to have fully translated signatures:
zklän ( zeichenkette $zeichenkette ) : ganz
is zeichenkette string? :D
cmb
cmb
yes, but very old school; most say "String" in German as well :)
to be clear: I think that translating parameter names (and also translating code in examples) has been a bad idea in the first place.
+1
+ due to the way we build error messages, it makes them impossible to translate in a sane way
@cmb To answer your last mail: I'm still interested in coming up with a script that synchronizes stubs with the docs! The feature freeze period will be a perfect time to do so :)
I don't know whether PHP would benefit from C11 or C18 improvements, but what is the reason for C99 compatibility? Just curious.
cmb
cmb
07:53
I think it has some nice syntatic improvements (e.g. mixing decls and stmts), and also standardizes some headers and types which we'd otherwise have to check (and provide fallbacks if not available).
Note that it's about mostly C99 compliant, because MSVC chooses to ignore newer C standards in favor of C++.
@cmb Do you happen to know where it says that you are not supposed to translate some stuff like function names?
I remember seeing that in some translation instructions, but I can't find it
cmb
cmb
@NikiC I wouldn't know that this has ever be written down (at least doc.php.net/tutorial/translating.php doesn't mention it).
Yeah, I checked that page
cmb
cmb
PS: MSVC does not support flexible array members, which is a real pity.
08:03
@cmb Unfortunately they are also not supported by C++ either, which we need for header files.
So we couldn't use them either way :(
And MSVC has to be used for Windows builds, GCC or CLANG are not an option?
cmb
cmb
Well, I think that MSFT wouldn't be happy to drop MSVC support. clang is also supported, though not necessarily recommended. Also see Nikita's comment regarding C++ above.
08:37
I mean at least we moved forward from C89
Apparently mixing code and declarations is bad style, so let's introduce random do { } while (0); loops into code. That's how far we moved from C89 :)
how about an <<AssignArgumentsToProperties>> attribute? :D (sprinkle sprinkle magic) (maring this as clearly irony)
@NikiC :|
lolwat
o/
08:43
I also don't get the argument it's always a PITA when a variable is defined at the beginning of the function and it's used like somewhere in the middle of a long function and you don't know what the fuck it's meant to represent (cause obviously the var name is one character...)
08:58
FWIW, I agree with Laruence here. I don't think these should be mixed. If it's a long function, break it up. And when the name is not useful, rename the var.
That is not what he is saying though
@Derick I can understand stylistics disagreements on the question of mixing declarations and code, but I don't think there can be any argument that dropping in a do { } while (0); is ever an appropriate way to resolve that.
no, I would have just used { ... } If I had to.
but you could easily have swapped github.com/php/php-src/commit/… with github.com/php/php-src/commit/… ... no need for the do...while
@Derick I could have done that, and I'd be totally fine with that change. However, there is another variable declaration below that
And stylistically, that variable declaration is exactly where it is supposed to be
Moving that declaration higher would be a coding style regression.
Of course it could be wrapped in a block. But it's already in a "block" because it is nicely delimited by comments
09:19
github.com/php/php-src/pull/5532 hopefully my regexes did their job well
unfortunately, I forgot to allow search&replace in .h files
Jeez that's a fat diff :D
@MátéKocsis That seems like a really pointless thing to do. Sure, by all means don't add new ones, and clean ones out when you're updating a bit of the code, but this just adds a mess of conflicts further down the line.
@Derick "alkotester" -- Innebygget LYKT og GASS - detektor.
@Derick Those folder marks are fairly annoying actually
Partly because you feel obliged to add them if all the surrounding code has them
How? THey're not doing anything if your editor is not configured for it. Remove them when you touch a function.
So add to the style guide: don't add new ones.
09:34
It's a lot more efficient to drop them at once, rather than introduce coding style changes in a lot of unrelated commits
Similar to how we handle mass whitespace changes from time to time
If it causes a conflict I'll just commit the conflict :-þ
Good luck dealing with it
Well, good that I am working on php-src then, and you don't.
I could really do with some less hot takes
cmb
cmb
please, no style wars :)
@cmb The star system of EXIF vote for no folding comments in the Galactic Republic of Nikita
Match RFC question: As many people want match blocks to be removed, how would you reword this RFC? I feel like it's dishonest to argue against the switch when match is only applicable in 30-40% of those cases (see Nikitas analysis of 50 random switch statements). This begs the question:

* If switch has flaws why not make match usable in all cases?
* If switch doesn't have flaws why do we need match at all? If it's for returning values only, why are there subtle differences like strict comparison?
09:42
@cmb It's not about style, it's about not making merging code hard by introducing changes that do nothing.
For context (Nikitas analysis of 50 random switch statements): externals.io/message/109842#109868
So @Derick, how many times a day do you perform PHP-7.4 to master merges that this is such a large concern for you personally?
cmb
cmb
@Derick If we remove the folding comments including the protos, there may not be that much merge conflicts. And in a few years, that would be water under the bridges anyway.
@NikiC Not. The. Point. It's tracing the commit history. I've been around enough large code bases where this always caused problems down the line when having to track down something odd. I find them ugly as hell too, and would (now) never add them.
@Derick If tracing the commit history is the point, then say so :) It's a different point from merge conflicts. And at least if you're tracing via GitHub, the UI make it trivial to skip such changes.
There are changes that can interrupt a git blame trace, e.g. there's a super annoying LLVM commit that deleted a huge chunk of tests and then got reverted. Git blame and the GitHub UI can't see through that. But some simple line removal don't cause such issues.
09:52
GIT can't even see that you've added a new function, and instead uses curly braces from previous functions in its diffs...
@IluTov I don't see a good solution either.
@IluTov There's also the extra issue that "match" as proposed is just the base form, and we expect it to be extended with pattern matching capabilities down the line
It would be pretty bad if using pattern matching would also automatically force you into using expression style only
@Derick Wasn't there some different diff driver that handles that?
Probably, but it should be the default. It's a basic feature of a VCS if you ask me.
Also, I recently discovered the magic of [diff] noprefix = true
That drops those annoying a/ b/ prefixes from diffs, so you can double click select the file name...
@NikiC Bummer... That's true. Same with optimizations, the match generates more optimal opcodes but switch won't benefit from those unless we apply the same optimizations there (if even possible).
10:09
@IluTov Haven't looked at the optimizations (or any of the implementation really...), but switch it pretty constrained due to the implicit type conversions
Things like numeric strings comparing equal with integers...
@NikiC Yeah that's the part we optimized. The comparison chain is dropped when a jumptable is generated.
@Derick It probably has some complicated trade-offs, as things tend to do :)
cmb
cmb
10:23
Hmm, seems we may need wiki.php.net/rfc/mix_decls_and_stmts :(
@Derick Regarding mixed declarations and code, from your perspective, is it fine if it's part of a "visual" block, even if not a technical one? E.g. after if () { return; }?
10:39
There is a feature in git where you can list commits to skip in blame/annotate afair, its committed with a file
@NikiC I would only do it at the start of blocks personally.
@beberlei Oh, nice
@beberlei Do all tools respect that, or just the command line "git" tool?
@Derick That makes it hard to compromise :) Being able to use early return seems rather important to me.
There is nothing wrong with early returns per-se?
10:49
if (!zv) {
    return;
}

zend_string *str = zval_get_string(zv);
// use str...
@Derick This ^ is not possible without mixed declarations and code
if (!zv) {
    return;
} else {
    zend_string *str = zval_get_string(zv);
    // use str...
}
This is possible
if (zv) {
    zend_string *str = zval_get_string(zv);
    // use str...
}
This is possible
Right, but you can just stick the zend_string *str = NULL; at the top of the function
(I am very much of a fan of early returns)
@Derick But that means you have a dangling uninitialized variable
The initialization should preferably always happen together with the declaration.
Go solves this by just doing str := zval_get_string syntax to infer the type - C++ has something similar.
lobby the C standards committee to add that ;-)
@Derick C++ does the same as C99?
Mixed declaration and code is pretty much foundational to C++, because you often can not separate declaration and initialization there
i think you can just auto str = ... or something like that
10:53
Oh yes, but ... ehm ... people consider that bad style if the type is not "obvious" for some rather narrow definitions of obvious :)
(which I found quite obnoxious to read in other people's code, as you never knew the type)
exactly
Which is why I don't see how auto is related to any of this ...
what about only doing it after a comment?
Btw, C also has auto ... it just means something completely different :)
TIL
10:56
12 hours ago, by Danack
Random question: does anyone know of a website that has a really neutral colour scheme like this: http://dowebsitesneedtolookexactlythesameineverybrowser.com/ , but has instead of one word a bit more text like 100 words or so...
(the world will be a better place if I steal a design, rather than try to make one myself...)
@Derick I perfer var declarations as close as possible to the actual context using them to highlight "this variable is only relevant from here on" - and while blocks can be sometimes a nice tool to segment parts of a function, it's not always nicely possible without too much nesting (because a variable needs to get carried over)
pick xdebug.org and make it black/white/grey? :-)
@bwoebi I don't disagree, but it's often a sign your function is too big
@Derick I don't disagree either - but sometimes a single big function is more easily to read (imperative style, step after step), than a function split into 5 parts where you jump back and forth between the subfunctions. Depends on context
11:20
@NikiC do I dare to add hebrev() to this round of deprecations? or was there a strong argument to keep it? (I can't remember)
CLI
Basically any non HTML context IIRC
Also who's an FPM expert here?
hmm good point @Girgias
@Girgias joe is.....but don't mention FPM during the opening bit of your conversation....
I just need someone to validate my PR, which changes some #ifdef to #if as the macro constant is always defined :|
And I don't know if it catches something legit on MacOS
You guys know about any admin interface form, I've used one before but I cant remember the name what it was called?
11:32
That's ... pretty vague? Admin interface for what? Database management?
I know, if i remeber correctly it was to change text and images on the website
oh connected to the php room
my bad
11:54
@Kalle Well, I don't think there was a strong argument to keep it, but there there certainly was a big argument about keeping it.
I don't think it's worth the drama :)
cmb
cmb
^ that (I think it would be a different story if pecl.php.net/package/fribidi was still maintained)
@NikiC @Derick i am not sure its in all git libraries yet, it apparently popped up in git 2.23: moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame - search for .git-blame-ignore-revs
12:19
Uh, thanks for this! It will also be really handy at work :)
12:40
what do you think about two new ini settings display_errors_filter and log_errors_filter, that are applied this way if (type & (error_reporting & ~display_errors_filter)) display_errors();
this pattern of @trigger_error() to avoid accidental displaying or logging of deprecations is making me want to cry :)
Hello, am I allowed to ask Laravel questions here?
Can I tell you about our lord and savior N'Zoth?
cmb
cmb
@BakaDesu don't ask to ask, just ask :)
Alright, thank you. I was wondering if I should use queue:work instead of queue:listen in production? It seems that queue:listen does not work for me in production but works in dev environment. Idk why but when I try to dispatch a job via tinker, no error is thrown and the job should have been processed but it does not get processed. I am using database as the queue engine if that is relevant.
I'm also using nginx in production
12:55
@beberlei Heh, my git is too old for that
Gotta update to 20.04 sometime
i need to setup my machine from scratch, i made a mistake giving it a small swap, and now it lags as hell with all the slack, phpstorm, goland, zoom, vagrant + firefox with 100s of tabs open
since my drives are fully encrypted, i seem to fail to be able to manually increase the sawp
How much memory do you have?
Does anyone in here actually use Laravel?
I do but I'm having trouble :(
@NikiC 32 gb
strike that, just 16 gb
Good morning everyone.
I'm using mpdf, to generate my PDF.
13:08
@BakaDesu realistically not many people here can help you with laravel problems, better search for another chat
I would like to fix a table in the footer, but it is when generating the PDF.

Using in the browser works: https://jsfiddle.net/2s0nmdoz/
<table width="100%" style="position:absolute; bottom:0">
    <thead>
    <tr>
        <th width="33%" style="border-top: 1px solid #000">Signature</th>
        <th width="33%"></th>
        <th width="33%"></th>
    </tr>
    </thead>
</table>
But in the mpdf, it is not in the footer.
I see... ty
Yay! for spam: "Here is ... from .... I checked your activity on GitHub and saw that you are contributing to the PHP repository. One company from my network has a PHP-project in Hamburg. This is an e-commerce platform with the post-sales application. They are offering 50k-70k EUR/year + learning and growth opportunities and balanced work and home time."
@SebastianBergmann I'm not in the EU but seems like maybe they halved the salary?
13:25
@LeviMorrison for sebastian certainly low, but 50-70 is a regular range for senior php developers
@beberlei Seems pretty low for a senior. A junior would get around 60k here in Switzerland.
Switzerland
I was always curious how dev salaries in Western European countries compare to the average salary? My guess is that the difference is not as big as here
@IluTov switzerland is like +20-50% to rest of europe
Let me check the AFUP stats for France
13:31
"Hochpreisland" :)
Didn't think the difference would be that huge. Oh well :D
the 50-70 is for Germany from my experience, its probably lower for many other european countries
Jeez France is low
35 - 55
but don't forget that companies also pay contributions to the state that aren't part of that number, whereas in the US employees often will need to take care of that
@Girgias it's because they only work 32 hours a week ;-)
Well technically 35...
13:32
haha trolled hard
I forgot that I and JB managed to get the AFUP to ask about the French doc
@Girgias And what is the average salary in France? Is it around 37 000 EUR/year (as I saw it on Wikipedia)?
Haven't checked the sources. Interesting though. daxx.com/blog/development-trends/…
I'm not moving anytime soon :P
@MátéKocsis there are some good stats for 2019 in this table: https://www.mutuelle-medicis.com/Medicis2/Nos-dossiers/Quel-est-le-salaire-moyen-des-Francais-en-2019

But average salary without taxes in France is 2 988/m ~ 36k
13:56
I'm using mpdf, to generate my PDF.
Using in the browser works: jsfiddle.net/2s0nmdoz
@Girgias Thanks! So dev salaries are around the average (a little bit more). It's really interesting to see that while the difference is usually pretty big here, but in the rest of Europe, it's not. :O
<table width="100%" style="position:absolute; bottom:0">
    <thead>
    <tr>
        <th width="33%" style="border-top: 1px solid #000">Signature</th>
        <th width="33%"></th>
        <th width="33%"></th>
    </tr>
    </thead>
</table>
But in the mpdf, it is not in the footer.
Can someone help me?
@Tiago have you looked at the docs?
@pmmaga Yes
ok, because there seem to be well defined methods for setting the headers and footers. position:absolute; bottom:0 is not one of them
14:02
@pmmaga I already use $mpdf->SetFooter($footer); to put my brand. But what I need is just to put the table at the bottom of the page.
to have at lesat one internal attribute also ship for 8.0 i have written this wiki.php.net/rfc/deprecated_attribute and prepared a patch here: github.com/beberlei/php-src/pull/11 - any thoughts before I publish this to the list?
@beberlei Only that it feels a little incomplete. You can't mark classes, properties, consts, etc. as deprecated.
@IluTov in the patch not yet, but i plan to add that (its mentioned in the RFC)
marking classes incomplete takes a bi tmore thought imho, what constitutes "use" of a class
Ah I see, I just looked at the patch :) Sorry
@beberlei Any explicit usage of the class. new, calling a static method, fetching class const, type hint, etc.
Also, in static analysis tools, deprecated code can't trigger other deprecation errors. Would that be possible?
@GabrielCaruso So PHP has the best tool something. This really is the worst possible timeline.
14:14
@beberlei I wrote the phpstan-deprecation-rules package, may be helpful for feature comparison: github.com/phpstan/phpstan-deprecation-rules
@Danack Nice, TIL
@GabrielCaruso btw could you do me a favour? British people are only polite with each other, when they are actually furiously angry at someone. Whenever someone uses the word 'sir', I have to think through "Uh-oh, what have I done to make them angry....oh wait no they are actually being nice", which I find discombobulating.
@Danack When I read "sir" I assume they're Indian :)
doing the needful intensifies.
As i'm from Bristol, I hereby give everyone in the room permission to say "Alright me babber?" to me. And I apologise for what a shitshow English is as a communication method.
@Danack Sorry, my bad. I used in a respect form, but I'll avoid it :)
@NikiC Why? :D
14:33
They sometimes call me Sir when im working with american clients, it feels very odd
@GabrielCaruso Just a very common pattern there
@GabrielCaruso probably off-topic for the room, but the remnants of the caste system and general stratification of Indian society. They are trying to change: thenational.ae/world/…
user11867329
@Danack I did it!
user11867329
587 STARTTLS
user11867329
993 SSL/TLS
user11867329
14:39
\o/
user11867329
I AM GOD
@Danack Bless your knowledge/culture, thanks for sharing it
And that's related to why it's fallen out of favour in native English. Using honourifics gets in the way of useful communication, as having to be respectful in one part of a sentence, means that it dilutes the rest of the message. This has been a factor in plane crashes: nationalgeographic.com/news/2013/7/…
15:00
grumble grumble Japanese and their 5 level of politeness grumble grumble
also different politenesses depending on if you are "receiving" or "giving"
15:30
We still use honorifics quite a bit in the US, especially depending on the region you're in. They're being used less and less, though.
feasgar math
@BenRamsey I know one guy who keeps trying to persuade other people to call him 'sir' by using it in stories he tells.....
How does one change their chat nick here?
I don't think you do that here, but in your S.O. profile
this chat is... limited
that page should work for you...
15:37
I changed my display name there. Is there another place I need to change?
oh.....just wait a bit...
There is some legacy crap with gravatars....
is what I see.
Me too
I tried to change so that it just shows "ramsey" in here. shrugs
user11867329
15:41
@Girgias There's a lot of people in the world.
Over 7 Milliard yes
@ramsey yay, you did it.
yay
@Girgias "Billion" in American English ;-)
I know that... Even the UK adopted this non sense
15:48
Dutch did not :-)
Also calories
what about calories?
@Girgias it's not been used like that in Britain since I believe the 1930's....
1 Calorie = 1000 calories
right
cmb
cmb
weird math
15:49
ah, Dutch use kilokalorie (correctly)
Americans use the same word to mean kcal
Same with billion
A billion was a million millions, but now, we use it to mean a thousand millions
@cmb ounce of feathers vs ounce of gold type thing: "The large calorie, food calorie, or kilocalorie (Cal, calorie or kcal) is the amount of heat needed to cause the same increase in one kilogram of water.[5] Thus, 1 kilocalorie (kcal) = 1000 calories (cal)"
@Danack Doing a quick search it seems the official date is 1975
15:51
In dutch, the progression is: miljoen, miljard, biljoen, biljard (instead of million, billion, trillion, whatevahilion)
Well yes because it's the sound way of doing it
French does the same
both work
unless fricking imperial
I think the correct term is bajillion
;-)
not brazillion?
15:52
(it's quadrillion, btw)
Also good day.
Let's just use Asian grouping of 4 digits as a nice reset :D
@Tpojka Latha math dhut
I hope so. :D
It is probably pronounced like "How do you do" @Derick
No, that is: Ciamar a tha thu?
15:57
:)
£sd did give rise to some good jokes tho
https://chat.stackoverflow.com/transcript/message/49303015#49303015

I have created a separate repository for the match RFC (as suggested by @Danack). It contains the current RFC as is and an issue on how to move the RFC forward:
https://github.com/iluuu1994/match-expression-rfc/issues/2

All comments and random thoughts are welcome. You can comment in the issue directly or review the PR if it's about something else.
https://github.com/iluuu1994/match-expression-rfc/pull/1/files
2
16:12
didn't know it is possible to create an empty commit
til
@IlliaSomov Yeah, otherwise you can't push the branch :)
16:31
(to the empty commit)
Of all my open source contributions, that is the one I'm most proud of. ;-)
@ramsey I can say with utmost confidence that is the most elegant, simple code I have ever seen. The brilliance is not in what it does, but what it doesn't do.
I apparently don't know what "starring" a message here means. Slack has ruined me.
@ramsey This is great. Thank you for sharing this
When an empty repo gets more stars than decades of work (php-src) :'(
@ramsey It's a little different than slack. Starring a message puts it on the "leaderboard" for a time depending on the number of stars and age.
16:37
I noticed that.
16:51
@NikiC in regards to the UChar PR, I tried the separate function for the ZPP checks but I'm getting hit by a compile error because execute_data is not defined, I see there is a ZEND_PARSE_PARAMETERS_START_EX macro, but what would be the flag needed?
@Girgias check INTERNAL_FUNCTION_PARAM_PASSTHRU
Thanks for the pointer will look into it
@Girgias And INTERNAL_FUNCTION_PARAMETERS on the declaration side
Yeah saw that
Just making sure tests passed before pushing
 
2 hours later…
18:31
o/
18:53
\o
19:30
How does the group feel about the honeypot method for rejecting bot submissions?
Big meh
Do you like ReCaptcha better?
Or something else...?
I hate them all
They all suck.
But I hate recaptcha the least (if that fucker works as intended that is)
19:32
I favor drawing and quartering of spammers.
And it doesn't really work most of the time
(I realize that's not effective as a deterrent, but it would make me feel better.)
What kind of form are you trying to protect?
lol... we're creating a form for staff to submit complaints/ethics issues to which can be anonymous, so I cannot put it behind any kind of access control.
Use recaptcha I guess
19:34
I was thinking about adding the access control but provide a general use username and pass to associates to use for the form...?
We would just need to change it every so often.
That doesn't feel anonymously though for the user
Just go with any captcha (recaptcha probably). At least it's not customers who have to select parts of a cat in the picture :D
If it's for internal use
Yep
We always joked we were providing information for self driving car AI. AI sees signs here, confirm with random user during login credentials, yes, machine got it right; no, got it wrong- correct answer was...
What could possible go wrong?
It worked out for books so great!
Wasn't abused at all!
:P
19:38
LOL!
@StatikStasis I'm pretty sure the right choice is to make it trivial easy to signup with another service as auth (e.g. github, gmail facebook whatever), and offload the problem of checking users to them.
> That doesn't feel anonymously though for the user
though
Given the context, "signing up" seems like a thing you want to avoid entirely.
@DaveRandom ping
They have asked that we provide an email field in case the person wants a response. I wonder how many we'll get who don't create a throw away email account... or create one like IHateMyBossMartin@gmail...
19:48
oh.....in that case, maybe look at what the guardian does: theguardian.com/help/ng-interactive/2017/mar/17/…
wow... that is quite elaborate.
tbh, this might be on of those things that if you don't know how to do it, you should find someone who knows what the edge-cases are, as they will be more important than the 'happy path' of users.
It's not that I "can't" do it... I just don't want to do something that elaborate. I think I will try Google's recaptcha for now.
It's been a while since I did a form submission outside of access control... I think last time I did Akismet- a looooong time ago.
20:06
How about 2fa with GA?
@StatikStasis have a look at machform
@IMSoP Really appreciate your comments on internals
(Not just on named params in particular, but in general)
oh, thanks
@NikiC In case you have time to look into a generator related segfault (only on PHP 7.3): github.com/amphp/sync/pull/15/commits/…
I haven't been able yet to reduce it to a minimal example.
@NikiC I tried something which is possibly dumb... github.com/php/php-src/pull/5534
20:16
I'm working on my editing skills, as I realise some people find my messages tl;dr
It can be triggered using ./vendor/bin/phpunit --debug test/ConcurrentMapTest.php --filter PartialConsume.
@kelunik I'll try it tomorrow
@StatikStasis it'll probably be fine, but I reserve the right to make comparisons to "meh, md5 is good enough for storing passwords" to you, in the future.
@NikiC thanks
21:03
Any thoughts of making a Collection class iterable using SPL? Example: https://3v4l.org/Ugj9e

My only reason for using a Collection instead of an array is that I don't want to do type check every time I use it in the code
It bogs me that I can't cast it to an ( array ), though
My second option is to add a get method that returns the actual array and use that: 3v4l.org/XeoNM
@LucasBustamante out of interest, why do you prefer casting to a a function call?
@Danack I just didn't remember about iterator_to_array until 15 seconds ago. That's why I was casting.
Or adding the get method to return the array.
Ah, I see.
I'll probably use that whenever I need type-hinted arrays, and will go with SPL if I need to manipulate the collection in more complex ways.
I kind of do also, but can't express why there should be any difference.
> type-hinted
parameter types, return types, property types...PHP is better than languages where they are just hints.
21:17
They're hints in the same way that someone goes "take the hint, beyatch" then punches you in the face
With an exceptionally powerful punch... geddit... because they're exceptions
problem is, that I'm bound to 5.6... I can't use return types :`(
Dude, if you're bound to 5.6 you need to find a different job
It's painful, yes, but manageable
WordPress plugins.
A colleague of mine built a Dependency Injeciton Container for PHP 5.2
And it's pretty damn good: github.com/lucatume/di52
Not that I'm defending old PHP versions or anything. But, it's manageable...
Closing here to focus. See you guys!
22:04
@Danack lol, deal.
I think 2fa is great choice if security is on first place. If not so, then md5 is 'nuf like Danack says. :P
Good night people.
22:50
@NikiC your Named Parameters RFC in its current version is a joy to read :D
00:00 - 23:0023:00 - 00:00

« first day (3490 days earlier)      last day (1683 days later) »