« first day (3022 days earlier)      last day (2151 days later) » 
00:00 - 20:0020:00 - 00:00

20:00
That's awesome @PeeHaa set that up for you at least. Do you have something similar for Imgur or do you just do the duck duck go workaround?
I do the workaround for now, he started something on it but then the funeral happened
ftr. this chat looks terrible because of imgur ban
Well hopefully fixed soon or resolved.
@Ekin Yeah I can only imagine.
Awe! You didn't get to see the img of my wife rolling her eyes at my PHP shirt @Wes designed did you? @Ekin
saw it over duck duck go proxy :)
20:02
Oh yay!
I should put together a montage of her rolling her eyes at my nerd stuff
heh
It would be long
/me goes back to database design
If @Jeeves is in the Netherlands- and PeeHaa lives in Turkey now- where is Jeeves actually at? Or does PeeHaa still have a place there- or is it at a work location or something?
@Ekin ^last question =)
Or just a server with a host?
For some reason I thought it was running on a personal PC he had setup. Never mind - probably on a Hosted server. Dumb question.
hi! If I have a db table which contain repetitive phrase on a column (like notification text) is there a good idea (in order to speed query and save db space) to make that column an integer and to have a 'translation' class which contain index for each text type?
20:07
@StatikStasis yeah its hosted... iirc transIP
Yeah- I wasn't thinking. =/
:)
I have 201 tables to go through in a legacy db now
...I could use a drink
Yay!
Have fun
fun :-P you too :)
20:31
@BoteaFlorin yes, most of the times that does make sense.
@Code4R7 thanks!
@NikiC hello. Do i need something to do after my RFC was accepted?
0
Q: String to binary without built in functions in PHP

Kamran JabbarI want to convert a string to binary but without using PHP built in functions, but we can use loops. Can you please help or privide the related article. Example: Binary of 'ok' string should be '01101111|01101011|00001101'

Could anybody tell me that?
@KamranJabbar you can not convert strings to binary in PHP because all strings are already binary
20:45
@Code4R7 actually there is requirement to implement the string should be converted to binary of 8 digits 0,1
Any idea what I'm doing wrong here? if I do a print_r($rows); I get results (Array ( [0] => Array ( [id] => 10 [username] =>)

