« first day (4234 days earlier)      last day (697 days later) » 

12:25 AM
@MarkR yup
I need to update my avatar
But I'm not sure if I'm going to keep it after it fades. I wanted to try this hair style though.
 
@ArcanisGK507 flutter.dev
 
 
2 hours later…
user17161735
2:36 AM
@Michael i dont know dart lenguage in flutter... i think use ionic that implement typescript ... and i think can learn it fast ...
 
5:39 AM
@Tiffany I watched it, I can see it was quite long for a first time, but also can see that when you got over the stress moments you knew what you're doing, I can imagine it being even harder than in my case where these 20 attendees were in front of me, here you haven't seen the watchers at all, I hope you will go further and continue, good luck
 
 
2 hours later…
7:31 AM
Hi
How I can convert NGINX rewrite rule to PHP
rewrite ^/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr)/(.*)$ /$1/$3 permanent;
if(preg_match('^/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr)/(.*)$', $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'], $match)) {
header('HTTP/1.0 301 Moved Permanently');
header('Location: '.$match[1].$match[3]);
die;
}
 
8:13 AM
@user1620882 That requires the first part of SERVER_NAME to start with any of these language codes, I doubt it does.
 
you mean $_SERVER['SERVER_NAME'] = https//example.com
oh Sorry
if(preg_match('^/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr)/(.*)$', (af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr).$_SERVER['REQUEST_URI'], $match)) {
header('HTTP/1.0 301 Moved Permanently');
header('Location: '.$match[1].$match[3]);
die;
}
 
That's now not valid code
 
You can pls help to correct it
if(preg_match('^/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr)/(.*)$', '(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr)'.$_SERVER['REQUEST_URI'], $match)) {
header('HTTP/1.0 301 Moved Permanently');
header('Location: '.$match[1].$match[3]);
die;
}
I thing this is valid code
 
8:29 AM
Yes, but what does preg_match do? It tries to match the stuff on the left, with the stuff on the right. But now you have prefixed your REQUEST_URI with the same language codes, why?
 
Yes You are right
First parameter will match the $_SERVER['REQUEST_URI'] in the second parameter.

So $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] is fine in second parameter
 
No, beacuse your regualr expression is anchored to the start of the string with ^, and so it won't ever match if you have a SERVER_NAME in front of the thing you're trying to match against.
@cmb github.com/php/php-src/pull/8574#issuecomment-1132627755 satisfied it won't cause issues?
 
^ carrat is just starting notation
^ Matches the beginning of or string / excludes characters /^PH/ matches any string that starts with PH
 
no, it means anchoring against the start of the string to match against - but you also don't have markers around your regular expression. Look at the docs on what I mean by marker: php.net/manual/en/…
 
ok thanks for link
Does # work in place of ^ ?
 
8:51 AM
@user137364 I think the bit you're missing is interning
Constant strings are interned and don't use reference counting
I don't know what refcount xdebug displays, but it's probably just a dummy value, because these strings don't have a refcount in a meaningful sense
The same is true for the empty array
 
9:06 AM
Morning
I've been continuing Nuno's work on auto-capturing closures: https://github.com/php/php-src/pull/8330
Any thoughts before I move to internals and update the RFC ?
 
cmb
9:40 AM
@Derick you did some good research (and obviously we can't check closed source extensions), so, yes, looks good to me.
 
@cmb FWIW ,your trick for making it a bitfield, doesn't actually do anything due to alignment of zend_object std.
@NikiC Yeah, showing the refcount is now a lot less useful that it used to be.
 
cmb
:54601209, hm, are the bools packed already?
 
@NikiC But afaik, his question isn't using Xdebug - debug_zval is a PHP built-in. Xdebug's debug_zval variable accepts a variable name, so doesn't suffer from it modifying when passsing.
@cmb No, but it still doesn't matter due to alignment requirements
It's either a 5 bits + 3 bytes hole, or a 1 byte hole. The struct ends up being 104 bytes anyway.
 
@Derick oh yeah. In recent PHP versions we display these as "interned" without refcount, but OP is on 7.4
 
@cmb For "performance reasons" I probably wouldn't want to make a bitfield then.
 
cmb
9:56 AM
:54601229, ah, right (bool is aligned like char; I thought it would be like int); you could integrate recurrences into the bitfield, but that's unlikely to be worth it.
 
right, but recurrences should also not have a more limited range (As that'd be a BC break)
it would also still not help, as there would justbe a 4 byte gap (if recurrences was :29)
 
cmb
Would help a bit for 32bit; and for 64bit could use a 64bit type (recurrences: 61); but yeah, not worth the trouble. :)
 
performance against partial ints is also significantly slower, I think.
 
cmb
I think a bitfield paid off, if there weren't already so many other members.
 
10:13 AM
three bools (or chars) into a 3 member bitfield is usually always pointless
 
cmb
Yeah, you're right.
 
 
4 hours later…
2:09 PM
@brzuchal trying to remember if I could see some of them on zoom, but even so, I was seeing the other organizers so it was less stressful. However, practicing for this was not easy because I felt weird talking to myself out loud. I was told to "practice, practice, practice"
Oh great
Mobile SO chat being glitchy
Anyway, I was told to "practice, practice, practice" and I practiced maybe the first five or ten minutes of my talk and that was it 😅
@ArnaudLeBlanc apologies if I'm speaking out of place, just wanted to check that you've already been in discussion with the person you're planning to update the RFC from? It's generally frowned upon if there hasn't been correspondence prior to
That is, talk to the person and say you want to continue their work, and ask for permission. It's not strictly necessary, but there has been drama in the past.
 
cmb
I think Nuno already gave permission to take over the RFC. :)
 
Ahh, cool
 
