« first day (2446 days earlier)      last day (2502 days later) » 

1:11 AM
\o
 
1:28 AM
hodor @WesStark
 
hodor
- 23 days
4
 
 
3 hours later…
4:04 AM
!!dad
 
Mountains aren't just funny. They're hill areas
 
morning
o/
 
laravel people are so good at this game. they enjoy the conflict, so much publicity for them
 
o/
@WesStark I use Laravel everyday, does it make me a bad person ?
 
laravel maintainers i mean
 
4:12 AM
I think this laravel conflict is crazy
 
no it doesn't. i'm on the "whatever works for you" side tbh
 
and stupid
I on the "If you don't like somthing ignore it" side
same for many youtube content, if you don't like just leave and don't hate
I am on @Jeeves side
 
@Valentincognito pats shoulder.
 
4:53 AM
@Jeeves you alive \o/ ,btw good morning room
 
@Linus How are you today?
 
@Jeeves i am fine sir.
 
@Linus That's good.
 
5:18 AM
https://stackoverflow.com/questions/44772439/scrapping-google-with-p‌​roxy
 
5:40 AM
@Ekin "Turkish high schools to stop teaching Darwin's theory of evolution" You guys are going the wrong way.
and why everybody keeps calling it theory? cc @tereško
 
coz it's was not accepted ?
 
it's not accepted only by the church people
 
discovery.org/a/6401 ..... may be this answer your question
 
hello, I'm trying to automate my installation of my extension. I want to check which php version is available and what is the API version, based on which I can install the extension. Are there any scripts, which I can refer as to how to find the installed location, php version etc.
 
@JAamish no
I am doing the same in Java and it's a PITA
especially for the SAPIs that don't provide easy access to php info via cli
 
5:53 AM
@Gordon Oh, you mean you are doing the installation via Java
instead of shell script
 
yes. but it shouldnt make a difference
for instance with Apache and mod_php you got no other chance than to find a php enabled location on the host and place a phpinfo script which you then retrieve and parse
 
In Java, do you execute something like "php -v | grep version" to get it
so you place a phpinfo in tmp and execute it - something on those lines
 
yes. but it depends on the server api which executable to call. apache with mod_php has no executable you can call this way
 
morning
 
no, not in tmp. in a php enabled location on the webserver. apache with mod_php has no executable you can call this way
 
5:57 AM
Ah! Okay
 
@WesStark Awesome. :D
 
Thanks @Gordon Good tips. Let me explore further. But if SAPI exposes from cli options, it would be great
 
when you do php -v you are using the CLI SAPI. All the info you get out of this SAPI is only valid for this SAPI. You would install your extension to this SAPI only unless it is sharing it's php.ini with some other SAPI.
so if you want to install to fpm, you'd need to exec php-fpm instead
and for mod_php, you cannot exec anything because its baked into httpd
 
you mean to say, there could exist a standalone php, which is different from the php-fpm that is installed on the system. and also a mod_php which is within httpd and would have its own extension location. Is my understanding correct?
 
yes
 
6:01 AM
so when we install, we execute these three separately to find out each of them and install separately
 
you need to find out what is installed on the system
there might be a php cli but no fpm or no cli but fpm. and for mod_php you have to look into the apache config or it's mods_enabled folder
also, for apache and fpm you will usually need to restart fpm or apache for your extension to get loaded into memory.
 
Mornin all
 
got it. Once again thanks a lot @Gordon
 
you are welcome
 
@JayIsTooCommon Don't worry, we don't publicly blame @WesStark on the website yet.
 
6:10 AM
@Danack is "unified" a better word to describe closure from callable syntax?
 
@kelunik yeah, do it on reddit instead. more exposure
 
