« first day (3068 days earlier)      last day (2102 days later) » 
00:00 - 22:0022:00 - 00:00

00:00
And that code calls the handle with this.btn as the this
And this.btn.x === undefined.
@Wes Exactly.
So the language is partly(mostly) to blame here, not just the devs.
You encounter this very often with event handlers and callbacks.
Wes
Wes
yeah
// Even stuff I implement

function callCb(cb) {
  return cb();
}
That calls the callback with the default this, which will be the global object in loose mode, or undefined in strict mode.
Here's a fun one:
in this transient period, I occasionally think, "maybe I should dive into JS some more and maybe pursue a position there..." and shit like that ^^ has me reconsidering
Wes
Wes
js is nice and bad
you can say that again
00:03
function isThisTruthy() { return !!this; }

const res = isThisTruthy.call(false); // call the function with `false` as this

console.log(res); // true, lol
Wes
Wes
php is in many ways still a blank page
js has problems you can't really avoid
@Wes Most of them were ironed out by ES2015 though
Just use arrow functions for all your callbacks, and your this problems go away
(Arrow functions bind the lexical this, as though you've done .bind(this))
All the prototype and inheritance shenanigans (anyone remembers Object.create()?) was pretty much gone with the introduction of the class sugar
Modern JS is a pretty decent language, actually
Wes
Wes
@MadaraUchiha i do... still use it :B
If you need to go into code that supports IE9 and the lead dev asks you "Babel? What's that?" run.
Wes
Wes
i am moving away from the old stuff finally
00:07
which X-Files episode should I watch?
Wes
Wes
all?
I've watched most of them
just picking a random one to watch while I eat
Wes
Wes
i thought you didn't like scary stuff
X-Files is kind of in the middle
there are some episodes I have to skip scenes
most episodes are fine
also X-Files has helped me desensitize some
I just noticed they're on amazon prime now
Wes
Wes
remember that episode of that guy capable of growing a copy of himself within his body, and then he would vomit out his "sibling"
MY GOD THAT WAS PROPER TV :D
00:10
by far the best episode: Mulder & Scully Meet the Were-Monster
Wes
Wes
i don't remember it
2016?
it's a newer one
it's fucking hilarious
Wes
Wes
i haven't watched that yet
Wes
Wes
i mean i should stop watching new stuff and rewatch stuff like x-files
00:13
if you watch any of the new episodes, watch that episode, it's amazing
Wes
Wes
i will watch them all but i need a refresher on the older episodes
it's a lot of seasons to rewatch
written by Darin Morgan
that one doens't need much of a refresher, is a motw type episode
Wes
Wes
i am a programmer and i have ocd
i can't do that
i have to start from the beginning :B
jks;lKDFA;KDJFLAJKSFl;kjasdfkksjdf
fine
Wes
Wes
@Tiffany ;;;AADDFFFJJKKKLSaddffjjjkkkkllsss
i sorted it
00:18
lol
Wes
Wes
btw, i still need to watch twin peaks
did I tell you I got pictures with Mulder and Scully? (separately) and I have Mulder's autograph? :P
(the actor and actress, obviously)
Wes
Wes
as i kid i had quite a crush on scully :B
when did you get them?
like, recently or when the first x-files was airing
I think 2015, that was the year before I started hanging out in here I think
Wes
Wes
is it true that mulder is sexy af
he was the kit harrington of the late 90s
00:25
I think he is... that's why I went >.>
Wes
Wes
were you screaming like girls at a one direction concert? :B
oh, it was in 2016
...no? I was more like :O
Wes
Wes
i met a Formula 1 driver once, i couldn't keep my cool
there were young female fans that were less excited than me
youtube.com/watch?v=yyB03ImgG_s lmao, I remember this panel... I was way, way, way in the back, could barely see them, but it was funny
and at least I got to sit
Wes
Wes
one day i will like a tv-series enough to go to a comic con or something
01:17
I'm disappointed though, I went with a friend who went to see John Barrowman, and I ended up not tagging along with her, and I wish I had
Wes
Wes
i don't know who that is
i mean i know who he is, not sure why he is famous
he is in arrow
and in desperate housewives i think
or maybe sex and the city lol
 
3 hours later…
04:40
@Wes Doctor Who primarily
he's immortal because he's a Fixed Point in Time ... doesn't matter how many times he dies, he comes back to life
which has made for some pretty tragic scenes :/
I should watch Torchwood again...since I can't watch any Korean dramas now, since DramaFever bit the dust :<
@Wes but part of his popularity is because he portrayed a bisexual character on primetime TV, and was one of the first. It also helps the character was highly popular.
Wes
Wes
he is a bisexual in dr who?
Granted, sure, there were shows like Will and Grace, but not quite the same
@Wes yes
Wes
Wes
or he is actually bisexual in real life
he's gay in real life
Wes
Wes
in arrow he is a baddie, i can't imagine him being Will of Will and Grace lol
04:47
friend of mine said that he helped her identify herself, seeing him on TV was a pivotal moment for her
Wes
Wes
i recalled something i watched youtube.com/watch?v=wyuwNeenmwk
hahaha
Wes
Wes
he is like that for real or... captain archer's dna all over him
that's RRRRRRRR rated
@Wes it's a bit of both
Wes
Wes
that's not primetime tv material tho ahah
04:55
I have to find a panel video
@Wes youtu.be/SLgno0WT5Wk?t=198 this is the particular timestamp, but the whole video is funny
Wes
Wes
lol
i have heard that so many times
must be a recurring joke
did you watch game of thrones yet?
and do you watch walking dead? :B
@Wes I haven't resubbed to HBO lately, and probably won't be for a while now
@Wes he gets embarrassed though, Torchwood cast just owns it... "yeah, I know what I said, and I meant it"
Wes
Wes
05:16
@Danack 3v4l.org/F1FYl i have a legit use case for this, obviously it doesn't work
 
1 hour later…
06:23
@NikiC yeah, but there hasn't been ... what to do ?
06:34
I've opened the PR with new impl, if nobody makes noise by the end of today, I'm gonna just merge it I think ...
@JoeWatkins There are some classes which do not call zend_object_std_dtor() as part of their free_object handler, you'll need to fix these instances as well
so that they release weakrefs, otherwise it'll go bad
which classes ?
I don't know which ones, just searching for the handlers and noticing missing dtors
@JoeWatkins we currently are relying on having extensions to that by convention. is there any reason why we don't simply call zend_object_std_dtor() ourselves after calling the handler instead of relying on extensions?
I think it would be maybe best to release the weakrefs before after the free_obj calls (there are about 4 of them) instead of in the dtor?
07:02
it's a pretty reliable convention
yeah, most places really do it. not sure about 3rd party extensions though
not really our problem, an earlier version of the patch exported notify function for that reason, then for some reason I removed the export
will have to export it and just fix the odd cases, then those exts in the wild that need to handle it can handle it the same way as those strange core exts that don't stick to convention ...
what are the other 3 ?
it's more than convention actually, anything that calls std_init should call std_dtor, and everything must call std_init ... these are very odd cases and I can only find two in com
07:21
@JoeWatkins naah, I meant there are 4 places in Zend/ where free_obj() is called
not 4 places without zend_object_std_dtor()
> it's more than convention actually, anything that calls std_init should call std_dtor, and everything must call std_init ... these are very odd cases and I can only find two in com
that's why it was done this way, it should be a single point of change ...
yeah it's okay
morns
08:00
bathetic characterized by triteness or sentimentalism
08:31
git mernings
09:02
bleh
@salathe any plans to do the en-revision mapping for git migration?
how long has extensions been unused for, and or why does it still exist ?
@JoeWatkins no idea, but as it's not an exported function can just drop it
k
7.4+ right ?
yeah
09:11
WeakReference::create is a lot of typing, do you insist on some other name ?
I don't like create it's misleading ...
Wes
Wes
WeakReference::get($object)->content() === $object;
WeakReference::get($object)->value() === $object;
WeakReference::of($object)->content() === $object;
WeakReference::of($object)->value() === $object;
what ?
Wes
Wes
suggestion of names
I'm not adding a bunch of methods anyway ... get is already used ...
Wes
Wes
yes i was proposing to change get to something else
maybe content()
09:22
one change is already too much, lucky to get away with it ...
we're only renaming constructor, nothing else ...
Wes
Wes
$a = WeakReference::of($obj);
$b = WeakReference::of($a);
does this work? :B
@Wes yes, it gives you a weak reference to a weak reference...
@JoeWatkins I don't insist, but can't say I like the of() name
Wes
Wes
[yodawg.jpg]
It's very hipster
someone suggested from ... but that doesn't seem natural to me either, you don't take a reference from an object, you take a reference to an object ... what about to ?
we can afford to be a little hipster :D
o/
@JoeWatkins I guess to is better than of, but it's still hipster. I'd prefer something obvious over something that tries hard to read like english and where I'll definitely have to check the docs every time to figure out what it was called
Wes
Wes
i dislike from. i think get is more common for singletons
$weakReference = WeakReference::get($obj);

$weakReference->content();
10 mins ago, by Joe Watkins
one change is already too much, lucky to get away with it ...
@NikiC well create is obvious, but lies about the behaviour ...
Wes
Wes
i don't think people will have a problem with improved naming :B
09:33
you definitely expect that to return a new object ...
@Wes I do, and improved is subjective ... adding more methods is not happening ... content() is meaningless ...
Wes
Wes
$weakReference->get()... you are not getting the reference but the content of the reference
so $weakReference->content()
just saying... i don't care :B
@JoeWatkins Wouldn't exactly say lie... It's just "create interned" :P
09:47
I'll just use create, but I really don't like it ...
Wes
Wes
"of" was nicer
yeah, well I have more important things to do than consider the name of one method :)
Wes
Wes
you started it :B
!!blame @NikiC
09:57
@JoeWatkins any experience with php m32 builds?
never used it, what are you looking at ?
@JoeWatkins it's picking up the 64bit libs
I know I got this to work before, just don't know how
Well got it to work by disabling enough libs :/
CFLAGS="-m32" ./configure --target=x86-unknown-linux-gnu --disable-all
krakjoe@fiji:/opt/src/php-src$ ldd sapi/cli/php
	linux-gate.so.1 =>  (0xf7fb8000)
	libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xf78b1000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf77b2000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf77ad000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf75d7000)
	/lib/ld-linux.so.2 (0xf7fba000)
