« first day (2407 days earlier)      last day (2545 days later) » 

1:00 PM
sure. I'll see if I can get another with protect_memory (it'll be php7)
 
"Please, if you can, show me on the backtrace where Bob manipulated your memory wrongly"
 
uhh he's at lunch, I'll wap it on the 5.6 server and restart
 
@DaveRandom lol
@DaveRandom If it's an opcache specific failure, pretty sure not my fault
 
hah don't worry, I won't blame you
alright opcache is now on, with default optimize_level and protect memory =1
 
@bwoebi /me bookmarks permalink of this message for later use
 
1:04 PM
@DaveRandom pretty sure doesn't mean never
 
gmfdi
 
well that didn't take long
 
@Farkie is the backtrace the same one?
@DaveRandom damn… you should have posted your sudo password here instead of a normal terminal command…
 
I did sudo su because I like to live dangerously
 
@bwoebi There is a protection for that so that it will be replaced in chat
******
 
@DaveRandom well, you actually live safer then … less places to accidentally write your sudo password to…
 
Are workplaces really this scary that you have to ask a fucking question on SE about this
30
Q: Is it appropriate to ask an employee for a favor?

xdumaineI have a small team that reports to me, and we're all very casual and friendly (at least in my opinion/perspective). I need a personal favor (help moving a bookshelf at my home) and I wanted to ask one of my team members to help me move it, and offered to buy them lunch as a thank you. Would it b...

 
dammit that was may password
 
@DaveRandom then better delete than edit :P
 
@DaveRandom haha
 
1:10 PM
@DaveRandom all I saw was *******
 
if I frame 75 and get the function name, I do get some of our code which would be on every request
 
Wes
@PeeHaa ahahahaha
 
@Farkie Uh, I realize I'm not used to pre-7.0 code anymore … could you please run it again with the 7.0 target? The backtrace is helpful, but I don't remember the datastructures well enough to guide you with fetching data from the core dump :x
 
yeh might take a few mins
 
1:14 PM
lol, did it on my first request
huh that one was only 35 frames
gives less info
 
@Farkie I'm not interested in having many frames
 
ah, optimization level was 0 for that one
if that matters
 
@Farkie looks like a bug in memcached (triggered by the fact that opcache is loaded… but the bug is really in memcached here)
 
@PeeHaa hunter2
 
the memcached extension?
/root/pear/temp/memcached/php_memcached.c:1962 -- that file doesn't even exist
 
Anonymous
1:21 PM
@PeeHaa so pathetic..
 
@Farkie that's probably where it has been compiled…
if it was compiled somewhere else, that location may not exist
 
alright
 
@Leigh Mind blownm
 
any ideas how to track down what's throwing it over? I'm guessing it's something in our code hitting it
 
@Farkie it looks like it's lacking some immutability check…
 
1:30 PM
Is it possible to catch using Throwable: PHP Fatal error: Out of memory ?
 
no
 
@brzuchal No, that's a real fatal.
 
WHat would you do anyway about it :P
 
report
 
I have actually been catching those in the error handler, but that was in php5.3
 
1:31 PM
How without memory?
 
@brzuchal You can do that with register_shutdown_function.
 
^ that
 
@kelunik Ohhh yes, I forgot, THX
 
you can catch them there, but you have to be very careful with what you do
 
@Farkie I think that line needs to be commented out: github.com/php-memcached-dev/php-memcached/blob/master/…
 
1:32 PM
when you enter that function, you are almost out of memory
usually the most you can do is dump a log in a file
 
@brzuchal Of course, you make a HTTP request to a raspberry pi that that runs a motor that moves a hydraulic arm that pushes extra ram into ram slots. RAAS (Ram as a service).
 
@tereško You're usually only right at the configured memory limit PHP has set itself.
 
twitter is broked
 
@Jimbo s/extra ram/buttered cucumbers… would still be a RAAS.
 
@Jimbo RAM may not be used in all, but the memory limit is exceeded
 
1:38 PM
Renaming a PSR namespace directory will now rename your namespace to match. Learn more here: http://ow.ly/c2Zi30bRD9q https://t.co/hflVBzplGx
 
@Farkie We ditched php-memcached when we found github.com/php-memcached-dev/php-memcached/issues/338
 
@PeeHaa that sounds like something that can come back to bite you the ass
 
I've been waiting to be bitten in the ass by that for years
 
@Jimbo You could have just asked ya know
 
:D
 
1:41 PM
@tereško Dunno. I kinda am missing that now
 
Presumably it will only do it with src dirs configured with a namespace, should be safe
 
@bwoebi reckon I compile it manually?
 
@Farkie well, you can try
 
Anything else I can do? It has to be one of our calls causing it (trying to save to a bad key or something?)
 
