@Derick That's a good question. amphp/http-server would have at least one fiber per request. In a testing environment I suppose there could be a few hundred. Are you just looking for an initial hashmap size?
Speaking of paranoia, I had the AZ vaccine a couple of days ago... the day after they pulled it from under 40s (i'm 35), then today they announced it could trigger nerve disorders \o/
@MarkR That's what I had for days when I got real-covid, the firs tshot of the AZ jab only give me a moderate fever and headache, but a sore arm for a week
People that had one shot, will get the second one. It's just recommended that under 40s get one of the other options due to a slightly higher risk of side-effects.
The risk of a clot is roughly one in 100,000 for people in their 40s, but rises to one in 60,000 for people in their 30s. Two in a million people in their 40s died rising to four per million people in their 30s. (bbc.co.uk/news/health-57021738)
I'm a work-from-home employee and my hobbies are low-risk; so it's not on my personal priorities at the moment. I don't want to take a sick day because of the shot -- at least due to what I know right now.
@Derick I can work if I'm sick since I work from home; that's not what I meant ^_^ I rather meant that quite a few people have severe enough reactions to the vaccine that it hinders their ability to work for a day or so, and I don't want that productivity loss right now.
@LeviMorrison But you're asking it in a way that because you've had covid and... saying that your hobbies are low risk, perhaps not low-risk enough? ... IMO you should still go get it, it really helps against the spread. And if you're worried about having to take a day off, get it on a Friday?
I got an invitation by text from: a hospital, my GP directly, and the NHS standard one. And also a letter from the NHS. I booked it ASAP at the hospital (2 hour walk)... and then find out that the local council does a walk-up-jab centre in a bus... parking 200 metres away from me :-)
There are local pharmacies that offer the vaccine too, but I wasn't sure how to go about scheduling through them. I ended up looking through my county's website and found an appointment scheduler there. Worth it for having it done on the weekend.
I read that the second dose involves a ~20% chance of severe side effects, but I've heard so many stories about 1-2 days of severe fatigue that it feels like 100%
Which, I guess, is why science is useful
("severe side effects" = "being really tired", not something more dangerous)
@JoeWatkins It's true. I got the virus once and thankfully lived. I was just asking if there is more information on how important it is for such people to get the vaccine, and not just guessing.
Back in March, I spoke on this forum with @Sara and @cmb about propagating the new AVIF support in gd into PHP's gd. I heard that there would be a feature freeze around June for potential 8.1 release.
> That’s because experts do not yet know how long you are protected from getting sick again after recovering from COVID-19. Even if you have already recovered from COVID-19, it is possible—although rare—that you could be infected with the virus that causes COVID-19 again.
So just guessing, which is a bit unfortunate, but oh well, it is what it is.
@Sara @JoeWatkins Have you done any session/call with the new RMs? I'd love to join if you are planning something, to refresh some of the process in place
@Sara Just received your email about web-php.git, thanks for the heads up!
That's what I have currently for the API, instead of class there's also method and function. However, such qualifiers really only make sense for instances, not for functions.
Well that and maybe squeezing out a bit more performance somehow
user15194958
hey sorry to disturb all of you could you please help to solve this I am really helpless from 3 days please please stackoverflow.com/questions/67440300/…
$context->rules()
->class(A::class)
->type(LoggerInterface::class, new TypeReference(FileLogger::class));
$context->rules()
->class(B::class)
->type(LoggerInterface::class, new TypeReference(ConsoleLogger::class));
Anyway, I noticed an issue with linking against a very old tidy version when I was playing with something last year, so I had to get an updated version and build it myself
@Crell I guess the primary reason for it to be an extension is to use all the work that's gone into libtidy, rather than waiting on someone to build all of it in PHP
@BruceOverflow do you need to mock it? it's part of the core language, you don't need to test how it behaves and it does not have any side effects, just give it a real one
you only need to mock things when you need to emulate the behaviour of the real thing, in this case the real thing is predictable and harmless
n.b. you should probably not listen to my opinions about testing anything :-P
yeh not sure what day it is in japan, maybe Saturday sake by now
there is a classic english pun around sake and "sarccy" (slang for sarcastic), I have never heard a good version of it but I really feel like it has legs (maybe that's why it's a classic tho still unfunny so far)
Also note: this is exactly why I've been advocating for no dynamic memory allocation after process startup in my extension; it's just too hard to track certain issues. I've reduce the number of lines of code that do allocations in my own code to one, which has to cross thread boundaries, so for now I bit the bullet. But the libraries I call don't have the same philosophy.
To a degree, but if you design all the APIs to be fail-able it's not so bad to return errors up from lower levels so the higher-level app logic can decide what it should do with the failure.
I think most extensions should use PHP MM for what memory they need. Just certain kinds, such as zend_extension-y types, should do the exact opposite ^_^
For instance, a PHP memory profiler will need to allocate its own memory, and it should definitely not touch the state of the PHP MM; that would tamper with the state it's profiling.