2:24 PM
@Tiffany TIFFANY!! WAY TO GO!! As you got into the material you got more comfortable, nerves gradually settled, and you got better and better! Awesome job! Keep doing these- the more you do them it gets easier and easier. \o/ \o/ \o/ \o/
 
:) thanks
 
Also love the blue hair!
 
^ Same. It's pretty cool.
 
3:00 PM
do you recommend - for security reasons - to store session data in the database?
 
Can store it on file, in database, depends on your architecture.
Redis is another option rather than a traditional db
 
@ArcanisGK507 Learn it
 
@MarkR is there any danger of exposed sessio data?
 
@DimitrisPapageorgiou If your database has been compromised then you're screwed either way
 
and sth else...are there public IPaddresses v6 out there?
IPv6...that is
 
3:14 PM
yes, of course
;; ANSWER SECTION:
php.net. 26 IN AAAA 2a02:cb40:200::1ad
for example
or if you want to use it for any sort of example
example.com. 20844 IN AAAA 2606:2800:220:1:248:1893:25c8:1946
 
3:26 PM
ok..then
I want to store IPAdressess in my MySql db....since IPv6 differs from IPv4 do I need two columns?
 
@Pierrick
You around?
 
@Derick yep i'm here (working at the same time)
 
@Pierrick You need to set up google authenticator keys
 
3:42 PM
@Derick Sure. I guess any OTP app will be fine
 
Hey, I'm dealing with a really weird bug that makes no sense to me, and I'd really appreciate some help.
Code:
 
sortof... but you need to do some local things @Pierrick
just wikifying it
 
function gen_1($start, $size, $step = 1){
	$arr = array();
	$value = (float)$start;

	for($i = 0; $i < $size; $i++){
		echo $value . PHP_EOL;
		$arr[] = $value;
		$value += $step;
	}
	return $arr;
}

$array = gen_1(0, 5, 0.1);

var_dump($array);
Output:
cmd>php test2.php
0
0.1
0.2
0.3
0.4
array(5) {
  [0]=>
  float(0)
  [1]=>
  float(0.1)
  [2]=>
  float(0.2)
  [3]=>
  float(0.30000000000000004)
  [4]=>
  float(0.4)
}
Where is that additional .0000000000000004 coming from?
 
CPU
 
But only when inserting into the array?
 
3:45 PM
3616
Q: Is floating point math broken?

Cato JohnstonConsider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?

 
93
Q: PHP - Floating Number Precision

dcmoody$a = '35'; $b = '-34.99'; echo ($a + $b); Results in 0.009999999999998 What is up with that? I wondered why my program kept reporting odd results. Why doesn't PHP return the expected 0.01?

 
@vbnm Please use a pastebin for something like this much code.
 
Sorry!
 
@Derick Thanks i'll take a look just after my meeting. Should not be long.
 
3:48 PM
@Tiffany Ah dang, okay, thanks. I had no idea this was a thing! Do you know why it calculates and prints the "correct" value, but inserts the wrong one into the array?
 
@Pierrick I'll be gone by then. We'll have to try on MOnday.
 
Okey I'll try to do both at the same time. So I created my QR which part do I need to send you ?
@Derick
 
cmb
@vbnm That's due to limited precision, and the possible attempt to squeeze more precision out of the number than there is. If you need exact decimal numbers, don't use floats.
 
@Pierrick give me a few minutes, doing the secret mailignlist now
@Pierrick the .google-authenticator file that it generated
@Pierrick Sorry, running out of time today - we'll set-up the jump hosts on Monday. You should be on GitHub RM group now, and also on the mailiglinst for it, as well as moderators that you mentioned.
 
@Derick Ok no problem. I'll send the file to you anyway. I'll encrypt it with your GPG juste to be sure. Thanks a lot for your time :)
 
4:06 PM
uh, don't bother - you'll be replacing it and I need to re-setup GPG
 
@Derick Ok sent :-)
 
4:59 PM
@cmb thank you!
 
 
2 hours later…
6:45 PM
Happy Froidai room o/
 
\o/
 
About time too
Stupid work days
 
 
2 hours later…
8:50 PM
@PeeHaa \o/
@PeeHaa Nooooooooo... I missed you!
If going through a result set a second time, is mysqli_data_seek needed to reset to 0, if using foreach ($result as $row)? I was thinking it may only be needed if doing a for loop.
But I cannot remember...
 
9:20 PM
Hello peeps
I hope peeps means friends... I'm getting too old for youth talk
 
@NikiC I've removed extern inline on the atomics PR. Can you re-review?
 
Btw @Tiffany happy birthday
 
9:48 PM
morns
 
:/
 
@StatikStasis <3
 
@PeeHaa \o/
 
Weekend time yet?
 
About to be in 5 minutes. I was fixing one last bug before I go home.
I launched the new supply system I have been working on forever on Monday.
It's a success!
 
10:02 PM
oooooooooh \o/ That's great!
 
Only a few minor bugs... yeah it is.
 
Must feel good :)
 
Man... I was about to say "you have no idea" like I do with people around here... but you do. =P
One of my favorite parts about completing a project and fixing small bugs is updating patch notes. I don't know why that is so therapeutic for me.
 
It's always both awesome and scary once people start using the thing that you worked hard for
Does this mean you will have more chill times coming in the near future?
 
@PeeHaa Shh don't jinx it!
 
10:45 PM
What's with the news nowadays? youtube.com/watch?v=kfVsfOSbJY0
 
11:05 PM
Damn you @mega6382
Someone ban him for life :)
 
11:20 PM
@samayo thanks :)
@StatikStasis :P we went live with a customer who brought us a sizeable amount of traffic... lots of bugs
I'm learning firsthand the importance of logging
 

« first day (4234 days earlier)      last day (697 days later) »