but if I do (echo $rows['id'];) for example I get undefined index :s
@KamranJabbar not gonna help with your homework, unless you show some effort.
Okay I can understand, I already spent much time on this thing.
I only got with builtin functions.
Wes
Wes
@NikiC hmm that did not compute
I know what's causing the crash @NikiC
==2976== Invalid read of size 4
==2976==    at 0x9EB8046: zend_mark_reachable_blocks (zend_cfg.c:178)
==2976==    by 0x9EBA47F: zend_build_cfg (zend_cfg.c:658)
==2976==    by 0x9EB6433: php_pcov_discover_code (pcov.c:538)
==2976==    by 0x9EB6660: php_pcov_discover_file (pcov.c:585)
==2976==    by 0x9EB6ECE: php_pcov_collect (pcov.c:686)
==2976==    by 0xA81E4A: ZEND_DO_FCALL_BY_NAME_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:892)
==2976==    by 0xAFB71B: zend_vm_call_opcode_handler (zend_vm_execute.h:65454)
so do you ...
Wes
Wes
20:50
named them base identifiers for now
hey joe
to answer my own question it was echo $rows[0]['id']; to fix it
What's the best way for me to add a form where one of the fields has a pre-defined value which only needs to be changed when/if the user changes it
I'm making like an edit user/profile section and I don't think the password field will need to be changed much so I was going to have a placeholder saying "password (leave to keep same)" and then set the value to the current password
but if I set the value that way then a user wont be able to change it will they?
I'm a bit surprised that PHP 5.6 and PHP 7.0 are still mentioned in the main screen of php.net, because those versions are completely unsupported. It just does not look right...
20:55
7.0 doesn't show, but 5.6 does.
I should look into that.
You're right. 7.0 doesn't show up here either. My bad.
@Trowski I am a bit confused why you are doing this? What's the point? Also am I seeing this correctly, if the fd is closed in the parent, then it's closed in the child?
@LeviMorrison Would it make sense to order the versions in descending order?
@bwoebi Seems though that if it's closed in the parent, it's not closed in the child.
So this eliminates that problem by overwriting the FD with a dummy one in the child.
@Trowski and ... how do I now read the stderr of the child (via code in the parent) if it's closed in the parent?
20:59
@bwoebi stderr isn't closed.
It's only overwriting FDs with IDs > 3.
The first 4 FDs are bound as they were before.
stdin, stdout, stderr, and the exit code pipe.
Ah
but ... umm weird
yes, because it starts at zweo
now I get it
because of the operand order
Yeah, on second thought I think I can use 4 for the start index on array_fill and it wouldn't matter.
And use array_merge, since that's less subtle.
@bwoebi Updated
Oh wait… except now I have to subtract 4, bah
About the descending order of PHP downloads: PHP 7.3 is the only "Current" version and all others are marked "Old" according to the download page. In my POV it would make sense to offer the current version first.
(Except that PHP 5.6 is also marked as "Current" on the download page)
21:07
@JoeWatkins tell me please, do i need to do something after RFC was accepted?
what rfc ?
also, I'm a little busy, anyone in here can answer that question ... sorry ...
Can someone help me please
@KamranJabbar why you creating questions and delete it after that?
I just need to know how to re-format this date "2019-01-31 19:34:00"
I have dates in that format in my database but I need php to reformat it so I can display it in datetime-local
I need this format "dd/mm/yyy --:--"
21:10
@JBower Personally I'd go for Intl, though the extension isn't always availably on every system.
@Trowski So, the problem you're solving is that the fds do not have O_CLOEXEC? right?
@JoeWatkins i mean any RFC not a particular one. Sorry to disturb you. Can you just answer yes/no?
@Code4R7 What is Intl?
Hey @kelunik I was wondering if you were around and had a moment to chat about the long-dormant PR I had submitted to amphp's phpunit utils? I'd like to line up a blog post to talk about the new functionality close to it becoming available.
yeah, get nikita and dmitry to okay the implementation
21:11
@JoeWatkins thanks.
@JBower A feature complete set for localization, which includes a datetime object and a date formatter object (php.net/manual/en/class.intldateformatter.php)
Evenings
:45160825
Solution to your question:
function bit_get($bitmask, $bit){
    return ($bitmask >> ($bit - 1)) & 1;
}

