« first day (3783 days earlier)      last day (1151 days later) » 

12:12 AM
I would hope people are responsible and don't go unless they've had it or had the vaccine (and waited the requisite periods, ofc). Is that too much faith in people?
 
PHP crash using JIT ・ JIT ・ #80786
 
@Jeeves And another! Surprised we haven't seen more, honestly.
 
12:49 AM
@LeviMorrison I suspect people waited a couple of patch releases before moving to PHP 8.0
And now people are trying the JIT
 
 
2 hours later…
2:19 AM
renameat2 / RENAME_EXCHANGE ・ POSIX related ・ #80787
 
 
4 hours later…
6:24 AM
Good morning.
 
6:54 AM
__unserialize type hinting conflict with ArrayObject::unserialize ・ SPL related ・ #80788
 
7:35 AM
morns
 
7:58 AM
posted on February 16, 2021

posted on February 23, 2021

 
Wes
hey everybody. how are you folks?
 
business as usual here
 
Wes
\o covid outlook good? vaccines working?
 
8:14 AM
most things are still closed here and we still have a curfew. It is starting to become a bigger nuisance for me. What about you?
 
I'm happy in my home cocoon. As long as I got good food, family, internet and some movies, I am fine. And I can work from home.
 
Wes
same for me, mostly because i get way less work. actually considering alternative careers rn
or rather resuming things i abandoned in the past, like graphics
 
right. I remember your elesquids.
 
9:24 AM
@LeviMorrison at least that was a simple one...
 
 
1 hour later…
10:37 AM
Morning
@Gordon I wish I could work from home.
@Wes o/
@Wes You do really good in graphics!
 
@StatikStasis \o/ Awesome
 
\o/
@PeeHaa You've been recluse.
 
I have been cut off from the civilized world for a week
:)
 
Congrats!
 
We did a snow vacation
 
10:44 AM
nice!
WB
 
Thanks! And yes nice indeed
Was super chill
 
Skiing?
 
Mostly just playing in snow with dog and Ekin :D
 
I was hoping for one really good snow here before Winter was over, but it does not seem to be in the cards.
 
We got super lucky. We were actually going there way earlier, but decided to postpone a couple weeks to have a better chance in actual snow
We arrived at the place in the middle of a blizzard
 
10:47 AM
Did you stay somewhere with a fireplace?
Nothing like being snowed in with a nice fireplace. Me and the wife are looking for a new house at the moment and that is one of the items on our want list, along with a bigger bonus room for streaming and music.
 
Nope our villa sadly didn't have a fireplace
But they had a husky puppy for Root to play with so that was pretty sweet
 
11:20 AM
Is there a flag to turn on concurrency in the built-in webserver or is that automatic?
 
@Derick PHP_CLI_SERVER_WORKERS
 
what's the default?
 
@Derick no workers
 
thanks
 
can i ask why the mysqli reporting change is acceptable for so many for 8.1?
yes the fix is a one liner, but its not that the code breaks, you wil only see that its broken when you get to an error somewhere deep in your code potentially
 
11:31 AM
Yeah, hence I voted no
too little gain for too much pain
 
Return type includes false ・ PDO Core ・ #80789
 
11:46 AM
Speaking of vacations, @NikiC do you ever take vacations? You seem to work on PHP night and day. =P
 
PDO ODBC cannot insert BLOB records to Oracle database ・ PDO ODBC ・ #80790
 
12:07 PM
@beberlei IMHO Error reporting is PHP's biggest weakness right now. Anything we can reasonably do to to tighten it up and bring about more consistency is a good thing that will pay dividends for years. Waiting potentially 4 or 5 years to make such changes on 9.0 is a false economy when previous behaviour can easily be opted into.
 
it breaks all mysqli example code out there that does explain error handling in a minor version and gives no warning to users. database related error handling is often very fine tuned for testing for specific error codes and handling them differently. I don't see how consistency wins in this argument over breaking good code
yes as a PHP newbie i lost a lot of time forgetting to test for mysql_error() after mysql_query()
i think on this RFC idea is great, execution is bad
 