@Farkie well, try recompiling and look what happens
@Sjon well, that's exactly the issue I'm seeing
 
1:45 PM
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Amp\Loop\Driver::disable() must be of the type string, object given, called in /home/kelunik/GitHub/kelunik/demo-socket-server/3-amphp-socket+parser/vendor/amp‌​hp/amp/lib/Loop/UvDriver.php on line 52 and defined in /home/kelunik/GitHub/kelunik/demo-socket-server/3-amphp-socket+parser/vendor/amp‌​hp/amp/lib/Loop/Driver.php:419
^ Amp bugs... they really exist.
 
@bwoebi that's cool; so @Farkie should test our very small repro script when he tweaked that line
 
@Sjon yep
 
@brzuchal I wrote this when I had the flu: github.com/Danack/MemTrigger
I have no idea how it works.
 
@bwoebi In for another segfault? No repoduction but a trace that indicates its in gc+generators
 
Anonymous
@Sean @Wes you coming to SC?
 
1:48 PM
@Sjon I've fixed like yesterday a bug related to generators cleanup… Some 7.1-only bug
If you're using 7.1, please try with newest PHP-7.1 branch first
 
May 12 at 7:29, by Wes
yes.
Jan 24 at 16:27, by Sean
Yes, cool.
they both said yes, they have to come now
 
Anonymous
You clever man, you
 
@bwoebi Would be awesome; what do you think? gist.github.com/SjonHortensius/01d5ecb185603b5dd3c0b8937b263181
 
inorite
 
@Sjon that looks pretty much like it
 
1:51 PM
@bwoebi very nice! I'm gonna compile and let you know. It fails roughly daily on our unittester
 
@Sjon I get no output running before compile
 
Can anybody tell my why I'm getting truncated stack traces? There shouldn't be any NUL byte at that position. github.com/amphp/amp/issues/132
 
@bwoebi want to add that info to the issue?
 
@DaveRandom that southcoast?
 
yarp
you there?
 
1:55 PM
I won a ticket but not sure I can afford hotel
 
I'm sure @JayIsTooCommon will let you bunk with him if you provide... services
 
can I be the little spoon?
 
Anonymous
@NikiC make that two people on your room floor
 
s/on/writhing around on/
 
where are you guys staying
 
1:57 PM
@bwoebi Should we introduce an AMP_LOOP_DRIVER environment variable?
 
Anonymous
@Farkie Haven't booked but I think there's a travelLodge like 10 minutes away, probs the cheapest option
 
@kelunik yeeesh.
 
@kelunik to select the default driver in the factory you mean? yes.
 
I'd like to quickly switch loops without changing code, mostly for debugging whether it's a driver bug.
 
1:58 PM
do you want to hard fail if the selected driver doesn't exist?
 
Might also be helpful to switch the implementation in Aerys.
 
thursday ->saturday?
 
@FlorianMargaine No, notice + default behavior.
 
lol airbnb on a yacht might be fun
little expensive
 
@kelunik I'd just be quiet, it will anyway throw an Error that UV/Ev classes don't exist
 
2:03 PM
@bwoebi so, hard fail?
 
@FlorianMargaine yes.
 
@kelunik's idea is to maintain the existing factory if the selected driver doesn't exist
 
after all, you have set the environment
I like to hard fail on dev error.
 
@Sjon recompiled and ran your script but same - no output
 
@Farkie holiday inn
not cheap
 
2:07 PM
@Danack thx
 
@FlorianMargaine What do you prefer?
 
@kelunik I'm not sure.
I don't think I have a preference
for debugging, I'd prefer the hard fail
for production...
if the purpose of this environment variable is mostly for development, then hard failure would be more appropriate?
 
@FlorianMargaine It's something that fails as soon as the loop is used at least, not somewhere later.
 
@kelunik if it's a notice + first available driver, it won't fail, no?
 
@FlorianMargaine If it's implemented that way, yes.
 
2:12 PM
@kelunik I was just saying that I prefer hard fail for development, notice + normal factory for production
2 mins ago, by Florian Margaine
if the purpose of this environment variable is mostly for development, then hard failure would be more appropriate?
 
@FlorianMargaine In production you usually don't even use it as you install exactly what you need.
 
@bwoebi hehehe.
 
@FlorianMargaine Usually you will just have one extension installed on prod I guess.
 
Any source to implement Pagination and DataTables in php
 
you guys are funny :P
(or maybe I'm just too biased)
(and desperate in humanity)
 
2:16 PM
I can't stand __invoke(). It has usages, but man do people mess up OO design with it
 
@ircmaxell I agree on that.
 
~Morning.
 
Anonymous
o/
 
@bwoebi seems to be holding up so far
but we haven't thrown real people at it yet - just devs
 
@Farkie well, it sounds promising at least :-D
 
2:21 PM
yep
thank you :)
need to somehow stop it getting to that stage
might be difficult to scale needing this, but should do us for the time being
 