@JoeWatkins can you also get it to work with --with-sqlite3?
10:15
yes
(all tests pass)
sudo apt install libc6-dev-i386
and lib32gcc-7-dev
were needed before the build would configure ...
probably just fix target ... I guessed the target, not sure what triple should be ...
before I set target it tried to use x64 even with -m32 set, which obviously isn't right ...
Hm nope, didn't help
still getting /usr/lib/x86_64-linux-gnu/libsqlite3.so: error adding symbols: File in wrong format
when I try to use sys sqlite3 I can't configure the build:
checking for sqlite3 files in default path... found in /usr
checking for SQLite 3.3.9+... checking for sqlite3_prepare_v2 in -lsqlite3... no
not found
configure: error: Please install SQLite 3.3.9 first or check libsqlite3 is present
@JoeWatkins do you have the libsqlite-dev:i386 lib installed?
10:31
installed libsqlite3-dev:i386, now I get format error
Probably a libpath is not passed correctly ... somewhere
I hate build systems
Consistent type errors merged, finally
Wasted the whole last week on that
krakjoe@fiji:/opt/src/php-src$ ldd sapi/cli/php
	linux-gate.so.1 =>  (0xf7f71000)
	libresolv.so.2 => /lib/i386-linux-gnu/libresolv.so.2 (0xf785e000)
	libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xf7743000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7644000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf763f000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7469000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf744a000)
	/lib/ld-linux.so.2 (0xf7f73000)