How would you execute it differently?
Personally I would be receptive to deprecating calling mysqli functions without setting an error reporting mechanism, but waiting until a major to make the actual change is too long imo. Maybe deprecate in 8.1 and change in 8.2
 
12:42 PM
yes we could store on the connection if the reporting was explicitly set and send a deprecatoin message if a query gts executed without explicitly setting reporting before. could also add report as a new argument to constructor and send deprecation if not explicitly set. i am fine with 8.1 deprecation 8.2 change
 
Support JSON With Commas and Comments (JWCC) in json_decode ・ JSON related ・ #80791
 
@beberlei I'd agree with a mandatory constructor arg if not for it already having 6 nullable arguments.
 
named params ftw
 
aye there's that
 
its confusing, because for the null to internal functions RFC from nikic 8.1 adds a deprecation and the next major only removes this behavior, this is also related to error handling and is more conservative
 
12:53 PM
On the topic of exceptions, what think people to the idea of using function/param level attributes to mark sensitive elements to hide from a stack trace?
@beberlei There's no one-liner for that one though. IMO that's a baby step towards what absolutely should be in 9.0 which is throwing an exception on reading uninitialized vars. It also gives the opportunity to require explicit call-site references.
 
1:29 PM
@MarkR Lots of tools show stack traces too, and many extensions. They're going to continue to ignore them.
 