:(
i'm doing some C too today
i need to create a couple of (hopefully simple) functions
aaaaaand sourcetree is dead
 
6:33 AM
hmm, when using call_user_function_ex do I always have to supply a return value ptr or can I just pass null when the function returns void anyway?
 
agh, lxr down again?
 
hmm, apparently I need to pass a ptr
 
7:00 AM
 
wtf with lxr?
is lxr.room11.org is what considered to be the most up-to-date lxr?
and will lxr.php.net be ever back online?
moin
 
hey pine \o
 
o/
 
morning all
 
Shit, it's Mayank's birthday, but I can't remember his username on here
 
7:07 AM
@Jimbo nullpointer
 
@Linus Definitely?
I haven't seen him in ages
 
So it is
Happy Birthday @NullPoiиteя!!!
14
 
@Jimbo he was here the other day :B
 
how is a function represented internally? is there some sort of struct for that?
 
7:14 AM
zend_function_entry ?
 
typedef struct _zend_function_entry {
	const char *fname;
	void (*handler)(INTERNAL_FUNCTION_PARAMETERS);
	const struct _zend_internal_arg_info *arg_info;
	uint32_t num_args;
	uint32_t flags;
} zend_function_entry;
thanks
 
user image
2
did they draw a penis with the mars rover :B
 
no
 
looks like a penis :B
 
but it wasn't on purpose
 
7:17 AM
who knows ;)
 
also, who knows if what aliens draw on earth is not an alien penis. I mean, they are aliens. their weenies could come in all shapes
 
I'm pretty convinced that this is the case. I mean, what else would they draw?
 
i've updated php and i think it's got rid of a memory leak, which i thought it was something i've created
 
is *handler in the zend_function_entry the actual code of the function?
 
it's probably a zend_function ?
 
7:28 AM
can I replace this somehow when the function gets registered?
 
i have no idea :B
 
does my ext need to be a zend ext then?
 
my understanding consists in looking at others code and guessing how it works
dunno, you better wait for joe or bob...
 
yeah
 
someone explained me what was the difference between zend extensions and regular extensions but i've forgot
 
7:32 AM
@NikiC @bwoebi someone arround who can help me with this zend heap corruption?
https://gist.github.com/staabm/2d30fdcd1b298e2c38a60b3457e44c93

is this core dump enough information to create a php bug? I dont have a self-contained repro-code. We see this problem from time to time in production..
 
Morning you beautiful people
 
@WesStark zend_extension means it extends the zend engine. They normally provide functionality you can't have with normal php extensions. – pmmaga :P
 
:B
that.
yeah lol seems the memory leak is gone \o/
 
Anonymous
8:04 AM
mornin
 
yo Jayyyyyyyyyyyy
 
morning, bitches
 
mornin Joe o/
 
Anonymous
yo hojoe
 
8:14 AM
o/
 
@JayIsTooCommon Joedor?
 
Anonymous
JoeHoe
 
\o
 
mornin all
 
8:20 AM
Mornin y'all
 
o/
 
joedor
 
what is cache_slot in typedef zval *(*zend_object_read_property_t)(zval *object, zval *member, int type, void **cache_slot, zval *rv);
and why is it so hard to read a property from an object zval?:D
the only easy thing in php-src is producing segfaults
 
nvm.
 
Anonymous
8:32 AM
!!wotd
 
parallax: the apparent displacement of an observed object due to a change in the position of the observer.
 
Anonymous
@PeeHaa I think your parallax is hot.
 
@JayIsTooCommon What's the tweet? blocked at work :<
 
Anonymous
Just calling out Ocramius for blocking him but context is pretty funny
 
Lol, ignores it when people call him out, expects people to listen to him calling someone else out.
 
8:38 AM
@Gordon segfault drivend development ;)
 
@WesStark are you trolling?
 
@tereško i'm not. perhaps if they stopped calling it theory people would think it's not just that...
 