@tereško just in case you are enjoying yourself, enjoy the new design patterns documentation
 
@bwoebi thrown it live now
let's see what happens
it's been up for over a minute, so that's good
[Fri May 19 14:30:48.688119 2017] [core:notice] [pid 22017] AH00051: child pid 22892 exit signal Segmentation fault (11), possible coredump in /tmp
[Fri May 19 14:30:50.690182 2017] [core:notice] [pid 22017] AH00051: child pid 22596 exit signal Segmentation fault (11), possible coredump in /tmp
 
stacktrace?
 
@Farkie "good" ^^
 
2:31 PM
lol
did well there
 
I thought you commented that line out?
 
I have
 
well… that's the exact line though
 
@JayIsTooCommon Like 80% chance I can't go :<
 
uhh
it looks like it's not using my compiled one
hahah no I'm a moron
 
2:35 PM
yeah, perhaps it's pulling the wrong shared object
 
wrong stacktrace
 
LOL
 
wow?!
I have no clue what's up there
 
2:42 PM
well that now looks more like an actual opcache bug
 
this thing is doing my head in now!
 
@Farkie well, try opcache.protect_memory=1 again?
 
will do
 
@bwoebi @FlorianMargaine github.com/amphp/amp/pull/133/files
 
2:53 PM
so.. LE being down also apparently means a heap of Caddy instances will be down too
because you know, if the CA is down, why would you even want to start a web server.
 
@kelunik I'd rather just list the actual possible values
like "nativedriver", "evdriver" or "uvdriver" (in the readme)
 
don't really want to be throwing live traffic on it so often and switching it round
so gunna try cause it myself
 
May I ask a stupid question?
 
you just did ^^
 
sigh. another one
 
2:54 PM
(ask away)
 
@Gordon I can DM you on twitter with some further details (though you'd have to follow me :-P). Otherwise have them contact Brent through the contact page on getrevi.com and mention that I sent them. The condition of the free account is that ongoing feedback is given.
 
@kelunik nobody wants to type out AMP_LOOP_DRIVER="\Amp\Loop\UvDriver"
 
May I ask a stupid question?
 
I'm using an old AJAX object to call php from my JavaScript. (Not the jQuery Ajax - the old one). Now my PHP echoes into the JS and I output it to the console.

But now I need my PHP echo to go to the HTML again - but still get called from JS - will you help?
 
2:56 PM
@kelunik I'd allow shortcuts like native/ev/uv for our default drivers there …
 
not a clue what you mean
 
Which part is confusing?
 
@einScotchFitch So you're making an XMLHttpRequest (the 'old' one).. you execute some PHP, and then you want to display the result of that (that comes back in the response in your JS) in your HTML?
 
@Farkie Yeah, I can understand :x Well, perhaps somebody else will find out more and fix it someday.
 
really annoying :(
can't get it to throw it on my own
 
2:58 PM
Yes... like if you have "echo 'some random shit';" it usually appends itself to the bottom of the html DOM even if the .php file is external to the DOM.
 
@Farkie don't you work for a uni?
 
wait
nvm
 
No?
 
I have an idea
 
I worked for Magma
 
2:59 PM
@Farkie yeah, opcache is really finicky …
 
Like I said it was a stupid question
 
@bwoebi Just type AMP_LOOP_DRIVER=Amp\\Loop\\UvDriver :P
 
I'm guessing I need a certain amount of traffic to throw opcache into a fuss
 
@Farkie for some reason I thought you'd left and I saw mmudev
 
@einScotchFitch So you need to find the element (document.getElementById()), and then update the HTML of that to contain the contents your javascript variable
 
3:00 PM
@kelunik Yeah, too long :-P
 
I left Magma in December
mmudev is just my domain - @Jimbo knows it all too well
 
@bwoebi I don't really care, we can add shortcuts later. You won't type that too often.
 
@Farkie crashbet
 
bwaha
still up I think
 
:D
 
3:00 PM
can I link it?
 
sure
half f them have seen it before anyway
 
I can't do it element specific, because it's a server-side event.
 
@DaveRandom These OpenGrok UI/JavaScript changes o.O
 
Okay my plan didn't work, I still need help
 
3:01 PM
It's like a full app.
 
@LeviMorrison ?
 
@einScotchFitch No, your PHP still has to return some data right, that you want to display. And it gets given to you in the response object in your Javascript, right?
 
not been paying much attention to it for a while
I haven't touched it in weeks, in fact
 
@LeviMorrison ?
 
I haven't touched it in months so... :D
 
3:02 PM
How do you make php display to a global html?
without users having to refresh a page
 
With XMLHttpRequest (AJAX)
Which is what you said you were doing...
You can super easily google this
 
@LeviMorrison what are you referring to then, just the changes in the version we are running vs. the php.net version?
 
I don't have time to fix it at the moment but I added a comment on bug #74607 that links the exact branch taken.
 
Because that's how server-side events work, right? For example w3schools have this example where the server echoes the current time to the page every few seconds - there's no JS there.
 
@DaveRandom It gives suggestions to me as I use it, there are hotkeys to take you to new sections, etc.
 
3:04 PM
I HAVE BEEEEEEN Googling this
I tried saveHTMl and loadHTML and echo and everything
 
There's an actual release now and there's at least one change in it that we should be running, not had time to rebuild the docker image though :-/
 
Like it must not only happen for one client it must happen for all
 
the version we are running is built from master I think based on a bug I fixed while 0.12 was in RC
 
All clients must update at once on this server=side event
I CAN'T DO THAT VIA AJAX BECAUSE THEN IT HAS TO WAIT FOR THE SERVER, which may not always be necesary
 
@einScotchFitch Wait, are you talking about Server-Sent Events?
 
3:06 PM
YEEES
 
Okay, use the correct terminology, now we can be on the same page
 
yes
yes.
When person A does something it needs to trigger a php script that does a server-side event
Okay, I'm sorry.
 
@einScotchFitch Your Javascript needs to 'subscribe' to these events. Take a look here, they write the JS for you: html5rocks.com/en/tutorials/eventsource/basics/#toc-js-api
 
I don't know the "correct" terminology I'm learning this shit off the web
Thank You
 
so, what's up, people
 
3:07 PM
@einScotchFitch No need to apologise, but you should understand why we were confused (and always will be, until we use the same terminology)
 
Sorry, I've been sitting with this for 5 hours and as far as I know it's not supposed to be this complicated.
 
!!w3schools
 
I did say it would be stupid
Anyway thank you :3 bows bye bye
 
3 messages moved to Trash
 
3:11 PM
I swear I defined a thing for w3s
 
Still want a t-shirt with it on
 
@bwoebi this approach has the advantage of letting you easily switch to a custom driver
that said, typing a class is painful in the shell, what are the escaping rules? :)
 
@tereško seems you have some free times :-)
 
