« first day (3176 days earlier)      last day (1776 days later) » 

12:00 AM
Still cast the strings to integers undermines the purpose of the whole RFC
 
i agree
who complained?
 
Let me see
Christian Schneider
Benjamin Morel
Claude Pache
Rowan Collins
Alain D D Williams
 
okay... no names I recognise
 
Plus @NikiC said here in the chat that he agrees with the sentiment :`-(
 
I am going to need to think about this - tomorrow.
It's snooze time.
 
12:04 AM
Thnx ttyl
 
 
1 hour later…
1:20 AM
@StatikStasis Awesome!!!! Congrats! Glad to hear it!
 
 
3 hours later…
4:07 AM
morning roomies.
 
I have an internal abstract class with a final method that I want to extend/replace in an internal implementation of it. ie. override a final method. Can be done?
Maybe just swap out in the functions table?
 
5:15 AM
Good morning
 
 
2 hours later…
6:52 AM
morns
@StatikStasis congrats!
 
@Danack saw you promoting dmores chromedriver. Do you work a lot with that? Do you experience random white pages too?
chrome stops working randomly without selenium in the headless mode and i have to reastart on StreamReadException
 
7:15 AM
moin
 
7:25 AM
moin
alpha2 is out already :-)
 
7:51 AM
good moaning
 
\o
 
acquisitive strongly desirous of acquiring and possessing
 
@NikiC it appears there is a whole page about the gep instruction's confusion
 
8:28 AM
@NikiC I changed commit karma yesterday afternoon and git.php.net doesn't seem to have the change (it's still rejecting my commit). Can you have a look to see if the syncing is broken?
 
8:46 AM
morning
Did someone had an issue with CSV format and leading `\` at the end of a column? How to properly escape it?
 
cmb
8:57 AM
@bruchzal, the $escape parameter is broken. Set it to "\0", or better to "" as of PHP 7.4.0.
 
@cmb but how should it work if I wanna implement CSV encoding by muself?
The RFC I found doesn't mention about escaping at all tools.ietf.org/html/rfc4180
"some text \","2019-06-27 11:00:00"
 
cmb
CSV doesn't know about escaping at all. It only knows enclosures, i.e. a field is enclosed in double-quotes. If a double-quote is part of field value, it has to be doubled.
 
For this example how should the last `\` be escaped?
 
cmb
Not at all. Example is correct.
 
Exactly that's what this RFC says
Oh crap. So this means I cannot read it with native PHP fgetcsv either withing League CSV Reader, cause they both give me a whole line as a one column value :(
 
cmb
9:03 AM
You can read with fgetcsv($stream, 0, ',', '"', "\0")
 
@cmb It worked, thanks a lot
 
 
1 hour later…
10:16 AM
Hey @MadaraUchiha, you around?
You recommended me to watch FMA:B and code geass a while back, I have watched both of those and they were pretty awesome, do you have any new recommendation for me? I am currently watching Gintama, I am near the end, and am looking for new shows to watch.
 
10:55 AM
Hey Guys!
I'm in database problem, two tables in the database need to check duplicate records from one table to another table if found then delete. Query working fine, But the problem occurred when T1 has more than 100k records. Indexing already is done on all column s that are used in the condition.
 
@er.irfankhan11 so what is "the problem"
 
11:10 AM
@Sjon Taking too much time, at the internal server error
Qry is:
DELETE supply
FROM drd_time_series_supply supply
join drd_temp_import_time_series fleet
ON
fleet.source = supply.source
AND fleet.sector_name = supply.sector_name
AND fleet.size_range = supply.size_range
AND fleet.data_type_name = supply.data_type_name
AND fleet.segment_name = supply.segment_name
AND fleet.official_data_flag = supply.official_data_flag
AND date_format(fleet.date, '%Y-%m') = date_format(supply.date, '%Y-%m')
 
5 messages moved to Trash
 
@DaveRandom You must supply a valid message ID to repin
 
wat
 
@er.irfankhan11 how do you execute the query - using a console or using a web-application? What db-server do you use?
 
11:25 AM
@Sjon using web-application
 
12:03 PM
@mega6382 One Punch Man
 
@MadaraUchiha oh, am already watching that as well, watched the latest episode last night. :)
 
:D
Ask me later today, I'm a bit busy at work ATM
 
no problem
will ping you in 6 hours
 
o/
 
!!rfcs
 
that wouldn't help anyway
 
hmmm
 
it would just repin specifically that message, not update the current RFCs
I think the JSON data is probably corrupted in some way, I'll have a look in a bit
 
makes sense
 
3 messages moved to Trash
 
12:16 PM
@user3655829 I've used it a reasonable amount, but not huge amounts. But not had that happen.
 
12:26 PM
o/
 
12:38 PM
Can't save to file system outside of project folder – #78220
 
12:52 PM
Do you guys have a name suggestion for positive (result) messages? I'm trying to categorize some messages (in PHP and CSS). From worse to better, I've got errors, warnings (, notices), and (something positive?).
 
I just use 'success' mostly.
 
Wes
guys, what do we think about this
 
And I also use 'info' as the neutral one.
@Wes pretty sure Jimbo is mostly learning Go to troll those zealots.
 
Wes
lol
 
"success" was also the first thing popped in my head. Wanted to check for alternatives anyway :)
Would it make sense to use "notice" as base, and extend it with others? For example, ".notice.error", ".notice.success", and just ".notice" for a neutral one.
 
1:03 PM
No. Inheritance just makes stuff like that more complicated. Avoid it wherever possible for CSS.
 
1:14 PM
@NikiC tried again
 
In a near future: What server do you use in prod? - Oh, just the cli server with 20 workers. Nooooooooooooooooooooooooooooooooooooooooooo :P
I'm joking but what's the motivation for this?
 
testing, anything to do with the cli-server is motivated by testing ...
a huge portion of the code in opcache is not really tested, because we're incapable of starting testing servers that actually share code ...
 
to use it for run-tests in parallel?
ahh ok ok
 
hopefully we can keep it a secret, I am scared by the thought of people using it ...
the cli won't tell anyone about PHP_CLI_SERVER_WORKERS and nor will I ...
 
;)
 
1:23 PM
@JoeWatkins I'm pretty sure lots of people will want that ;)
I heard people asking about this a few times
 
I think, I have vague memories of arguing against it myself ...
 
cmb
The big problem with the current CLI server is that it blocks if a script requests another URL. Would really be nice to solve this. :)
 
well that's solved, but I can't do it for windows ... no idea how that works ...
it's really not good code, I argued against it before because it was requested as a user facing feature, a thing that developers use while developing php code, and that doesn't make sense to me, the sole purpose of the thing is to test internals and it's only just good enough for that ...
there must be edge cases in the event loop that are not handled properly or something, socket errors are in the region of thousands when you try to push it hard with wrk ...
 
Getting very close to a clean asan build...
 
excellent, did you test the tsrm patch yet ? I've not been able to reproduce that particular bug on nevis, so not much point in trying to test it there ... I only see it on azure, and only sometimes ...
although I'm pretty certain it's sound, we could maybe just get anatol to look it over and push it ...
 
1:37 PM
@JoeWatkins sorry haven't looked at that patch yet
 
cool, I doubt anyone is going to jump at the chance to review tsrm stuff :)
 
1:51 PM
Hello PHP devs!
 
lolol
PHP one still exists in England :)
Although I've reserved two: MAJ 418 (my initials backwards) and MGO 418. Either way I'm a teapot is prevalent.
 
2:08 PM
P155 0FF
that's what you want
 
Wes
damn i would love a custom license plate
 
W4NK3R maybe
PWN3R
 
Wes
MGK QTS
 
Only just over a tenner in Germany of all places
in UK it depends but typically 25 or 40 quid if I remember correctly
 
Wes
RGS GLB
 
2:12 PM
@DaveRandom B1T4H
 
@NikiC this is not going to leak? github.com/php/php-src/commit/…
 
@bwoebi That structure gets freed, so that might have been uaf before?
 
@NikiC the struct, yes, its members, no
you ought to free yourself what you're feeding into SG(request_info)
 
@bwoebi I mean phpdbg frees it
 
2:30 PM
@NikiC well, phpdbg does some bullshit there
 
phpdbg runs on bullshit
I especially like the strategically used segfaults ;)
 
hrefs must have final point (.) ?
 
@NikiC but it anyway will leak the previous value.
 
@bwoebi true
 
Like "Click for more." or "Click for more"?
What's the correct way?
 
2:35 PM
Morngins
 
o/
 
"Click for more‽"
 
3:36 PM
@JoeWatkins What's the waitpid part for?
 
waiting for the pid, surely
@Jasny-ArnoldDaniels Would you like to chat about the strict RFC that you've made for the podcast?
... why does it autocomplete, but then not link?
 
@JoeWatkins Or maybe, the better question would be how that interacts with sigint?
 
I'm so stupid.
 
@NikiC this is possibly a stupid question(, or rather I'd like to understand the problem better, so I avoid avoidable problems) - why does FastRoute have it's own syntax for regular expressions rather than just using PCRE?
 
0/ If I wanted an internal class to have an empty array public property, should I zend_declare_property_null() in MINIT and then in the PHP_METHOD(MyClass, __construct) definition, init an array zval and set it via zend_update_property(). Does that sound about right? :)
 
3:46 PM
@NikiC @bwoebi If you scroll to the bottom of this build, you'll see many errors saying "PHP Notice: Undefined property: Amp\Coroutine::$watcher in /home/vsts/work/1/s/vendor/amphp/amp/lib/Loop/Internal/TimerQueue.php on line 46", which is impossible.
TimerQueue can only have an instance of TimerQueueEntry there. Any idea how in the world that could be happening? The error is eventually followed by a segfault, so I assume some memory is getting shuffled around somehow.
According to the author of that code, the error only happens occasionally.
 
@Danack it isn't, is it? It adds some things on top of PCRE (like variable extraction), but in general it is PCRE, no?
 
@ircmaxell right
 
yeah, mostly the same - so was asking what the problem was that required the slight differences, rather than blundering along and having to encounter them myself for another project that needs to be able to define paths and which bits of them should be extracted for use as variables.
 
because {id:\d+} looks way nicer (?P<id>\d+)
%x IN_SCRIPTING DOUBLE_QUOTES BACKTICKS HEREDOC VAR_OFFSET LOOKING_FOR_PROPERTY LOOKING_FOR_VARNAME

%option stack

SCRIPT_OPEN_TAG    script[ \n\r\t]+language[ \n\r\t]*=[ \n\r\t]*(?:php|"php"|\'php\')[ \n\r\t]*>

%%

"<?=" {
	BEGIN(IN_SCRIPTING);
	return T_OPEN_TAG_WITH_ECHO;
	}

"<"\?php(?:\r\n|[ \t\r\n]) {
	BEGIN(IN_SCRIPTING);
	return T_OPEN_TAG;
	}

"<"{SCRIPT_OPEN_TAG}  {
	BEGIN(IN_SCRIPTING);
	return T_OPEN_TAG;
	}

[^<]*(?:<(?!\?=|\?php[ \t\r\n]|{SCRIPT_OPEN_TAG})[^<]*)*  return T_INLINE_HTML;
 
Nowadays probably mainly that
 
3:53 PM
getting there :)
 
Proper named groups also have issues with duplicates
I'm not even sure if it would work nowadays...
Possibly a combination of MARKs in a capture reset group together with dupnames would work fine
 
@ircmaxell What... the fuck? :P
 
I'd have to double check what the limitations are regarding duplicate subpattern names in capture reset groups
 
@PeeHaa building a (f)lex compatible frontend for github.com/nikic/Phlexy/blob/master/examples/…
 
@Trowski Yeah, the issue most probably already happens before the initial notice
 
3:58 PM
@ircmaxell Thanks. Now I have a headache :D
 
@bwoebi Apparently it's always that exact same result – a Coroutine object in that data array. Bilge has tried to make a reproducer, but so far no luck.
 
my goal, is to have a reasonably opinionated lexer/parser generator out of this (using php-yacc), so that you can pretty easily generate custom parsers and lexers given only a .y and a .l file (automating the rest, including token management, lexer and token wiring, etc)
 
Wes
@FélixGagnon-Grenier cjss.js.org
 
4:15 PM
@Trowski how do I actually run that testsuite properly locally?
(the whole thing)
 
4:29 PM
Any suggestions re: overriding a final method internally?
https://chat.stackoverflow.com/transcript/message/46610422#46610422
 
4:42 PM
@Wes hahahaha omg this is amazing
gods
 
Wes
@rtheunissen remove the final flag, add the new method, re-add the final flag, imho
but i know nothing
but i'd advise you not doing that
i hate very php fuckery like final or internal interfaces
like DateTimeInterface that is
 
5:09 PM
@Danack Turns out php intl wasn't supported for our old Ubuntu version. We're updating though.
 
@Wes it would be transparent to the user, but avoid an unnecessary method call. Usually wouldn't matter but it's compareTo, which could be hot. Might try that.. though seems to easy haha
 
Wes
@rtheunissen i saw it done by joe i think, it's in UOPZ
 
5:35 PM
So guys, in our menu lists a bunch of "folders". Folders contain orders. The menu list of folders has a count next to it showing how many orders are inside the folder. Problem is this count on clients with LOTS of orders can be really slow. We can't cache the value because the counts need to be accurate as orders are always moving.

Any folder over 10k orders just shows 10k.

Any ideas how we can speed this count up?
 
@MadaraUchiha ping, do you have time now?
 
@Fabor move to a database system?
 
It is a count from the database. Folders is just the term I am using for the <li>'s
 
@Fabor Update count on write
@mega6382 Aye
What have you watched so far?
 
DBZ, DBS, Naruto, Naruto:Ship, Boruto(some episodes), Death Note, Code Geass, FMA:B, Gintama, OPM
hmmm, I believe that about covers it
 
5:51 PM
@Fabor store the orders in Redis?
 
@MadaraUchiha ^^
 
Like a summary?
 
If your data is changing that fast, and you need to query it accurately, having Redis as your primary storage for that data sounds appropriate.
But you could also try using it as a caching layer to begin with....but sounds like you have a difficult problem to solve in a traditional DB.
 
@mega6382 A certain magical index, and its sister series (which is better, in my opinion), A certain scientific railgun, are good
(They're more long-term though, like 6-7 seasons in total)
Overlord is also nice
 
@MadaraUchiha Cool, I'll give that a try, is this the one that you said is your favorite, in regards to superpowers to have? Cause I believe I wanted to watch that one.
 
6:05 PM
@Danack I see. Good input thanks.
 
6:38 PM
@JoeWatkins Any idea on this failure? dev.azure.com/phpazuredevops/PHP/_build/… Only with opcache and flaky...
 
6:54 PM
@mega6382 Yeah, it's not perfect, I have my issues with it. But the superpower system is top notch
 
awesome
 
7:55 PM
 
8:46 PM
anyway to knw staged file in Pstorm?
 
@Ghostff you mean like if a file is added to a git repo but not committed?
 
9:13 PM
@Tiffany yeah
both new and modified.
 
DOMNode::normalize() doesn't remove empty text nodes – #78221
 
9:31 PM
@Trowski I have some order of execution problem - I'd like to back up the state on a graceful shutdown before actually signaling a close to the client (so that it doesn't risk to be slightly out of sync when he falls back to another server...) but websockets don't allow me that right now :-/
it's just a display issue so that I can synchronize how much I already have displayed to the client, nothing I wish to store on every send
 
Wes
@Jeeves if i'm not wrong you don't even need the normalization for that
if an empty text node is the only child node then childNodes's length is 0
 
9:47 PM
@Ghostff file in green = staged/added to repo, file in a darker red = file different than repo, but not staged/added, I think there's also blue but I can't remember what it means
something like recently committed? but that doesn't seem right because the file name will turn black
 
@Tiffany example is ibb.co/CsWMxzv Helper is staged but still shows up with unstaged files
 
10:39 PM
@Ghostff I'm not sure with the dark theme, I use the light theme
I may end up changing to dark theme at some point ... but so used to light theme from usage at work
 
@NikiC i started with this chapter here: github.com/phpinternalsbook/PHP-Internals-Book/pull/71 is this something you would add? otherwise i would make it a blog post series or article on my site
 

« first day (3176 days earlier)      last day (1776 days later) »