@Gordon the vm caches expensive operations, the slot for the cache is passed to the handler so that custom objects may also use the cache
@DaveRandom lxr is down :(
 
@JoeWatkins can I call this read_property directly on a zval of type object and do I need to call this cache slot then?
 
again?
moin
 
8:45 AM
!!uptime
 
╔═══════════════════════════════════════════════════════════╗
║ [11 hours, 23 minutes and 21 seconds] without an accident ║
║                since [2017-06-26 21:22:07]                ║
╚═══════════════════════════════════════════════════════════╝
 
Anonymous
think he means lxr
 
Anonymous
hoi daveStranger
 
@WesStark the problem is that shitheads like you started using word "theory", because they wanted to sound smarter, when making a guess. Theory is a system of laws, observations and proofs, that creates a single, unified picture.
 
I can't hit any of the boxes with SSH
 
8:46 AM
@JoeWatkins I guess my question is how to read a public property from an object
 
the technical term for "guess" is "hypothesis", @WesStark
 
@Gordon only some operations are cached, you probably shouldn't mess with the cache slot (pass NULL) ... there's zend_read_property API
 
my VPS (which is what lxr.room11.org points to) is up though, so that's where you get the 504 from
 
@JoeWatkins zend_read_property? okay. trying that then
 
I think we need a new host tbh, all of the reliability problems we've had seem to be down to that
@LeviMorrison can you reboot all of the lxr VMs?
@JayIsTooCommon hey hey hey
 
8:48 AM
@tereško explain that to average people
 
Anonymous
> shitheads like you
 
Anonymous
<3
 
SELECT Avg(people)
 
@staabm <signal handler called> looks fishy. Is this a segfault while trying to kill it or omsething?
 
==> 0
 
Anonymous
8:49 AM
Where have you mean @DaveRandom. What is your excuse.
 
Anonymous
Also, where have you been?
 
doing a metric shit-ton of RL
 
i wouldn't have called it theory
 
@staabm Are you using a ZTS build?
 
just like more and more stuff keeps happening, it's ridiculous
 
8:50 AM
@JayIsTooCommon i can't oppose to that
 
@WesStark do you also want us to stop using word "quantum", just because of Deepak Chopra has abused it? The word "theory" has been abused since 1980s in the popular culture. It was used in science since the at least 18th century times of Ancient Greece.
 
I dont think so

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.19-1+deb.sury.org~xenial+2, Copyright (c) 1999-2017, by Zend Technologies
with blackfire v1.17.1~linux-x64-non_zts70, https://blackfire.io, by SensioLabs
this could be the case as we do a apache restart when the apache error log gets a "zend_mm_heap corrupted" error. let me check that.

how to properly debug a "zend_mm_heap corrupted" error?
 
yes please @tereško
 
Missing http_cache_etag English Version – #74821
 
it's blackfire @staabm
unload it ...
nobody can really help, it's closed source ... grumble grumble ...
 
9:05 AM
@JoeWatkins how did you identify the error? I will give it a try without blackfire loaded
 
blackfire is loaded, if you have an error and blackfire is loaded the first thing to do is unload it, because nobody except 3 people can debug it ... if the error persists after unloading blackfire you can get actual help ...
 
I see. will do it, thx.
 
yw :)
 
9:21 AM
morns
 
lol
 
Anonymous
9:46 AM
reddit strikes again
 
Anonymous
> but it's pretty much impossible to achieve anything of value in any language without a framework or years of experience.
 
whether to use union or join for searching multiple tables and then combining the results into one ?
 
@JayIsTooCommon because value isn't subjective at all
 
Anonymous
This is in response to a beginner asking for advice as well
 
morronins
 
9:50 AM
https://github.com/borracciaBlu/aws-upload

Hi all,

I'm currently working on a open source project that it could be interesting for someone.

The project is a cli tool to upload files through rsync.

The main point is the api. You define a json file for eache project you are working on and then you are able to upload from cli.

I recently added some functionality like edit and copy.
If you have any suggestion, opinion or idea it would be amazing.
 
@borracciaBlu sounds cool.
 
@borracciaBlu what does your cli tool offer over just using rsync?
 
the main points is the configuration files and the tab functionality
especially when you have to exclude some folders the syntax of rsync can be very verbose
you could workaround with an alias
 
@NikiC @bwoebi @JoeWatkins another backtrace from a coredump
https://gist.github.com/staabm/816dec86a5945ef353c4912a7b695d4d

the dump was generated at a time when blackfire was still enabled.
it is disabled/not loaded now.
 