@Shafizadeh naah, it's just closing on 30 degrees here and my brain is starting to liquefy
 
@tereško :-) .. as far as I remember your country been a cold one ..!
 
3:21 PM
It was 41C this evening.
 
@littlepootis but you live where tigers are
@Shafizadeh where get these brief periods of hot weather in what's officially known as "summer"
 
I know what summer is!
 
Mornings o/
 
you don't know what summer is if you've never experienced 50C
 
@Shafizadeh don't knock it. Last year we had like 4 days over 25 degrees in the entire "summer".
 
3:28 PM
@tereško good for you then ..! here, where I'm living has a pretty much warm days at summer
 
@bwoebi @Trowski I'd like to disable cookies by default in Artax. Most people don't actually need them.
 
anyway, today is Presidential Election in here ..! Do you guys aware that?
 
Anonymous
what country?
 
Iran
 
Iran?
I'm partly aware as you can see, but not totally.
 
3:32 PM
seems media been lazy ..! You should knew it totally :-)
 
@Shafizadeh any excitement about it?
 
Anonymous
or too busy following trump
 
:D
 
:D
@tereško yeah ..! People are divided into two factions!
Which gives people motivation to give vote
 
ant there 4 candidates?
 
3:36 PM
yes
 
@Farkie just got ping ...
 
two of them have much more chance to be elected
Is this sentence correct? (English perspective)
> two of them have much more chance to be elected
 
@littlepootis it was a typo .. still it is wrong ?
 
well, as long as Ebrahim Raisi doesn't win, it should be quite ok
 
3:38 PM
@tereško how you know that?
 
I looked up some generic info about their views and who is supporting each of those candidates
 
I'm Hassan Rouhani's fan .. And I hope Ebrahim Raisi doesn't win
 
well, It looks like Rouhani has quite a safe lead: en.wikipedia.org/wiki/…
 
he is !
@tereško However the chart in this link is expired ... both Ghalibaf and Jahangiri have withdrew
 
3:55 PM
0
Q: Should reputation gain from individual posts be capped?

AndreaMy reputation on StackOverflow has skyrocketed since I gave a trivial, but popular answer to a frequently-viewed question, and it got hundreds of upvotes. This seems unfair, because it incentivises making a few replies to popular questions (easy) rather than putting in the effort to reply to lar...

@Shafizadeh hmm, I think it sounds better if you say “have a much better chance of being elected”
 
Running different version of PHP on one Apache virtual host a bad idea?
 

« first day (2407 days earlier)      last day (2545 days later) »