« first day (4169 days earlier)      last day (793 days later) » 

12:04 AM
@SaifEddinGmati LOL... yeah, not in the spirit of what should be next.
Why is a colon bringing up < instead of ;
 
🤷‍♂️
 
 
3 hours later…
2:44 AM
trying to do basic auth with guzzlehttp client, I pass the username and password under 'auth' array key, but the server sends a 401 response with "The JWT string must have two dots" as the message... I think I've encountered this once before but I don't remember the fix :/ I'm almost positive I'm doing something ridiculous, but I can't figure out what
public static function createFromCredentials(
    string $clientId,
    string $clientSecret,
    string $baseUri = 'http://localhost/v1/' // for now
): Client
{
    return new Client(new HttpClient([
        'base_uri' => $baseUri,
        'auth' => [
            'username' => $clientId,
            'password' => $clientSecret,
        ]
    ]));
}
if I CURL with the username:password, it works as expected
ah, I did get this error message before, but I wasn't intending to use basic auth at the time, however I am this time
 
 
5 hours later…
8:15 AM
@Tiffany you don't use keys when setting standard name/password for guzzle, it's just RequestOptions::AUTH => [$clientId, $clientSecret]
 
 
3 hours later…
10:49 AM
Do we have a "meta" PHP 8.2 deprecation RFC yet? SoapClient::__call() should go on that list if we have
 
 
2 hours later…
1:18 PM
@MarkR this is the httpclient though, not request
request is done in another part of the application
 
I wished Go's maps preserved insertion order, just like PHP's arrays.
 
Hi All PHP Devs. Have a good day. I just wanted to checkin here to say Hi to you all. PHP and Laravel is so cool. I hope you all enjoy using them.
 
What was the comment ot disable an inspection in PHPStorm ?
/** @noinspect */ something like that, can't remember
 
@Girgias the manual already labels it deprecated; not sure on what basis
 
@IMSoP Yeah but it's not in php-src, the reason I know about this is because I was doing some QA stuff for the manual :)
 
1:34 PM
not entirely sure I agree to remove, though; we have a few objects with dummy magic methods like __toString which aren't strictly necessary, but users expect to be there
is the problem really that magic methods in general shouldn't be called directly?
 
Sure, but if the manual marks it as deprecated is should either be deprecated in php-src or not marked as such
It feels like __soapCall is superior to that, although not a magic method
But I don't know much about SOAP so
 
Man this has been deprecated for a while ._.
 
I'd be not too unhappy of soap gets tossed out alltogether...
 
cmb
1:54 PM
SoapClient::__call is not deprecated; only calling it directly is deprecated (like any other ::__call() methods)
 
@Tiffany figured out the problem
 
How safe is it to access a zval's type after it has been zval_ptr_dtor()'ed?
looks like it "works", but is it by chance or by design?
 
@cmb The phrasing is pretty weird then, do we have this on any other manual page?
 
@PatrickAllaert "use-after-free" ? ;)
 
@RemiCollet It's not really a use after free, if you don't access value
Or rather anything value points to
 
2:01 PM
If that memory is free()'ed, then, that's different
 
But yeah, still probably confusing at the very least.
 
thought only the underlying zend_string / hash / object would be destroyed free, but not the zval itself
 
zval_ptr_dtor() can free stuff, so no - you can't access its type safely after calling it
if it's important to know, just put it in a temp var before you call zval_ptr_dtor
 
I should have checked, thought it was not freeing... that clearly answers it!
thanks everyone!
 
cmb
@Girgias I don't think so (we don't have many __call functions in the manual, though). And I agree that the wording is weird; that should better be documented for _call() generally (if it isn't already).
 
2:05 PM
@cmb Well I suppose I can add to the todo list
 
 
4 hours later…
5:37 PM
hola amigos
 
6:18 PM
@bwoebi done, thanks for the callout
 
posted on March 16, 2022

posted on March 16, 2022

posted on March 16, 2022

 
7:02 PM
o/
 
 
2 hours later…
9:19 PM
Hi
 
 
1 hour later…
10:41 PM
@cmb Should this page be deleted? php.net/manual/en/solrdocument.construct.php
As it seems pretty pointless
 
10:54 PM
Actually just opened an issue on the pecl Solr issue tracker, seems the docs are in a pretty awful state
 

« first day (4169 days earlier)      last day (793 days later) »