« first day (3839 days earlier)      last day (1092 days later) » 

12:11 AM
@Crell I rebased
 
12:42 AM
posted on April 20, 2021

 
 
3 hours later…
3:23 AM
Ugh. Every time I have to do dependency management using pkg-config or cmake I learn more pitfalls about each, and as far as I can tell there really aren't any good solutions except to build exactly what you want out-of-tree (and notably omit anything you don't want, such as if you want static libs make sure there aren't dynamic libs present as well!), and then still do some praying.
 
 
5 hours later…
8:47 AM
o/
 
cmb
9:01 AM
Looks like bugsnet is down again; @Derick, could you please have a look?
Isn't the zend_string_copy/zend_string_release pair superfluous in heap.space/xref/php-src/ext/standard/… ?
 
9:32 AM
Restarted ugs
bugs*
 
9:47 AM
@cmb that whole block is strange
 
Wow, the commits of @NikiC are verified now! \o/ Then I think Dmitry is the last regular contributor who hasn't set signing up.
 
if (persistent) Z_STR_P(pz) = zend_string_dup(str, 1)
else zstr_copy
 
@MateKocsis They aren't :P
 
Ahh, you used GitHub's interface then :D
 
cmb
10:31 AM
@Derick thanks! It is still slow, but way better than before.
@JoeWatkins but that wouldn't intern the string, would it?
 
11:26 AM
@cmb no, but that's not what's required
GC_FLAGS(bdata->htab) & IS_ARRAY_PERSISTENT;
zend_new_interned_string does not ensure the string is persistently allocated, zend_new_interned_string can be set by anything
what is actually required is that the string is persistently allocated, because it's stored in that persistently allocated hash
I just had a look at the history of that function, in PHP5 it was very obviously meant to be persistently allocating everything
when it was upgraded for 7 it wasn't done properly and noticed in 7.3, when someone inserted the strange interning, probably because they weren't properly aware of the original requirements ...
that's when the block became strange, nobody with a clue did that ...
hahaha
 
@NikiC Mmm ok thanks
 
it was dmitry ...
whatever, it looks wrong to me ...
 
cmb
he may had OPcache in mind, only
 
> HASH_FLAG_PERSISTENT renamed into IS_ARRAY_PERSISTENT and moved into GC_FLAGS (to be consistent with IS_STR_PERSISTENT).
a month after that he realised there was a bug an decided to "Use interned strings for browscap files parsed at MINIT" to solve it ... wrong solution imo
 
12:17 PM
Morning
 
cmb
I agree, that code is super hackish, but I can't find any real issues there, and it's about browscap anyway …
 
12:29 PM
@cmb yeah ...
not really sure the ext is even necessary now ... github.com/browscap/browscap-php
browscap.org say they only officially support that php library ...
I've always thought of it as baggage we carry around for no good reason, I don't think I've ever seen it used ...
 
cmb
I'd never trust a UA string, but some may still use it, and thanks to Nikita the argument to drop it, is invalid.
 
12:44 PM
@FélixGagnon-Grenier I received my Novelkeys Cream Switches, switch film, lube, keycap puller, and switch puller yesterday.
 
1:32 PM
In Symfony how can you pass in any entity type in to a method?
 
@KerrialBeckettNewham for example ?
 
for example if you want to pass either a Product entity or a User entity, or any other any other entity into a method. The purpose is for keeping a file upload service decoupled from one specific entity.
 
You would use the correspondent doctrine repository to fetch the entity and pass it to the method that you need
still I don't think this is what you are refering to
in an ideal world you would have a service which has the repository injected into it and call that instead
 
@ln-s yes, that's what i'm doing, but I'm trying to dynamically inject it. but that's what I don't know how or even if you can do it.
 
If you want to "dynamically inject it" you need to define the service as synthetic="true"

You can also use <call method="whatever"></call>
 
1:49 PM
@ln-s I see, read the docs, doesn't give a very good example unless your injecting the entire container. lol symfony.com/doc/current/service_container/…
public function save(string $filename, $entity)
{
$file = $this->fileRepository->create($filename);
$this->dynamicllyInjectedRepository->create($entity, $file);
}
 
@cmb now that I look at that patch in context, it wasn't broken ... but other rationales exist, such as the userland implementation is probably more widely used because of the cache support it has, it will never have that kind of feature internally ...
 