make LDFLAGS=-L/usr/lib/i386-linux-gnu/
there's something wrong there though, but you can force it ...
Hrm it looks like I can only have either the 64bit or the 32bit libxml :/
The following packages will be REMOVED:
  libharfbuzz-dev libicu-dev libicu-le-hb-dev libxml2-dev
The following NEW packages will be installed:
  libharfbuzz-dev:i386 libicu-dev:i386 libicu-le-hb-dev:i386 libxml2-dev:i386
That makes the whole thing rather impractical :/
@JoeWatkins Oh, that simple
Makes sense though
I guess this isn't really given much attention by package maintainers or us, might be simpler to test 32bit builds in 32bit vm
10:52
Hm okay, I guess this only affects the -dev packages
Which strictly speaking shouldn't be necessary
But libxml is an ugly case where we apparently still use xml2-config, which does depend on this
Maybe if we migrate this to pkg-config it will "just work" (haha who am I kidding)
pkg-config should be preferred anyway if it exists ...
yeah we are slowly migrating to pkg-config
the disadvantage is that it tends to break travis nightlies and it takes ages until I can get a fix merged
11:21
Wrong return type for SplFileInfo::__toString – #77723
11:41
@ircmaxell seems like your FFI bugs was just fixed o/
11:54
@LeviMorrison @bwoebi Mind if I take over the arrow function rfc (fn() => syntax)?
@Kalle yup, just got the emails. Awesome!
Plan would be to include some extensive discussion of possible syntax and binding alternatives, but ultimately propose it with fn syntax + by-val binding
12:26
startup time is the biggest penalty so far
12:41
BG docs are broken – #77724
Meanwhile I am still getting retarded turkish translations in my face :(
@NikiC I'm fine with it. I am currently wondering whether I have some code in a branch with a version up to date with mid last year (so that work of porting it to current PHP-7.4 should be minimal). I'll check this evening. The most important part would be anyway the discussion.
@ircmaxell Looks basically right, probably missing function name freeing
We have that code duplicated a few times over the is_callable implementation, should extract it
13:02
@NikiC You mentioned the possible slow start up on Windows, while reading some of the documentations for Remi's latest PR, I stumbled upon lazy loading of libraries PHP is linked against, I don't think we do that but it could potentially speed up startup time if PHP on AppVeyor is compiled against some large libraries we only need for certain extensions (like gdi for example). I need to think about it a bit more while reading the documentation in more depth but its a potential lead
@ircmaxell I would love a benchmark with a relatively simple (de)compression or encoding/decoding algorithm (i.e. string processing)
13:29
@Kalle randomascii.wordpress.com/2018/12/03/… is a fun fact re gdi ^^
@bwoebi would make sense to me
13:45
@NikiC \o/ thanks!!!
@bwoebi give me one that doesn't use streams (not implemented yet, sorry) and I'll try to get it working
Hello guys,

my Mongodb find() seems NOT to work I have tried all I could and nothing works so far. using PHP7+

Please see the SO question here: https://stackoverflow.com/questions/55088521/php-mongodb-find-not-working-as-expected/55089241?noredirect=1#comment96936744_55089241
14:09
@ErickBest From the docs, find() returns a cursor (which is an iterator), and then you have to iterate over that cursor for the results. You can also use ->next() to advance the iterator, foreach, etc...
I suspect foreach ($countries as $country) { var_dump($country);} would show countries....
as Mr Maga said.........wait.
that name.
@NikiC Not until it has been decided what's happening with regard to correlating the EN and translation files.
Has anyone done a salesforce integration and can give advice about it. I know that Salesforce is a massively powerful tool. If I want to just push sales and leadgen data to salesforce, do I need to do things like setup field mappings in my application, or does Salesforce have standard field names that should be used?
so unfortunate... I know... :P But Magalhães has been my last name since well before any political slogans...
MMAGAGA - Make Maga great again!
14:17
:D
@salathe what needs to be decided there?
I though the SVN revisions would just become git hashes instead?
@NikiC shall we just apply that or do you think it should be discussed more? I guess it's straightforward enough
@bwoebi probably discussed
probably makes sense to do a pr and see how many tests need fixing :P
haha yeah, I'd PR'ed that anyway
14:35
@NikiC I don't.
Good luck.
All options I have considered have (imo) legitimate drawbacks. I think it's a needed feature, but I don't envy the bikeshedding discussion that is probably going to come up.
@LeviMorrison They all have legitimate drawbacks, but I think we're at the point where we need this feature more than we need the absolutely perfect form of this feature...
@Danack Thanks.
@NikiC Which hashes (commit, object blob)? Why not dates? Do we even need anything in the files all? Those sorts of questions.
@salathe so, how do these questions get decided? ^^
commit hashes would keep the status quo, so it's the path of least resistance :)
14:51
Morning
Is it a theme among recruiters to all-caps git?
"tell us your experience with GIT"
@NikiC no argument there, we can always go with commit hashes (since they're easy and do-able now) and later change to something else, if something else amazing and simple comes along later.
@Tiffany Yes, and you have to shout the word when reading it. :)
@salathe that's also how most recruiters say it lmao
That's how I say it in my head...
They also want me to rate my ability with PHP. I'm probably a solid 3...ish.
...yes, I realize "solid" and "ish" are counter-adjectives
"Yes, I'll take exactly 3 ish dogs"
15:10
@Tiffany I always just lie and say like 8 or some crap. That number means something entirely different to a recruiter.
Then I can get into the interview and see if I can do what they're asking.
@Allenph 1-5
Oh. Never mind then.
Considering alternate employment where they don't abuse you @Tiffany?
@Allenph I'm unemployed
It's been almost a month now... crazy to think
Worst part of it is trying to get financial assistance for my head meds
Oh. Sorry to hear that.
Shit happens
15:31
github.com/ircmaxell/php-compiler is currently trending today on GH: #13 so far
@ircmaxell it was posted on reddit
Woot!
thanks :D
yeah but why not just use swoole @ircmaxell ?
15:40
lol
@JoeWatkins I will make swoole run on top of this :P
I was just about to post that
15:55
posted on March 11, 2019 by CommitStrip

 
1 hour later…
16:58
@bwoebi did we ever try the arrow function variant based on lexer scanahead?
I think I'll quietly just merge weakrefs ... quietly, while nobody is looking ...
I really don't like this, we'd have something to say if someone else done it, I'd have preferred someone to call it out than silence ... but since they haven't ...
If you don't like it, don't do it :P Just call it out yourself and explain
17:19
I did explain, but nobody called out that explanation ...
oh yeah.. then bump the topic or wait a couple more days if it makes you uncomfortable
@bwoebi And relatedly, did arrow functions without a leading symbol have any kind of forward-compat concerns e.g. when we add new type support? The worst that comes to mind is the interaction of return type syntax with ternaries ($a ? ($b): Type ==> $c : $d;), but I wasn't able to break that completely
17:39
how should I tell a recruiter, "I can get by writing JS/PHP from scratch, but I have to google stuff a lot"?
I don't want to make blanket statements ... but recruiters are bad people ...
I don't think you have to mention that you google a lot, everyone googles a lot ... of the bagillion windows open in my browser, at least a million of them are google searches
it's how you find information, and we are literally in the business of information
@Tiffany "I'm pretty good at writing PHP and JS" Everyone Googles. That's why this site exists.
@Tiffany "I'm good at teamwork" Just don't tell him that the web is your team...
But tbh - if the recruiter knows a bit about devs he knows that they google tons of stuff
17:57
Glassdoor reviews are comforting... sarcasm
fun afternoon :)
motorcycle?
Who took the picture? Haha.
me, it records top speed, for track use I guess ...
18:03
Oh, I see.
@NikiC no.
the last time I drove this fast was the last time I drove a car
@bwoebi why not? It kinda seems maybe possibly not entirely bad
@NikiC it shouldn't
Though I'm actually sure if ($x) ==> $y is really better than fn($x) => $y. Lexer lookahead wouldn't really help us support ($x) => $y.
18:07
@JoeWatkins well what's the fun part?
it's a bit like the parting of the red sea when you go that fast on the motorways, all of the cars just move out of the way miles ahead, you must be able to hear it for 5-10km at least, the noise is awesome ... there are no baffles in the exhaust, it feels like it makes the ground shake at town speeds ...
@Shafizadeh ever ridden a motorbike ? everyone should have a go, you shouldn't go that fast for many many years, but have a go ... my wife rides little bikes, she loves it, and doesn't like going fast (except when on my bike) ...
Oh that number is the speed ..
"all of the cars just move out of the way miles ahead" really? all the cars move out of the way when you drive (just) 200 (kmh)
in spain they don't move for cars, and in the uk they don't move for anything ...
what does "they" refer to?
18:19
in spain people don't stop at pedestrian crossings most of the time, I had a spaniard in the car and she laughed at me for stopping at a pedestrian crossing to let people cross ...
@Shafizadeh other road users
and I wait on a red pedestrian light when there is no traffic... :/
@kuh-chan up to about 90mph, cars will tail the back of bikes very close, like you are in their way ...
@kuh-chan I mean crossings where there are no lights, in the uk you have to stop if there are pedestrians, and I'm pretty sure the law says you should do the same here in spain, but nobody does ...
I think you should drive on german highways
I've not yet had the pleasure ... they are probably the only motorways on earth that make sense ...
you're no safer at 120kmh than you are at 200 ... at least not on a bike, if you come off you are dead at both speeds ...
18:28
@NikiC except that I really do not like it :-/
@JoeWatkins here, vehicles are to yield to pedestrians if they're crossing already, otherwise we don't stop
except traffic lights, of course
how do you interpret crossing already ? if someone is standing waiting to cross, are they considered crossing already, or are they expected to walk out into moving traffic in the hope they stop ?
@salathe did you purge the events on master?
@Kalle :)
@JoeWatkins if they're already in the street...
18:31
that's crazy
@salathe I did see some legitimate ones inbetween, was they lost or?
if they're at the sidewalk, intending to cross, vehicles (at least in my state...that I know of...) don't have to stop for pedestrians
@Kalle there were a couple but either date had passed or I didn't care enough to keep them... I got a bit cross-eyed after the first thousand page loads :P
if someone's jaywalking, people will slow down for them...usually...but the pedestrian is already in the middle of the road pretty much
I'll always stop, no matter where I am, because I can move much faster than a pedestrian, and I don't expect anyone to walk out into moving traffic, it's highly unreasonable ...
18:33
@salathe aye, fair enough but thanks for it, should keep the ML noise to a minimum once more
No-one replied to my mail about just turning the thing off. :(
@salathe well honestly I think its something we should get rid of entirely, its hard to maintain and since its inception there is many alternatives for such
@Tiffany and what about zebras?
@kuh-chan ...what about them?
@Kalle cool, so that makes two of us that would support that :)
18:43
@Tiffany won't they even stop at them?
@salathe so lets gut it?
Hello everyone
I need one small help of MySQL
anyone can help me ?
@AsteriskDeveloper what is your proplem ?
19:01
Mention of PHP 4 and Zend Engine 1 – #77725
actually I want to update one mysql row with condition
I have 4 column like A, B, C, D & I want to update one of them, from all 4 from which is 1st NULL column it will update others will remain NULL, how can I do that
19:39
Surely someone here might know something about this: serverfault.com/questions/941951/…
Seems hard to fathom there'd be so little info on the matter.
 
2 hours later…
21:19
I cant change behat 3.5 default feature dir, i tried
`suites:
default:
path:
features: tests/behat
`
but no luck
21:29
@YesBarry It's called a fallback resource. If the file is queried directly, why would it fallback?
alternatively, empty the public folder and redirect everything to an index.php out of public root
alternatively, the redirection flags for apache work wonders to redirect all traffic to an index.php file, with the behaviour of removing index.php from the url if present
21:44
@FélixGagnon-Grenier err, I mean... hi
yeah I know...
:P o/
I made a fireball inquisitor
I stand in a spot, and regen life and spew balls of fiery judgement
21:56
awwwww :P
I eveidently went full retard and started in SSF
00:00 - 22:0022:00 - 00:00

« first day (3068 days earlier)      last day (2102 days later) »