« first day (2355 days earlier)      last day (2819 days later) » 

12:00
that's a good rule ... I didn't think it was, looks quite expected as dmitry said yesterday ...
Anonymous
@JoeWatkins did you hear back from my rasmus about the post mortem?
@Jimbo I see, yeah I guess a method that returns the name will work fine.
I don't think you have to register them though? Just check your dispatched events for the string?
The user needs to be able to just say eventLoop::registerEvent(Event $event)
How else do they do this at runtime?
i.e. when starting the event loop
It's basically a way of adding functionality that the event loop can handle over WS depending on a string
@JayIsTooCommon I just shot off an email
@Jimbo isn't a worker job triggering the event?
12:15
Afternoons o/
Dat moment when the entire screen is filled with my mom
@Jimbo did you write some actual code yet?
@Patrick Something in the event loop actually has to be listening for "hey workers, we want the peehaa's mom job to be executed"
@PeeHaa Erm, I wrote a shit tonne of nonsense in a README file about my current brain death on the subject
If you're interested I can paste it, half of it is bollocks though
12:30
@Jimbo you should make a clear distinction between events and jobs. register the jobs but not the events
@Patrick Ah okay, so each event has a job
Event can contain a name, frequency etc
I'm guessing this event can be the JSON they send up from JS
@Jimbo no... an event is something that has happened as part of a job
or do events start your job?
Oh cool. We are listed in the @thoughtworks Technology Radar: https://www.thoughtworks.com/radar/languages-and-frameworks/instana :)
I am confused...
@Patrick Don't worry, me too :)
Events start your job, I guess
12:33
@Jimbo so jobs listen to events? I was assuming that it's the other way around
why not trigger a job then?
Yeah, user says 'i'm registering to receive info about peehaa's moms weight'. User id mapping ===> event interest. Job executes to give that data
and how do you pass params to the jobs?
Yeah we'll be triggering a job
There'll need to be a mapping to say "this job is getting data for this event"
Pass params to jobs with JSON
So that's easy
gotta go, at least you got me confused :D
x)
12:35
Jon Skeet, Reading, United Kingdom
936k 531 6851 7698
I wonder if Stack Overflow will just end when he reaches 1m
it should just show a message: Game Over - Skeet won
Makes me think of a certain rap song...
Anonymous
280
Q: How to format reputation when Jon Skeet hits 1 million+ rep next year?

BohemianBased on Jon Skeet's past reputation gain, he will hit 1 million some time in July next year. We have until then to decide on how to format his colossal reputation. The choices for the short format of 1234567 are to continue the "k" magnitude: 1,235k Or start an "M" magnitude: 1.235M ...