@KerrialBeckettNewham
class ProductService { public function __construct(Repo1 $r1, Repo2 $r2) { ... } public function saveProduct(string $file, Product $p) { $this->repo1->create($filename); $this->repo2->create($entity, $file);
 
2:04 PM
> true/false values for features such as frames, JavaScript, and cookies; and so forth.
Is there a browser that exists that doesn't? It seems a bit antiquated. Are there metrics of it in use?
 
@ln-s That's pretty much what I have.
 
cmb
@MarkR nice examples, especially the cookies; browscap won't detect whether these are disabled, wouldn't it
 
Well the php.net/manual/en/function.get-browser.php page goes on to say that cookies have to be tested. The information it provides just looks to be of little to no benefit... I mean the examples include support for vbscript and 16 bit windows..
 
@ln-s Seems better to inject the entitiyManager and then get the desired Repository.
 
if you don't have the repository as a service, sure
 
cmb
2:19 PM
@MarkR that info is provided by the browscap.ini file used; they can provide any info the want :)
 
@cmb I'd be interested to know how many installs ship with it. I just downloaded the lastest php_browsercap file and it's almost 20mb
 
Then if you do, inject the repository
 
cmb
@MarkR the full_php_browscap.ini is almost 100MiB ;)
 
Inserting the entity manager is the data layer equivalent of using the service container and fetching a service from there
 
2:23 PM
@ln-s I can't because I don't know which one it will be.. or what just inject all that it could be?
 
then it's likely that you have an architectural problem or you are over engineering, think about it a bit more, it always helps
 
@ln-s not really, it's very simple. just trying to decouple.
 
@cmb That one managed to crash notepad++ :| Do we have any usage metrics vs userland? Personally I use WhichBrowser for my detection.
 
cmb
I don't think we have any usage metrics at all. Packagist download numbers are potentially irrelevant, since the package might be distributed as Wordpress plugin or such.
OTOH, we might add telemetry to php-src; most users would certainly be happy about that. :p
 
@cmb I think we should also start doing A/B testing
 
cmb
2:29 PM
lol
 
If we're not sure how a function should work, we'll give you one behavior 50% of the time, otherwise the other. We can then evaluate bug reports to determine which one is more popular.
6
 
genius
 
