« first day (3401 days earlier)      last day (1771 days later) » 
01:00 - 17:0017:00 - 00:00

17:21
@James For errorloggin Sentry! sentry.io/welcome
It is sooooo good that reading error logs is fun again
17:32
ta will look at that too
@DaveRandom Logstash isn't, but Elasticsearch can use quite some resources.
Telemetry data is never cheap
@NikiC Do you happen to be available right now to talk about some issues Sammy and I are hitting in the instrumentation API? I'm guessing not, but worth a shot.
Basically, if an internal function is instrumented, the idea is to replace its handler with another that will call the instrumentation begins, then the original, then the ends. The trouble is: how do we associate the call with the specific set of begins/original/ends?
The only thing I can think of is to add a pointer to zend_functions that holds the set; then when it gets called at runtime it can inspect the execute_data, grab the function and then grab the pointer.
If we need to hide it, we could set a function flag and then use the handler to point to our struct thing instead of a zif_handler.
Not sure how much code this will take, or what the perf impact will be.
18:02
I have a question.. Assuming that I've database row that contains implode array (i.e. "USB Charger Adapter"), Now I want to use this code in the query: "SELECT * FROM product WHERE tags='adapter'", How can I apply that properly that it will work?
I wonder whether we should drop this chapter from the manual: php.net/manual/en/internals2.php. It's totally outdated and adds no value today.
We're out of fn_flags though, aren't we? Edit: oh thank goodness there are some skipped numbers.
@Gordon It has some value. Not a lot, but removing it isn't an improvement. It would be nice if someone finally updated it.
I mean a lot of API references haven't changed. Those are still useful.
The OpCodes haven't changed much.
@Sherif no one will update it. it's like that for years. if I wanted to get into extension coding from that chapter, I'd fail. actually, I tried. It would make much more sense to just put a link to the phpinternalsbook.com instead.
@Gordon I understand. It sucks :/
I think @JoeWatkins is about the only one I ever seen take a stab at it in the last 10 years.
But as bad of shape as its in there's still stuff there I don't want disappeared from the manual.
cmb
cmb
18:15
@Gordon after news-web.php.net/php.doc/969387452, I've given up on that
x86: (double) -2147483648 => 2147483648.0000000 WTF?
A double? o.0
That doesn't make sense.
@cmb :-/
cmb
cmb
@Sherif is this MSVC(RT) only?
@cmb AHhh, suddenly it all makes sense
@cmb btw, did you ever get that mail I sent you Oct, 15th?
18:17
o_O
It widens it
Wait... let me see if that actually does what I think it does
No
It ensures type safety.
hmmm
@cmb I can't reproduce that
int j = -2147483648; cout << (double) j; gives me a negative number as expected
cmb
cmb
18:33
@Sherif yep, works with gcc/libc as expected
@cmb Tried it on MSVC+14
cmb
cmb
ah, indeed, works with variable, but printf("%g\n", (double) (-2147483648));prints 2.14748e+09 for me on x86
Interesting
clang 8.0 also seems to do the right thing.
Must be a MS thing o.-
cmb
cmb
I thought there are negative integer literals in C, but apparently not (necessarily).
It defaults to an unsigned int?
weird
ignoring the literal would be even weirder
18:45
How do I generate the arginfo.h from the stubs for an extension?
18:59
I had to touch the stub, FYI.
19:16
Anyone familiar with Flutter?
19:47
Does @PatrickLouy ever come on here anymore?
@DaveRandom No clue
I tried to message him on Twitter but it didn't let me lol
hi guys. having an issue with json_encode and encoding.... if anyone can help
i pull an array of fields from utf8 database that has some accented characters.
When i put it through json_encode, its blank.
Printing the response from db, it shows the weird boxes in place of the accented chars. I tried utf8_encode recursively through array which turned them back into accented characters and json_encode still gives blank from that.
I thought json_encode takes utf8? What is going on??
20:04
@agentprovocateur What did json_last_error_msg() give you?
 