@Jimbo happy to review it / complain / yell when I'm back
PHP friends, I am doing something wrong. :( The INSERT works, with it inserting all N items. The UPDATE however (if I run this more than once) breaks. It will UPDATE 1 time, then it will proceed to INSERT that first value N-times. i.e. If I ran it on a list [apple, banana, carrot]. If I run once I will have apple,banana,carrot in db. If I run again I will have apple,banana,carrot,apple,apple,apple. pastebin.com/1tMFuJvf
Not sure what exactly I am doing wrong with my PHP loop, still pretty new.
I can actually pastebin entire file if anyone wants/needs, its only like..15 more lines and I am just pulling a public json file in
12:53
@Gordon It won't end. Jon Skeet still has tags he's not gold in yet (achievements, yo)
Anonymous
13:06
@Gordon still can't write job descriptions though ;)
Anonymous
!!rfcs
13:22
Hi, I using symfony 2.8 with nginx and php7.1 fpm. I am trying to uplaod a file or more 30MB. First in nginx log i was getting Post content size limit, Then I do the below;
```
/etc/php/7.1/fpm/php.ini

max_execution_time = 1200
upload_max_filesize= 40M
post_max_size= 40M
memory_limit= 1024M


/etc/php/7.1/fpm/pool.d/www.conf

request_terminate_timeout = 1200


/etc/nginx/sites-available/example.com

location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php7.1-fpm.sock;
13:36
@Wes Your RFC got no votes :( Any idea why?
Anonymous
not much though
foreach: wrong typecasting breaks strict mode – #74327
14:00
I found my issue, but I am not sure how to fix it.
On my initial run it does the select, the row doesnt exist so it creates it, and so on for each item.
On the second run, it runs the select N times then does all the UPDATEs afterwards
@bwoebi @Trowski Just added v1.x and v2.x labels to Amp.
@kelunik jup, thanks
Would be interesting whether that bug also happens with Amp v2.
14:17
@kelunik I cannot repro it at all
Did you try multiple times?
I could also only the second time I tried.
@kelunik tried 3 times
well, still cannot repro
@kelunik may you try to debug then?
14:32
/me tags
Wes
Wes
14:53
> As there is a subtle BC break, then that needs to be mentioned in the
RFC under "Backward Incompatible Changes".
there is no bc break, except in @Ocramius's brain...
@Jimbo ^
Wes
Wes
@bwoebi for giving you work to do :B i wanted to ask you to implement the rfc as i failed at it :B but i can write tests :B
> this breaks the assumption that the topmost abstract signature is the authoritative one. That is a subtle BC break
wtf @Ocramius
Beginning the election process for #PHP 7.2 release managers, if you would like to be considered a candidate, reply https://externals.io/thread/787
Wes
Wes
hey joe
yo wes
RT @krakjoe: Beginning the election process for #PHP 7.2 release managers, if you would like to be considered a candidate, reply https://t.…
@JoeWatkins Wish I could help. Unfortunately "no C knowledge required" to me is the equivalent of programming books / cds that say "no programming knowledge required" - which is complete bollocks :P
@bwoebi read over this when you have a moment, please
@Jimbo I'd like to say you really don't need any C knowledge, but I think you need a little bit if you're going to do the job properly ... just a little ...
PHP doesn't require C knowledge, it requires the acknowledgement that you are going to walk into programming hell and back, and life will never be the same again...
:-)
/s/walk/crawl on your hands and knees/
15:17
@JoeWatkins The three most important words for release manager are: stop, drop and roll
@JoeWatkins trying to convince someone I know...
@JoeWatkins what exactly a release manager does?
I mean, aside from getting a @php.net emai
:P
Anonymous
pfft @Sara called you inspiring. How much did you pay her?
(I'm just curious)
15:22
*Q* : What are indexes in the relational DB? Why use them, pro/cons?
*A* : Indexes.. uhm.. hm.. ah,so! It's the number of column in the table!

.. from today's candidate interview. Sigh
@AlmaDo finding developers is hard
also, markdown is fucked om this chat
@tereško nope, finding good ones is
@tereško I have to say, this guy applied to Senior developer position
@tereško in short: fix as much as possible in your branch without breaking bc (too badly) ... so triage bugs.php.net and gh pull requests, and merge as many patches as possible ... then roll RCs and releases, communicate with various people about them to get windows builds and nix qa done, create news entries for releases, and liaise with other rm's about reverts and things ...
@AlmaDo lemme guess: 5 years experience in wordpress and laravel
15:27
@Jay nobody knows who you are talking about ... and if Sara asks to be paid, you pay her ... she's another 10 foot tall giant ...
@tereško no, no.. this guy was way more serious: 7 years of experience with Java8 in an Iranian Banking
7 years.. Java8 .. :D
@JoeWatkins yay, she replied
:P
Anonymous
@JoeWatkins one should always assume I am talking about you when trying to be offensive
@JoeWatkins I'll have you know I'm a petite 186cm
... and now I feel like a midget
15:33
@Sara without getting a calculator, that's roughly ten feet tall :D
6-ish
oh..
@tereško that's US standards for you, everything is bigger over there
10 feet is more than 3 meters, so I'm going to take a swag and say that < 2m is probably less that 10'
@Sara it depends on how much did you drink before
15:34
@AlmaDo This is entirely true.
Anonymous
hey @Sara, you coming to PHPSC ?
@Sara you'll make a very excellent release manager ... and it's acutely awkward to hear you say that sort of thing about me, so I'll assume you're talking about davey only, but being polite ... I look up to you not only as a result of your stature, but because of who you are ...
@AlmaDo no wonder Shafizadeh sometimes acts, like he has discovered hidden library of everything in shape of this chat room
user7733437
Hey dudes, how areyou?
^ rude to the ladies :p
15:36
@JoeWatkins Hush, you. Don't make me hugs the self-deprecation out of you.
@AlmaDo As a Southern Californian, and honorary custodian of the expression "Dude", I hereby declare that "Dude" is gender neutral.
'cause like, "Dude.... amirite?"
@AlmaDo that's rude to all helicopter-kin in this chat room
@JoeWatkins In completely unrelated news. Do you mind if I add a column for extended_data to phpdbg's opcode output?
please do
I'm chasing down a class of segfault and lacking that data point is annoying :)
Anonymous
15:40
yo crov
yeah, I can't remember why it was originally omitted, seems useful and obvious today
\o
@Sara yes
the output is exactly 100 colums wide right now :P
That just happens to coincide with my standard terminal window width
it probably should be an optional column
:/
@Sara btw, if you are looking for fully accurate opcode dumps using opcache is usually a better option
15:43
Remind me to include $reallyLongVariableNamesThatWillBlowYourColumnWidths
@NikiC How does one produce dumps from opcache?
@Sara Somewhat awkwardly ... You enable optimization and then use opcache.opt_debug_level=XXX
Where XXX=1 is a good starting point
If you want to have a CFG gotta hunt down the right number ^^
bleh
Not sure I want optimization on in most cases
opcache produces a CFG now?
((been awhile since I dug into it))
opcache produces a lot of things now
the optimizer part uses cfg
Def want opcodes without optimization then, as it's probably doing funky things to the output.
@NikiC Would you settle for extended_data on a second line that's ony output if extended_data != 0 ?
15:47
@Sara iirc the existing format is to include it in <> after the opcode name
with proper decoding. It's just not implemented for most opcodes
The decoding is a nice to have, but not necessary for typical debugging imo
16:01
@NikiC isn't standard width 80 chars actually? :-P
@JoeWatkins You ARE doing a great job. Everyone does mistakes, but some still may make a great job at it. So do you.
Every time I see the names of those format macros I want to puke :/
Anonymous
I think you're terrible @JoeWatkins
@Leigh like PRIi32 etc.?
16:02
Davey is worse though, I mean... let's be honest.
yea
@JayIsTooCommon Good job nobody cares what you think then, right ;D
@Sara I have no idea about Davey because I do not hear much from him…
Anonymous
don't lie, you crave for my approval
@Sara looks okay to me
@Sara doesn't that explode the output with certain flags/opcodes?
16:05
I think it fits
In the sample output sure
@bwoebi Potentially, yes. a really long opcode like ZEND_DECLARE_INHERITED_CLASS_DELAYED already blows well past the 23 character column width though
yeah INIT_NS_FCALL_BY_NAME was the only one I could spot, maybe others ...
well, as long as it doesn't blow too often, should be fine
Or a more common one like ZEND_ISSET_ISEMPTY_STATIC_PROP
16:08
could abbreviate opcode names if it's that important ...
@bwoebi Worst case for extened_value is 12 extra case (2.1 billion plus the <> frame)
@Sara yeah
Oh, right, ZEND_ is already ommitted from output
well actually 13 … if negative
@bwoebi Truth.
I could make it hex
But then -1 goes from two chars to 8
16:10
Could get weird if you have other larger negatives too
**Tries output of run-tests.php....
Most people wouldn't instantly recognise 0x80000000 as negative
well, ideally you should just choose the right representation … zend_vm_opcodes_flags will tell you what exactly is appropriate (jump target, flags, whatever) … ZEND_VM_EXT_* flags
if I was writing a wishlist, I'd say decode it to something that makes sense, and maybe detect terminal width ...
About 0.5% of the time
16:12
@JoeWatkins have you ever tried working with ncurses? It's kind of horrible
Wes
Wes
50/50 thanks for the votes guys. i was worried this would fail hard... and i wouldn't have understood the reason :B small improvements make people happy... me for instance...
Okay.... I could truncate the output (possibly indicating the ev with a *) for the long lines.
@Leigh no, but you could lift code from coreutils
or do something else that I haven't thought of ...
bah... where's the time... catch y'all later
o/
16:15
\o
@Sara flown away?
like his soul
@JoeWatkins did you also receive an empty mail?
ah, no ... how strange
16:18
@JoeWatkins On externals.io/thread/786 it's displayed correctly too
must be a quirk on news.php.net
yeah
surprising that the 100 year old software is broken ... I don't think I've seen that before though
O_O ... moment of realisation, we might live to see 100 year old software still in use...
4
@Leigh I uh … well … there's still old COBOL software in use … might even become true.
@Sara yah
I'm out to walk jenna, lata all
Anonymous
16:24
o/
Wes
Wes
@bwoebi i should've probably mentioned static abstracts, but i meant these too 3v4l.org/q72RG also error message here is hella strange
@Wes well, static or not static, is the same … it's both methods in this context.
Wes
Wes
can someone test this in 7.2? i bet it works :D 3v4l.org/iX31H
brb
16:46
good luck with the vote @Wes, I'd give it a +1 if I could (I'm pretty tired of inconsistency in the language being introduced/kept on the basis of "we don't see a use for that")
Wes
Wes
thanks :B yeah "we don't see a use for that" is just a poor justification
@Leigh It has just begun
@Leigh on a similar note - major OSS projects outliving their BDFLs.. (has this happened yet? none are coming to mind)
17:06
Hey has anyone here had problems access localhost on windows IE VM's?
Did Windows IE come out before Windows ME?
lol
its actually windows 10
what I meant is the virtual machines microsoft offers for IE testing
edge specificly
@Wes No, that fails in exactly the same way. Not sure why you expected otherwise.
Hey guys. Is there a good site for info about using PHP with Ajax and SQL? Trying to implement a 'Like' feature. Page refreshing is a problem for me. P.S- Googled it already, some of them were too difficult for me.
wrap your like functionality in a form
have the form submit to the same page
have some php logic to increment the like
if you have a php API
you can use ajax
17:16
Wouldn't submitting it to the same page again reload the same page? I don't have the 'Like' in a form yet. But, I will do that. What about the Ajax part? Is there some good link that has a use case like mine as an example?
how much do you know about these technologies>
Wes
Wes
@Trowski my expectation was php behaving as inconsistently as possible :B
and yes when your form submit you will refresh
@Wes Ha, fair enough.
@floor Very good in Javascript and HTML. Not so much in Ajax and PHP.
17:19
@AshwinBaskaran when liking something.. you want it to persist? as is get saved to a database?
Yes, I do. I have MySQL setup in the backend. It's all working correctly now. The only problem is the page refreshing.
@AshwinBaskaran do you a url / php file that can handling submitting like data to?
I have a separate likeDB.php which updates my DB whenever there is a 'like', if that's what you are asking? That php file only has the query and the page to be opened after it is done executing the query.
so in this php file you have something listening for a POST?
eg: $_POST['likes']
Nope, once the 'like' happens, I append &fav to the URL. The likeDB.php checks for isset($_GET) and then performs the update
17:25
you might want to look at $_POST
7
Q: Pass data from jQuery to PHP for an ajax post

machaHello I am a newbie working with jQuery and Ajax. I am trying submit data to the server using Jquery POST method. And the data that I am passing is a string. Now I am unable to understand how do I pass the data and how do I retrieve the data. I have tried searching for articles for my problem, bu...

you could create a new php file
have it look at $_POST['likes']
and echo back the data
with something like
then you can use ajax to call that page
Okay? And then would the jQuery .post function (like in that example), make it load in the same page without refreshing?
yeah provided you are posting to that page
you setup a different page called api
or whatever and have it listen for post data
ajax allows you to send post data and retrieve it without refresh
and apply the retrieved data to some dom element
I did. I think I have a basic idea of how to proceed now, will do that, thanks. One last question..why should I use POST? Is it not possible to use this with GET?
typically because get verb means to retrieve data
security and other reasons as well
Oh, okay. Thanks again.
17:48
So i'm absolutely at my wit's end with this. Somehow curl_setopt is interpreting an empty string '' as having a null character. sentry.io/share/issue/3133343839392e323431333334323139
Have already tried making sure locale is correct on server. Using regular debian php5 repos
has anyone encountered anything remotely similar?
you can reproduce by calling $test = curl_init(); curl_setopt($test, CURLOPT_ENCODING, '\0'); if you are curious
@AustinPray that's not an empty string
curl_setopt($this->handle, CURLOPT_ENCODING, '');
is where the error is being thrown in production
18:05
That might be a bug, but also: 'The contents of the "Accept-Encoding: " header. This enables decoding of the response. Supported encodings are "identity", "deflate", and "gzip"'
!!lxr curl_setopt
[ /ext/curl/interface.c#2939 ] PHP_FUNCTION(curl_setopt)
@Danack hmm.. might not be strictly curl related. Looks like something is catastrophically failing. `mysqli_real_connect(): (42000/1044): Access denied for user 'prod20170321'@'%' to database '0�Х'`` this is the first message in the breadcrumb trail that leads up to these curl issues
see that database name is all garbled?
interesting
never seen anything like this in my life haha
I've seen signs of disk failure look like that.. checksum your files against known-good copies
18:18
I'll bark up that tree right now. It's an ec2 server with an EBS disk so who knows.
also, i would look at opcache/extensions. as it seems to only affect your strings (not the code) which would be slightly weird for disk issues
18:33
scary stuff lol
is there any inbuilt function that will convert Alt code to special characters pastebin.com/1FEaFGek
Wes
Wes
@AustinPray scary indeed...
18:48
I have a PHP file that just does readfile("error_log");
Mostly because my website doesn't let me view the error log. It gives a 403 Forbidden error when I try to the log file. So I'd have log in to the FTP server and copy the file.
hi there hi here
someone any ideas if it is possible to get facebooks public user data with the opengraph without asking the user for permission?
couldn't find something in google
19:05
moin
'nin
evenin
19:27
O/
Germania
Does anyone know about licensing for PHP applications?
I mean in particular selling PHP applications and making a license for each domain etc...
I don't want to make it so it disables the application if it is stolen but just politely asks/reminds the user to buy it :P
@Alesana Use some sort of encryption?
Obfuscation of PHP code right? I was looking at a few different options
My main question is whether it is worth it to buy a licensing software or if it wouldn't offer anything more than what I could make easily
19:41
pro tip: licensing software for PHP won't help you. You're better off investing in legal resources to protect your license than software to do it.
Make the code so difficult to read that people just give up trying to understand how it can know if it's stolen.
Hola @ircmaxell o/
long time no see, at least being in the same place at the same time
sup @DaveRandom
How you keeping?
yeah, definitely a while
doing alright. Busy, working with some side projects
19:44
I saw the 8-bit computer thing, looks awesome
and planning a wedding :)
Oh, congrats :-)
thanks :D
Lol my idea is to not prevent them from using the stolen software (because it's not possible) but make them feel bad
Ha, kind of like sublime text messenger
And it's not a big enough item to get legal resources :|
If you are distributing your application (i.e. letting other people run it on their servers) then there is literally nothing you can do to actually prevent people from re-distributing it
19:52
Exactly
Have you considered turning it into a service application?
(also, what is it?)
by "service application" I mean you host it, so you don't need to distribute it
I originally planned on it but I decided against it
It's.. like a content management system for advertisement widgets
@Alesana why? Distributed software is so much more headache than SaaS
@Patrick I was considering the bandwidth
20:07
@Alesana bandwidth is cheap
If they use more, charge more
Does anyone know any good example pieces of code for teaching people how to use Xdebug? e.g. example "debug this" bits.
Hmm not a bad idea..
I would be able to do updates and support much easier as well
Evenings
I could give each user a link mywebsite.com/{{user_id}}/login.php and each would have their own database
I don't know why I didn't think of that
Should I use redis for votes and then update the db every x sec/min or do you think mariadb could handle it direct?
20:15
@user7594714 What's the total size of the electorate?
So far 1, me.
Anonymous
Evemong
yo biber
It might be a bit too early to think about optimising my usage but at what point should I consider using intervals of updates
20:20
Well now that my approach is different does anyone have any reviews for whmcs? Haha
halp
what should I call the interface, which defines only getId()
Identifiable :P
Identifier
Identificator
Is there software that helps manage SaaS programs?
20:27
uh?
it depends what you need help with
what actually "id" is?
identifier?
index?
indicator?
identity?
SaaS reads like Service as a Service
software as a service
I guess it would be billing and account creation, then support page, etc..
@tereško that
20:30
@tereško depends on what the interface represents. It's not about the methods, but the abstraction
it's for domain entities
whmcs seems to have that
then call it Entity?
I was looking at that I don't know if it's more for hosting though instead of software, but I guess it would be software hosting.. anyways each person wouldn't have their own files just their own database
@Patrick seems a bad name for an interface
20:32
why? when you type hint for it, you want an entity, right?
not a random thing with getId
whmcs is basically for anything
@tereško, for inspiration: github.com/… SPOILER: They are all wrong and Identifiable is the right answer :P
I don't think there should be a difference in naming between interfaces and classes
ex: interface UserRepository and class DbalUserRepository
Identifiable goes too far towards duck typing for me
Interfaces should be types imo
true, maybe in some more complex interfaces it may make sense.
but i think for one method only it may make sense eg. __toString Stringable
20:49
^ but that would be an example of a type conversion. In that case I would type hint for string and do the conversion before passing it in
maybe the same applies to the Id, there could be an EntityId value object
I mean if the Id is all you need, I think you should typehint for that and something that returns an id
but it's late... I'm off to bed :)
!!version
that moment where I really need to stop doing reviews because I'll punch my screen
Wes
Wes
evenings
20:59
\o
@FélixGagnon-Grenier you're bailing out an ocean with a teacup
Wes
Wes
@PeeHaa 1-2
Wes
Wes
ned-ita friendly match :B

« first day (2355 days earlier)      last day (2819 days later) »