@cmb I strongly suspect a good chunk of people would be willing to allow a trusted script to run a code audit and report back metrics on usage (provided the source code itself wasn't uploaded anywhere else). Push it through the usual social avenues and php.net and might be able to yield tens of thousands of responses over a year.
 
@NikiC Only in the open source version please.
 
I assume such a script could be distributed as a composer dev package and run via vendor/bin
 
 
1 hour later…
3:43 PM
@StatikStasis hope you can still walk ok
 
4:23 PM
@NikiC So I'm trying to use arg_num 0, but I'm getting back double deprecation notices in same cases, and in others ones they just disappear (in reference to github.com/php/php-src/pull/6661/files#r616794445) are there any other places where arg_num=0 is used which can trip this behaviour?
Okay, I fixed the double notices (because I was doing something really dumb)
Oh I don't think we can actually use 0, because it's also used by zend_verify_weak_scalar_type_hint() which should have a side effect
 
4:38 PM
func_get_args() didnt work when using named args ・ *General Issues ・ #80971
 
@Jeeves appears like it's only an issue with variadics: 3v4l.org/ZVR2L bugs.php.net/bug.php?id=80387 seems marginally related
not sure if that's a bug though... seems "working as intended"
 
5:21 PM
@beberlei do you have a working link to windows dlls for xhprof for me?
 
5:32 PM
@FélixGagnon-Grenier lol... took me a second.
@PeeHaa o/
 
Hola sire! o/
 
Hola Peter
 
\o
 
What's for lunch
 
5:51 PM
I had Chicken Shawarma
 
Damn. I want need shawarma so bad too
 
Poptarts
 
6:08 PM
\o
oh man I want a doner now
 
Memory exhaustion on invalid string offset ・ Scripting Engine problem ・ #80972
 
6:49 PM
@PeeHaa It was delicious! =D
 
7:27 PM
CHeezits!
 
@PeeHaa The sweet delicacies are as addictive as cocaine baklava and such
 
:P
 
I enjoy raw kibbeh more rather than shawarma
Shishkebab also a good choice
Not a fan of Fatay tbh
@FélixGagnon-Grenier Which organ do you need?
 
7:47 PM
@ln-s shame, I just rolled one
 
8:15 PM
I haven't had Shwarma. What's it taste like?
 
@ln-s :P I'll probably need a liver in all honesty
 
If you use the checked Attribute for a radio button does it never become unchecked if you have another radio button with the same name?
 
8:31 PM
no, I would presume it would not never become unchecked, and just act normally.
 
@FélixGagnon-Grenier Not never?
 
You ask if it never becomes unchecked, being "stuck" in a way, correct?
 
Yes
Its stuck as checked. So when I check the other radio button. They are both checked
 
well, it seems I presumed wrongly. I don't know why they would both be checked at the same time. I'd make triple sure they actually have the same name.
 
@JukEboX jsfiddle/jsbin or didn't happen
 
8:39 PM
@PeeHaa have it on my offline system.Copy and paste would is a pain
I will see what I cna do
 
That just works as expected?
 
So the weird part is
When loading it with IE
the Yes radio is checked on load
and if you check No they are both checked
So no. It is expected that the $data is currently set to Yes. But if I wnat to change it to No, and I check it they are both selected.
 
It works fine for me even in IE
 
/facepalm
 
omg I'm sooooo dumb. this is an actual non-ironic function past me wrote a few years ago:
function createElement(tag) {
    return document.createElement(tag);
}
holy mother of enterprising that was visionary
 
9:00 PM
No wonder you moved to the JS side of programming
 
I'll take that as a compliment ;)
 
Sure
:P
 
:P nah I just don't understand the diss vOv
like, so dumb I moved to j oh
 
@PeeHaa it is broken for both Edge and IE
@PeeHaa AAAAA I found it.
There was a big piece of dust on my screen and it was making it look like there was a ' after the first LockDown. To mee it looked like this name='LockDown' but reality it was name='LockDown
:D
 
bruh do you even inspect?
 
9:04 PM
Friendly reminder to all my friends here today. Clean your monitors LOL
 
@FélixGagnon-Grenier leftpad?
 
I don't know what you are talking about stares blankly
 
I assume you created a package out of it, as all your kind does that
 
hah! sadly no :P
@PeeHaa omg, imagine that lmao
 
/me checks npm
 
9:06 PM
an actual npm package that exposes a single createElement function that's literally document.createElement
 
@toolkip/create-elements
Am afraid to click now
 
I am afraid to even google it
gods
 
:D
 
it seems to be part of something like a framework npmjs.com/~kip_price
 
Screw react
KIP is where it's at!
 
9:21 PM
is that youth speak for UKIP?
chill out geert
 
lol
Adapt or fuck off Dave
 
I am increasingly wishing I had chosen the latter before we reached this point :-/
 
You should've
Don't think it's getting any better any time soon
 
that help tnx
:-P x
 
Still. You are not stuck in turkmenistan :D
 
9:24 PM
wouldn't mind some turkmen
 
yw
 
hmm
fine lads you got there
 
For a country that hates gays they are pretty fucking gay
 
tassle of dude on the left really looks like he is pissing
 
Aye
Hot rite?
 
9:26 PM
*wright
 
50% wright
@PeeHaa that's right, svelteJS is where it's at
 
That is still sooo much on my list to try
It looks like a sane JS thing, if that is a thing
 
Consider yourself encouraged to try it
@PeeHaa it feels like it a lot too
also the tutorial is excellent
 
@PeeHaa lies.
tho also if that turns out to be true please inform me immediately
I still think in jQ :-(
 
9:29 PM
no I think in JS, I think DOM shortcuts in jQ
 
@DaveRandom I have a nice DOM shortcut for you that will change your life
 
@DaveRandom I don't think they're really needed anymore
 
30 mins ago, by Félix Gagnon-Grenier
function createElement(tag) {
    return document.createElement(tag);
}
 
E_FRONTEND
tho I could really do with getting some of those skills back I really need to make one of those pretend web mobile app things
 
9:31 PM
Are you entertaining the idea of getting back into PHP at some time again @DaveRandom?
 
lol even just saying those words I feel like an octegenarian
@PeeHaa I still use it as my default scripting language, the question is more whether I am planning to get back into writing code for a living
 
Yes that was the question
 
and right now the answer is no, I need to go places and do stuff and interact with people
but not in a management role
I like making things do stuff, I do not like sitting in the same place looking at a screen 8hrs/day
 
Alrighty
 
like === can tollerate life when doing
as it turns out :-P
 
9:34 PM
Fair enough
 
I do wanna make some stuff but I don't have the patience (yet)
at some point I suspect I will fall down a hole and do a 20-man team's job for a few months, because (also, apparently) I have very little self discipline :-P
 
Well... we are always growing so do ping us when you find the patience
You will have to deal with ekin, fab and me though :P
Two of those are fine I get it
 
if you are ever looking for a network engineer who actually understand the entire stack (but is not full-stack) then hit me up :-P
a network engineer who understands what the devs are actually trying to achieve...
I also keep a brutally efficient RDBMS stack but I don't really wanna do that either :-P
 
We have JSON in fields in MySQL 5!
 
that's super trendy
 
9:39 PM
tbf I thinK I am probably better placed in end-user network architect stuff, which is what I have been doing a lot of lately
 
aren't they even like, writing sql tools to interact with json in fields nowadays?
 
@DaveRandom Still not bored with that?
 
I get to build crazy things and solve crazy problems with no resources, but I also get to go places still and occasionally sleep til 11
 
@DaveRandom I sleep til 17:00 :P
@FélixGagnon-Grenier MySQL 5
 
daylight tho :-/
 
9:41 PM
I don't think you realized the gravity of the situation @FélixGagnon-Grenier :D
@DaveRandom daywaht?
 
yeh that ends in rehab for me :-P
 
@PeeHaa hmmm possibly ;)
 
I'm not great at keeping myself alive when things are going fine, I was told the other day by a doctor that he was close to admitting me to hospital for dehydration when I went just for prescription and had not been been drinking the day before, just forgot to drink water for like a week
 
@PeeHaa Analyzed a Java heap dump today, about 1GB of heap space is wasted for about 4 string values, because we use JSON with a Map<String, X> instead of an enum as map key. :D
 
We have issues, but at least we do not have Java issues
:D
 
9:45 PM
@kelunik ooooof I just implemented some JSON in Java using Map<String, ?>
 
@CharlesSprayberry We also do that often, but these are kept in memory and the values are neither deduplicated nor interned, because they're read from the database. If keys are a small set of possible values, we usually use enums for that.
I think there's another big chunk of empty string instances, but that's for tomorrow, only added deduplication to a single place for now.
 
@kelunik I see. I've only just been getting back into Java over the last month so been tripped up a couple times and when I read that I was like "Oh shit" :P
 
 
1 hour later…
11:04 PM
@PeeHaa it gets better :
function findParentByClass(elem, target) {
    while (elem = elem.parentNode) {
        if (elem.classList === undefined) {
            continue;
        }
        if (elem.classList.contains(target)) {
            return elem;
        }
    }
    return false;
}
 
Oh I have totes been there
 
Anyone else experience this font glitch on php.net? i.imgur.com/HfhLyuB.png
Double-fs get smushed together
 
cmb
IMO, ligatures are generally fine, but that "ffi" should better be marked up (maybe <literal>ffi</literal>).
 
11:23 PM
@cmb it's an RFC, for fflush but fflush should be, yeah
 
@cmb you noticed any issues running PHP8.0.3 phpdbg and phpunit by any chance on Windows? Our tests are going over the mem limit
Also segfaults on alpine fwiw
 
yeah. alpine is segfaulting if I run our test suite on phpdbg and all is fine when directly running phpunit
which is consistent with how it is on windows
Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in D:\...\vendor\nikic\php-parser\lib\PhpParser\Parser\Php7.php on line 1571
 
cmb
@Tiffany ah! I think DokuWiki wants ''ffi'' there.
 
cmb
Depends on the browser and settings. Marking up "ffi" as literal (somehow) still makes sense on its own, and should avoid these issues.
@PeeHaa nope, didn't try that. :|
 
11:31 PM
@cmb but it's ffl, not ffi
 
:-(
 
cmb
@Tiffany ah, right, this looks like a browser issue then
@PeeHaa if you're using phpdbg as coverage provider, can't you switch to pcov or Xdebug?
 
yeah, I'll try pcov tomorrow. It's been on my list for a while anyway
 

« first day (3839 days earlier)      last day (1092 days later) »