1 hour later…
21:07
id have to reprint that. something along the lines of encoding error i believe
it might have been "5"
21:28
@agentprovocateur Something somewhere isn't utf-8
The rule is: if you have to use utf8_encode you already lost
5
hi @FélixGagnon-Grenier
21:47
Jello :)
@PeeHaa lost my day today because a csv file data interchange directory has some files in utf8 and some in some ISO
but i guess its right. If someone doesnt know how to use utf8 it could randomly change
@user3655829 Switch jobs? :P
I am a professional csv data files switcher
Could be worse :)
or my bosses think that its the way to go and it sells
21:49
@user3655829 At least it's not yaml :D
The newest thing is the best. We have 5 directories (that is like an complex endpoint) and each has a Archive folder in it. And we throw csv files to eachother every 5 min
*15 dirs
@user3655829 So you're a glorified data entry guy?
With access to a scripting language to automate your data entry.
Essentially you are an ETL that consumes food.
Its not done because of that. Its done because of in that other piece of software there is a function for a csv output and thats is where the bad ideas came from
and you absolutely could replace it with a shitty custom rest call and it would be better.
I could replace WordPress with a shitty SSG and it would work better too, but hey somebody's gotta make money off crappy code I suppose :/
22:40
> The OpCodes haven't changed much.
It changes. 6 months ago I'm updated opcode's page with dozen of new entries.
And worst is that they not only added, but removed too. Opcode added in one commit and removed in next for example - it's common case.

Also, description of `ext` value of opcodes is absolutely obscure at all.
@rjhdby Last revision to internals2/opcodes.xml was Mon Jun 25 13:11:45 2018 UTC
That's a little more than 6 months ago.
@Sherif Yes, I'm changed work last year and little lost in time :) You can check by commit history
I just did
You thought I pulled that date from memory?
@Sherif I'm about that I really update this page (maybe I last who do it, no matters)
"Internals" part of docs in terrible condition, that I want to say
@NikiC any chance your top github repo scraper thing can show common use-cases for anon classes for me? :)\
@PeeHaa in what form?
Any form I guess. To get an idea what info is more useful (current ns/contract)
So the case where it implements something
@agentprovocateur mysql? Sometimes the client connection has a different emcoding than column and mysql converts that before you get it in a variable. You need to use „set names utf8“ i believe, google mysql client encoding php or similar
@Sherif Okay, not 6, but 19. And that it changes?
Might be nice to actually put the top n on heap.space I guess for actual working online search
Jpv
Jpv
22:59
Hi Guys, quick question. Anyone fluid on Laravel? I'm kind of new, been trying to figure out how to setup a route group
I have a resource route
> Route::resource('settings', 'settingsController');
and now needs to nest a "modules" on it
so i created this:
> Route::group(['prefix' => 'settings'], function()
{

Route::resource('routes', 'modulesController');
});
localhost/settings works fine
but localhost/settings/modules does not load anything
no errors either
You called it routes not modules
Jpv
Jpv
oh right.. well its routes.. just htought here would be confusing
Load Route::resource('settings', 'settingsController'); after group.
Jpv
Jpv
cause you know .. routes and routes
ahhhhhh
@Tpo
@tpojka u r a genius
PeeHaa is Laravel expert.
23:04
lol :P
Jpv
Jpv
thanks!!!
23:25
lol, all the open PRs to php/doc-en want to merge 10,000+ commits :-P
I wonder what can cause that
I'm sure it's related to the docs move, probably some history difference
23:38
@SorinNunca did that work for you? I didn't realize I could add the email under gmail until you mentioned it :x
keep getting "couldn't reach server, please double-check server and port number" tried using smtp.gmail.com with gmail username/password, and tried the default php smtp with php username/password, no dice
Jpv
Jpv
@Tiffany sorry to meddle. Have you tried going to security settings and "allow unauthorized apps"
that might be it... just noticed a couple emails of third-party being blocked
@Jpv \o/ thanks
01:00 - 17:0017:00 - 00:00

« first day (3401 days earlier)      last day (1771 days later) »