but it's a little bit messy when you have to edit
 
9:55 AM
@staabm heh, so use tideways instead of blackfire… or instana :)
 
@Gordon if you remember I already posted here about this project
 
@borracciaBlu I am 40. I dont remember.
8
 
ahahahah XD
@Gordon the difference this time is that I've added some new commands like: new, cp, edit, check, self-update
 
@Gordon let me first double check blackfire is the reason for our problems ;)
 
Anonymous
> Google fined $2.7bn for illegally favouring its own shopping service
 
9:59 AM
@staabm it looks like something hooking into the C shutdown functions.......which sounds like a thing Blackfire would do.
 
@staabm possible to get a valgrind trace?
 
did someone else notice that in js 3 ** 3 works, but -3 ** 3 does not :B
3 ** 3
27
-3 ** 3
VM109:1 Uncaught SyntaxError: Unexpected token **
@samayo y u banned?
 
10:16 AM
(-3) ** 3 works :P
 
Anonymous
heh wtf @samayo
 
@Linus gotta love js
 
@Danack how about "unequivocal" It's from dictionary but should be quite like "unambigous" ?
 
10:31 AM
@PeeHaa hey sexy, can you restart lxr.room11?
 
Anonymous
@WesStark waiting for @LeviMorrison
 
Anonymous
also, call him sexy again and we'll fall out.
 
ahahaha
you are the only allowed to call him sexy?
504 Gateway Time-out
nginx/1.12.0
whenever i see this, i always blame nginx
 
Anonymous
@WesStark yep
 
@bwoebi yes, it should definitely use ROS for writing.
 
10:51 AM
How can i post some content when a user logged in using facebook to my appliaction??
 
@AbhishekMishra You'll need an access token and the users permission to post, then you can create posts via Facebook's API.
 
5 messages moved to Trash
 
@kelunik fine for the amp v2 branch
 
@kelunik which user permission i need to approve?? I just want to post some content when user login first time using facebook..never in future..
 
@AbhishekMishra Post do facebook or just display to the user?
@bwoebi Saying that code is fine is like saying Artax or Dns were fine before the rewrite...
 
11:06 AM
@kelunik Content should be posted on user's timeline...
 
@AbhishekMishra Then you need the right oauth scope for that, you can just google that.
@bwoebi Do you have any idea for github.com/amphp/artax/issues/115?
 
isn't long in C a 64 bit unsigned integer?
why is C so confusing.
long long int
 
@WesStark Depends on the system arch.
 
@WesStark long long ago
 
<?php
require_once("/path/to/facebook_php_sdk/facebook.php"); // set the right path

$config = array();
$config['appId'] = '167252680143474';
$config['secret'] = '29d8d368420dc1e81198fce224ac71c9';
$config['fileUpload'] = false; // optional
$fb = new Facebook($config);