$string = "a";
$len = strlen($string);
for($i = 0; $i < $len; ++$i){
   $c = ord($string[$i]);
   echo bit_get($c, 8);
   echo bit_get($c, 7);
   echo bit_get($c, 6);
   echo bit_get($c, 5);
   echo bit_get($c, 4);
   echo bit_get($c, 3);
   echo bit_get($c, 2);
   echo bit_get($c, 1);
}
evenin'
@bwoebi In a nutshell, yes.
21:14
@Trowski It looks fine to me. I just feel unsure about O(n) removing of timers (don't know, there might be production systems with tens of thousands of timers?)
But that's possibly something we can change if it ever becomes necessary
@JBower Are the times stored in UTC? You could always get the user's time zone and use the offset to output database entry based on their time zone. But you would need to make sure you're storing all times in UTC and not your server's timezone.
@StatikStasis Let's just assume that he uses MariaDB/MySQL, which does not support timezomes very well and we can just ignore it for now :)
for fuck sake, it used to be easy to hook into any part of the engine, and now opcache makes it hard to do everything ...
pile of wank
you can't even read the stupid things settings with ini
why does it have to be such a black box ? a stupid black box that I'd like to jump up and down on ...
@bwoebi I suppose it would be trivial to change now, but I feel for the average case where I timer is not removed it would be slower. Plus in production with that many timers they shouldn't use NativeDriver anyway.
@JoeWatkins Didn't anybody implement some switch to turn opcache off?
21:23
@Trowski you are probably right, that's why I'm not pushing against that - so merge that please
I could go out side and get a rock, and smash my computer until the lights go out, will that turn opcache off ?
@bwoebi K, how about the FD thing in process?
Consider the costs...
@Trowski regarding the fd issue - I somewhat feel like it would be more a responsibility of php-src to provide a way to fork()+execve() without fd inheritance
@bwoebi I agree, though this at least "fixes" it for now. A fix might not be back-ported either.
21:28
@Trowski I'm somewhat okay with this for now
At least you're not the only person who would like to disable opcache ... stackoverflow.com/questions/21556437/…
> They will be used on PHP 7.4 or newer and ignored on PHP 7.3 or older. Using an interface instead requires either raising the version requirement to PHP 7.4, or dealing with the definition of a stub interface in a compatible manner.
@bwoebi The solution doesn't thrill me, but I think it's better than the current situation.
@NikiC is that last 7.4 a 'typo' ?
@Trowski It hasn't been an issue for me ever, but yeah...
@Danack What's that from?
21:35
the new serialize rfc.
@Danack doesn't look like a typo to me
"raising the version requirement to PHP 7.4" - but it already targets 7.4......so it wouldn't be raised?
@bwoebi You've been using amphp/mysql frequently, yes? I had someone email me saying they can only retrieve the first 10 records from a 90K record table when running SELECT * FROM table_name.
And this is what it feels like youtu.be/hlt3la8ritk?t=52
@Trowski Never had that issue, though not using master
21:42
@bwoebi Using 1.* though?
@bwoebi Also there's this that you filed that I (sort of) fixed: github.com/amphp/mysql/issues/84
@Trowski yeah
@bwoebi I'll tell them to upgrade then, probably some issue from an earlier version.
@Trowski hadn't had the chance to test yet, that happened on production during an apt-get upgrade which updated mariadb :-D
@bwoebi Ah. It's probably fine to just close the connection then.
@Trowski yeah, mysql was away for like 2 seconds - shouldn't crash the whole php server then ideally
21:48
Exactly. Assuming you're using the pool it will just discard all the connections and make new ones.
@Trowski I do
@Danack version requirement of the codebase where you want to use it
@JoeWatkins lol
as always, valgrind saves the day
btw, I'm not super happy with that rfc
yeah spells it out ... I dunno why I didn't try that hours before ... I just got stuck in a loop ...
It falls in the category of patching up something that by all rights belongs purged to the 5th circle of hell
22:04
What RFC?
I don't understand PDO
I can't do an update statement with multiple variables
even just one variable
UPDATE accounts SET email=? WHERE id=?
what should I be doing?
@JBower You should understand PDO first. E.g. you should try using the PDO-syntax for prepared statements.
22:20
what have you tried
are you available on discord now? @tereško
not really
@JBower you are asking about SQL query composing or what?
22:25
and it looks like the cfg is integrated, all tests passing everywhere they were last night ... I'm off to bed ... nn all
@JoeWatkins ciao
22:52
@Gordon Do you like this kind of rock? youtube.com/watch?v=v2AC41dglnM
Cause I actually enjoyed this
23:22
@mega6382 better imho
I'm not a Brian-hater but Bon Scott was better
23:39
@Tiffany I've heard this one, I am a big Supernatural fan ;)
@DaveRandom This is quite good too, AC/DC is pretty sweet I would say.
I wish I was still young
@mega6382 look up a band called "thunder", you will like them
also, I'm going to go out on a limb here a bit, but listen to Queen/The Works and maybe Frank Zappa/Sheik Yerbouti (although that is a bit of a stretch, I have a feeling)
@DaveRandom Thanks, I am gonna give these all a try :)
Hi
I just got access to the chat
@mega6382 It's quit a long way from my typical scene tbh, I feel like @pmmaga is the kind of guy who has had a rock/hair rock phase in his life at some point ( I could be totally wrong there though)
@mega6382 out of interest, which of these do you like more? 1 2
I had forgotten how much I love Rush
Rush makes me think of my high school ex, whose uncle didn't trust women, lived by himself and didn't work, and listened to a lot of Rush. I guess he told my ex to break up with me or something because of his distrust of women. It didn't make me opposed to the band, but I thought it was funny.
23:50
@DaveRandom The 2nd one I would say
interesting
maybe look at genesis as well @mega6382
pre 1990, maybe even 1980
Look at the song listings on Guitar Hero 1 and 2...
@DaveRandom k, sure
@Tiffany One of my favourite lines in futurama is when fry describes playing space invaders at the 7/11 with an "all-Rush mix tape"
Does anyone know why pecl install ds-1.2.7 fails even though the release exists? pecl.php.net/package/ds/1.2.7
00:00 - 20:0020:00 - 00:00

« first day (3022 days earlier)      last day (2151 days later) »