« first day (3459 days earlier)      last day (1480 days later) » 

4:33 AM
Is there an strpos() equivalent for streams?
 
 
5 hours later…
9:21 AM
Using DOMDocument->replaceChild on doctype causes double free (PHP 7.x) ・ DOM XML related ・ #79451
 
10:07 AM
In the term of "buying/increasing a VPS", what does "volume" mean? Does it mean "storage"?
 
10:36 AM
yeah, likely
 
ah ok thx
 
"Good luck with the RFC. :)" - youtube.com/watch?v=AjUmULa0R-8
 
cmb
11:25 AM
:)
 
11:41 AM
As always, people should feel free to tell me I'm being a pedantic arsehole, but imo that throw expression vote is being rushed. Yeah, small detail but avoiding fucking precedence up rather than fixing it in 4 years time would be better.
* offer only valid when I am doing that behaviour.
 
11:58 AM
Did we have two weeks of discussion? I don't even remember that thread poping up
 
@Girgias just over ....and yes, it's hard to track the things that need to be watched for possibly coming to vote.
 
Ok will try to read that now
 
it's fine imo, apart from the bit which would instantly be added to PHPsadness list...
 
Which is which part?
The whole bit with the logical or/and operator is pretty confusing to me
I see that it is a by product of making it an expression
But it's pretty weird imo
 
It's just a bad argument. People, including myself, could write:
$condition || throw new Exception('$condition must be truthy')
  && $condition2 || throw new Exception('$condition2 must be truthy');
And it just does the wrong thing.
 
12:09 PM
It should group the || things together right?
Also the "instead of" in this section is literally the same as what he written as the base example
 
@Girgias it either needs to group them together as people would expect them to, or disallow code that has the 'wrong' (aka surprising) behaviour. I don't know which is possible. But allowing code that does the wrong thing always is bad.
 
I'd agree on that
 
I thought the RFC process was changed to where two weeks before voting is no longer necessary, and instead voting takes two weeks and discussion can occur while voting?
 
Nah
It's 2week discussion period
+ 2 weeks voting period
 
Ehhhhhhh
 
12:13 PM
It was 1 week before and that got bumped to 2
 
Ah
 
pirates_code_like_rules_detected
 
wat
 
I'll have to watch it when I'm more awake. I'm still debating on sleeping a bit longer or having a cup of tea
I suppose it depends if furballs join me after finishing breakfast
 
12:58 PM
Anyone used this one already? github.com/crazyxman/simdjson_php Seems like a good fit for 8.x inclusion, if it can be bundled statically <_<
(as a replacement for current json)
(also, no idea if it supports everything, but it seemed like a quick win)
 
@Ocramius find someone who has the time to put mirror it's releases to pecl? That would at least start people using it..
 
I was wondering about using it as json_* backend, not about the extension itself
 
I was thinking that if a significant number of people had used it, switching the backend would be a significantly less risky thing to do.
 
Hmm, I'll poke the original author about feasibility then :-)
 
Under the ever increasing list of things I'd like to work on but don't have energy are both i) Making pecl releases easier to do from github ii) Make installing per app extensions less terrible.
But that extension looks pretty stable. May only need one release...
 
1:10 PM
did anyone ever hear back from pickle? Kinda dead at this point, if Pierre is not doing any PHP either anymore...
 
@Ocramius short version, no. If you know anyone who knows anyone who was involved in that project, getting them to document what happened would be very useful.
They don't seem to be willing to document anything which is annoying.
 
1:41 PM
There's no way to do this in PHP is there?
// Given the keys
$keys = ['a', 'b', 'c']

// Make these two the same
$data[...$keys] = 5;
$data['a']['b']['c'] = 5;
 
@Danack Seems very counter-intuitive to me?
 
2:05 PM
@Danack I really hope you couldn't write this :)
That code would already be wrong without the throw, because && has higher precedence than ||, not the other way around
Which means you can write $a && $b || $c && $d and it does what you expect, but you need to write ($a || $b) && ($c || $d) for the other way around
 
@NikiC tbh, I'm just making noise more because the issue wasn't addressed in the RFC. I thought he was going to investigate the other precedence possibilities. The result of which might well be that "no, this is the best we can have. People will need to setup static analysis if they want to guard against it." But just moving to a vote after saying stuff that implied he was going to look at it, is kind of bad imo.
 