$params = array(
// this is the main access token (facebook profile)
"access_token" => "CAACYHYyWcnIBAJ1LwRLTERQNXJ4qRCqoTf2pgs1V2AiZCOreWAH0bY2UKaoyD3elfcEZAZAs6fZAEYPAZC5OlU6ZCg8Org32D13LiencxZA0PsNzkQPPuZCiZAukgMnqLXM0F2ZBlYZAnZB08qVwOo6DgiCJSlkoZCb9VVs0ARsleZBcduzTQKZBvIcvjLZBXXr5ye8R4FcZD",
I got this code for posting on user's timeline
 
11:12 AM
@MadaraUchiha i can still remember
 
@WesStark Just use uint64_t.
 
how that music used to make me smile
 
Anonymous
@MadaraUchiha any idea why @samayo is banned?
 
secret looks secret
 
@kelunik will it work without approving extra user permission??
 
11:12 AM
yesterday, by Madara Uchiha
@Kurisu From what I can gather, he contacted SE staff for no other reason than to be rude, rude enough apparently to warrant a suspension on main.
 
@AbhishekMishra What's extra user permission?
 
Anonymous
@MadaraUchiha drugs.
 
vOv
I wasn't the one to suspend them.
 
@kelunik publish_action
 
@AbhishekMishra The user needs to approve that while logging in via OAuth obviously.
 
11:15 AM
@kelunik thanks. trying
 
@kelunik Okay
 
@WesStark The ninja thing is really good, because it sets the focus to the eye instead of the ear.
 
Anonymous
lol
 
Anonymous
I think that was a back-hand compliment @WesStark
 
you know what also doesn't set focus to the ear? no logo at all
best logo ever
:B
 
11:18 AM
@WesStark boooooooo
 
thanks uintwhatever worked. what is that?
 
Something about the new ear bugs me, but I can't tell what it is, it's just a minor detail somewhere.
@WesStark The same thing, but with a fixed size, so not system dependent.
 
Anonymous
It's probably the artist
 
@JayIsTooCommon Nop.
 
RETURN_LONG and similar in php always refers to the php integer type (32, 64 depending on the platform, signed)?
but the u of uint isn't unsigned?
 
11:20 AM
guess yes, but actually have no idea ^^
@WesStark It's unsigned, didn't you ask for that?
 
i need signed 64 bit
 
i just was wondering what long was
 
random fun fact. when you put a uint_64 through sprintf("%d") on a 32bit php it will convert it to a 32bit signed int
 
because RETURN_LONG does the magic probably?
i just tried sint64_t
because that's gotta be the right name
 
11:23 AM
because php. i forgot the details.I just had this happen to me a month ago and then struggled for a day to somehow print the correct number
 
'sint64_t': undeclared identifier
fuck you c
 
you have to include the types
 
i didn't need to include uint64_t tho
 
#include "sys/types.h" iirc
 
why uint worked :B
C is such a mystery
it was :B int64_t without the s. and i didn't need to import it. probably the compiler can figure out automatically
en.cppreference.com/w/cpp/types/integer for reference. thanks guys
 
11:47 AM
what is the rv in name = zend_read_property(php_sample_greeting_class_entry, getThis(), ZEND_STRL("name"), 0, &rv);?
I would have guessed its the return value but that is apparently returned from the func call
 
Hello there
 
!!dad
 
Have you heard about that new movie Constipation? I guess not, because it hasn't come out yet
 
@Jeeves no
 
@Linus Why not?
 
11:54 AM
@Jeeves no ,i said no.
 
@Linus I don't care what you said.
 
please, stop
 
sorry
 
user4962466
Hello php folks!
 
user4962466
Is anybody profiling with xhprof on PHP7 ?
 
11:56 AM
@Jeeves please tell a dad joke to @tereško
 
@Gordon No sorry...
 
he is quite defiant today
 
@NikiC is scalar objects KO in 7.2?
seems it is :B
 
are the switches mentioned on https://bugs.php.net/bugs-getting-valgrind-log.php enough to get a proper callgrind trace?

valgrind --tool=memcheck --num-callers=30 --log-file=apache.log /usr/local/apache/bin/httpd -X
 
12:09 PM
@staabm I haven't tried valgrind on apache yet… anyway, you need USE_ZEND_ALLOC=0 too
 
ok, we need to check this out
 
A json_decode() cast as an array fails with numeric keys – #74822
 
@Jeeves apparently it's fixed on 7.2
 
@pmmaga Good, how old are you?
 
...
 
12:27 PM
@WesStark definitely
 
gods i can't compile 7.1
 
how to debug this error:
(103)Software caused connection abort: Failed to flush CGI output to client, referer:
 
libiconv_a.lib(iconv1.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
fatal error C1900: Il mismatch between 'P1' version '20150812' and 'P2' version '20130802'
the dependencies are the right ones...
 
user4962466
@gordon thanks i didnt know it
 
posted on June 27, 2017

New Cyanide and Happiness Comic

 
12:44 PM
I cannot understand how Argument Unpacking works. It has a totally different behavior in different situations.
 
ThW
12:56 PM
hmm that is what I would expect as the output
 

« first day (2446 days earlier)      last day (2502 days later) »