@Derick Probably. But for the engine level stack trace collection, being able to specify not to collect those params would be handy. I'd apply it to any password/secret params. I often pass secrets through wrapper classes as a precautionary measure.
function tryLogin($user, #[Sensitive] $password) { ... } would be cool though.
 
Did PDO stop dumping creds yet?
 
Don't think so
But there is a INI setting to suppress argument values in stack traces IIRC since 7.4
 
Nice
I think I remember that now
 
Thinking of it now, I'm wondering how efficient it would be to invoke reflection on every one of them and check in my own logging function.
 
2:08 PM
Hey anyone who could help me in an issue?
I made an edit in an old question because the link was broken and could lead to no resolution. I was with other problem and this resolution help me, so I contributed to updating the links and my edit was reverted.
Should I flag it to investigation of another moderator, or redo the edit?

https://stackoverflow.com/questions/22604780/php-unable-to-load-dynamic-library-php-pdo-oci-dll/22605026#22605026
 
2:20 PM
If they reverted it I would just post my own answers instead
Seems like the faster and most frictionless solution
 
I was just link updates. I was doubted if this could be a flag, a comment in original answer or a new answer.
I am afraid a new answer can lead to report by spam or something else @PeeHaa
 
Neh that's how it works IMO. You don't like an answer you write a better answer (even more so when OP reverted your change to make their answer better)
 
@MarkR #[Sensitive] is a genius idea!
 
2:45 PM
@beberlei It's less of an issue with exception_ignore_args as Girgias mentioned, but where args are wanting to be collected, having a reasonably performant 'but not this one' option might provide utility.
 
its always better not to rely on users configuring php.ini correctly vs putting the security at the place it belongs
 
Good afternoon. I need your help. Why isn't the value getting inside the array? It is being thrown out.
 
Screencaps are unreadable. 3v4l, please.
 
@Crell Click on the image
 
@Tiago still unreadable
 
2:57 PM
Point remains.
 
If you want help, don't post images of code. Use gist.github.com or pastebin. You've been told this before.
 
$Array[] = Array(
            "retorno"               => "1",
            "id_conloc"             => $row['id'],
            "localRetirada"         => $row['localRetirada'],
            "nome_localRetirada"    => select('empresa', 'matriz_filial', $row['localRetirada']),
            "codigo"                => $row['codigo'],
            "id_cliente"            => $row['clienteID'],
            "nome_cliente"          => select('nome_rsocial', 'clientes', $row['clienteID']),
            "id_veiculo"            => $row['veiculo']
 Matris de testeTiago Caus[{"retorno":"1","id_conloc":"40","localRetirada":"14","nome_localRetirada":null,"codigo":"C14J420U21","id_cliente":"1","nome_cliente":null,"id_veiculo":"43"}]
 
cmb
3:11 PM
apparently your select() function returns null for whatever reason
 
@cmb It does not return null. As sent above it prints at the beginning of the array and not inside the array.
That's the problem ... lol
 
did you link the offending function?
 
May need a callback
 
This is my select function pastebin.com/H2PqyNJr
 
cmb
return instead of echo
 
3:19 PM
I've used it throughout the project and it always worked. It is the first time that I use it in an array and it gave error problem.
@cmb I will change.
 
cmb
but you would than need to change all other uses of select() as well
 
@cmb It worked!
 
See, using type hints would have told you this straight away ;)
 
@MarkR As well?
 
You're confusing a function that prints output (which suggests the rest of your app is just generating output as it goes, which is generally discouraged these days) with one that returns a value. That's why you have the bug you have. If your function had a declared return type, the engine would have caught that for you immediately and pointed out you were using the function incorrectly.
 
3:28 PM
Test case bug73594.phpt fails even when dns_get_record() populates additional ・ Testing related ・ #80792
 
Thank you all so much for your kindness! You are the best!
 
3:47 PM
In mysql, if I have a SELECT query with many inner joins. And two of the tables in the joins have a column that I want to do a WHERE column NOT IN (). Is there any difference in performance on which one I use for the WHERE clause?
 
4:37 PM
Incident on 2021-02-23 16:37 UTC ・ GitHub Pages has Partial Outage
 
@MateKocsis In wiki.php.net/rfc/deprecations_php_8_1 you have DatePeriod and ReflectionMethod ctors listed for deprecation. I'm not sure what to do with these for this RFC, as their deprecation would require the introduction of new methods first
 
4:55 PM
Who was it that was working on an RFC for auto-capturing long-closures? Someone here was trying to mentor that person.
(It was suggested that we collaborate on short-functions, at least to ensure the syntax is consistent in meaning between the two proposals.)
 
What's wrong with DatePeriod? I ain't want to deprecate that
 
@NikiC I think my original idea was to vote about adding the required methods for PHP 8.1 and deprecate it in 8.2.
@Derick The problem is that it has a massively overloaded signature
 
I know, I wrote it. But you can't just deprecate it without alternatives, and I'm not willing to break BC for this minute annoyance
 
No, I absolutely don't want to deprecate it without introducing an alternative first.
In fact, you suggested the deprecation: chat.stackoverflow.com/transcript/message/50431899#50431899 :)
 
5:34 PM
@Girgias Thanks. Does he hang around here at all, or is Twitter the best way to connect?
 
@Crell Don't think I ever saw him here, so yeah probably Twitter
 
user15248833
5:48 PM
Gm everyone having a bit of an issue I am not sure what the issue is
 
user15248833
if (($_SERVER['REQUEST_METHOD'] === "GET") && isset($_GET['hash_token'])) {

$db = DB_CONNECT();
$stmt = $db->prepare("SELECT id FROM users WHERE confirm_code = ?");
$stmt->bind_param('s', $_GET['hash_token']);
$stmt->execute();
$result = $stmt->get_result();
$stmt->close();

var_dump($result);
 
user15248833
if i var_dump result i get object(mysqli_result)#3 (5) { ["current_field"]=> int(0) ["field_count"]=> int(1) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) }
 
user15248833
if i vardump Get_hash it returns am i missing something?
 
@NikiC May I ask you to comment on my recent mails on internals about my RFC ideas? Or do you have any serious objections about my proposals? I don't want to proceed with them without getting feedback/more thorough review from a major contributor.
 
@Devflow What did you expect it to return?
 
5:50 PM
All issues have been resolved!
 
user15248833
well it should have found a matching key
 
user15248833
@PeeHee I was assuming that it would have found the result that matched in the database
 
user15248833
its a activation link and i want to find the user with that activation link
 
cmb
var_dump($result->fetch_array())
 
user15248833
5:56 PM
@cmb and it returned array(2) { [0]=> int(1) ["id"]=> int(1) }
 
user15248833
@cmb thank you
 
6:14 PM
@MateKocsis Which ones? I might have missed those
 
 
2 hours later…
@MateKocsis I did
 
@Girgias Ok then :)
 
Don't really have much to say about the timeout one, but the internal return type one I really want :|
 

« first day (3783 days earlier)      last day (1151 days later) »