@NikiC is there actually a proper reason why these aren't just simply non-assoc?
 
cmb
2:32 PM
* vs. +
 
that
 
 
1 hour later…
4:03 PM
Ok, I've bought a volume for my server, but it's mounted as a separated partition, is it possible to merge it to the main storage?
 
Don't buy things until you confirm you need those. What support says?
 
not talked to the support yet, I bought it automatically through the panel
 
4:35 PM
@Shafizadeh so, you want a raid0 of sda1 and sdb?
 
tbh, I have no idea what are raid0, sda1 and sdb
 
4:49 PM
Yes, according to this, yes, I want what you said ..
 
And do you want to reinstall the OS?
 
no no
my website is running with over 200 concurrent users
I don't want to even pause it
 
then you can't merge them
at least it's going to require a reboot
 
Ok, how many time is needed for merging? over 2 min?
 
and perhaps setting up lufs, if you can... which seems unlikely
you need to setup a whole new merged fs
sorry, I meant lvm
In Linux, Logical Volume Manager (LVM) is a device mapper target that provides logical volume management for the Linux kernel. Most modern Linux distributions are LVM-aware to the point of being able to have their root file systems on a logical volume.Heinz Mauelshagen wrote the original LVM code in 1998, when he was working at Sistina Software, taking its primary design guidelines from the HP-UX's volume manager. == Uses == LVM is used for the following purposes: Creating single logical volumes of multiple physical volumes or entire hard disks (somewhat similar to RAID 0, but more similar to...
Your best bet is going to be to copy data over, and then use a symlink to put the new volume in the right spot (or remount it in the new spot)
 
5:00 PM
ah
 
5:40 PM
@PeeHaa I'm doing a playthrough of Days Gone right now if you've never played it. youtube.com/watch?v=MFCGn8n-hfc
 
6:22 PM
@Girgias ... I took out my third loan for my house to build a second room, 348,000 bells. Oh boy.
I also wished on a bunch of shooting stars a few nights ago, I almost finished the Nook Miles thing for it
I need to find the turnip lady...
Nooooo, I missed her.
 
 
1 hour later…
7:35 PM
@Tiffany still haven't wished any shooting stars :(
 
 
2 hours later…
Wes
9:13 PM
sad and stupid that after all the deaths we had here the rest of the world keeps underestimating this thing
referring to spain, usa
 
9:37 PM
@beberlei Yeah, I bet it's just missing. The existing APIs serve enough use cases I bet the fully general case was never added.
There are enough parameters that I can also see people saying "just fill out the structs manually", but it takes so many lines of code that it's pretty annoying.
Also, on limiting the stack depth for the exceptions API I added... I don't really want to code that. Are we okay merging it in as-is and hope it gets improved later?
@NikiC Is there an example of typed properties for an internals class? This is regarding the zend_exception API I was working on, where it was suggested making it a typed property to avoid checking so much at runtime.
 
9:55 PM
There is only one correct answer on the page, all others are incorrect. Please review. stackoverflow.com/q/18691972/2943403
 
10:38 PM
I need someone's opinion. I purchased some ear loop masks like three years ago for a home project, and still have a bunch of extras. I'm not even sure if they're medical grade. Should I use them for myself, or try to see if they can be donated?
the box says they're "disposable face mask for general purpose infection control" and "bacteria filtration efficiency greater than 99%" and "ideal for home healthcare use"
 
11:00 PM
hi everyone, does anybody know which encoding was it ?
\u0131 its "ı" letter
I cant convert it to utf8, tried this already
iconv(mb_detect_encoding($text, mb_detect_order(), true), "UTF-8", $text);
 
@user198989 I'm not sure I understand your question. You're wanting to know what the encoding is for \u0131? I presume you know it's unicode, but are you wanting to know which flavor of unicode?
 
I need to change it to utf8 @Tiffany
 
I dunno if that helps you at all, but you should include what you've tried in your question :)
 
11:25 PM
Thanks
I got it solved with this

$string = preg_replace_callback('/\\\\u([0-9a-fA-F]{4})/', function ($match) {
return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');
}, $string);
@Tiffany
 

« first day (3459 days earlier)      last day (1480 days later) »