« first day (1412 days earlier)      last day (3540 days later) » 

@DanLugg I finally get my name in the credits section of phpinfo(), and you guys want to remove it?! *shakes first*
 
user895378
@salathe lol, sorry 'bout that.
 
@ircmaxell :)
 
freaking LXR
I was on trunk, did a search, and got 5.5 as a result
 
7:24 PM
PHP credits, y u no Anthony?
 
Honestly, I think we should get rid of credits. Including author tags in files...
 
That, and the ZEND prefix ;-)
 
yes
 
What is Zend's current relationship with the core development process?
 
@Chris Skipping numbers.
 
7:32 PM
@DanLugg and shoe-horning features in at the last minute... (I'm looking at you, Zend-Opcache-optimizer-plus++)
 
What about those bribes?
 
This just has to be the worst thing I have seen today
0
Q: PHP Rewrite rule to Nginx

Danial GordiI have this function on a php script: <?php function giu($re, $i=''){ chatroom::checkWWW(); global $giu; if($giu == null){ global $site_url,$options; if($options['url_type'] == 'rewrite'){ $i = strtolower($_SERVER['REQUEST_URI']); if(!empty($op...

 
@PeeHaa wow
 
@salathe thankfully laurence is working on finally bringing it into the engine...
 
@ircmaxell So it would lose Zend relationship?
 
7:37 PM
@webarto what zend relationship?
 
guys i have a virtualhost problem can anyone help me?
 
other then the fact that Zend never did what they promised to do in the first place
 
BTW this meta post has been unlocked again
80
Q: Volunteer to help mentor one of 16 women starting a career in programming

LauraDiversity in tech has become an increasingly urgent issue, both on- and offline. We have always tried to make Stack Exchange an inclusive environment, but we know we can and should do more. One thing that we're excited about doing is participating in a new fellowship at the Flatiron School, an...

just sayin
 
@ircmaxell Right, they've open sourced it, sorry. What did they promised if not a problem?
 
I have the following settings:
NameVirtualHost 89.104.220.207:80
NameVirtualHost 89.104.220.207:1500
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost 89.104.220.207:80>
ServerAdmin webmaster@example.com
DocumentRoot /var/www/learnbypower.dk/html
 
7:39 PM
@webarto to actually integrate it. It still can't be built statically. Yet alone tied into the engine
 
however when i try 89.104.220.207:1500 it cant seem to find anything
 
for example: there are still 2 string interning systems. One in Zend, one in optimizer. Why? Because zend.
 
This is odd
ServerName learningbank
ServerAlias learningbank
But really check your error log. All the info you ever going to need is in it
 
why is that odd?
 
because having an alias exactly the same as the "normal" name is odd
Why wouldn't it be odd :P
 
7:42 PM
@ircmaxell Got it, it's not their priority I would assume, no commercial value.
 
which is why a number of us are still pissed about 5.5
we delayed months, for something that was never delivered
 
ZendServer7 and ZendCon2014 is the focus now.
 
no, but ... that is annoying ...
laurence had the patch to build static since three days after it was open sourced ...
 
I don't recall the exact numbers, but I believe my entire Bachelor of Science in Computer Science (3 year equivalent spread over 8+ years, long distance, government subsidized) cost less than this 12 week course... You have to wonder if these type of initiatives aren't simply gouging money from people instead of really helping the cause. — Mark Rotteveel 4 hours ago
 
7:45 PM
@ircmaxell Weird. Wasn't it @bwoebi who implemented that?
 
@AndreaFaulds Oh good point, sorry, confused that
 
that'll be opcache anyway ...
 
Wow, that mentor thing on meta... I was initially supportive, but Andrew Medico makes a damn good point. I already do a lot of volunteer work in my community, and we give to several charities. If I am going to take some of my time to give to some additional project, it ought not be for-profit. There are a lot of nonprofits that could use my time too.
 
Stack Exchange the company has always been heavily influenced by our community and vice versa. Meta exists so that the company and the community can build things together. This is a new type of initiative, but we think the same dynamics apply. — Ana Hevesi ♦ yesterday
 
@JoeWatkins It's always opcache. We should move it to /Zend (wasn't that your idea? can't remember)
 
7:46 PM
hahahahahah s/influenced by/ignoring
 
it was promised
I've talked about it, we've all thought about it though ...
 
implied rather ...
 
> Advancing the World of PHP
 
@AndreaFaulds laurence said he's been working on it for 7
 
7:47 PM
@ircmaxell Oh, that's good news
 
Bullshit, people here (for the good part) advance PHP, thus the World.
 
I still think it's fubar that Zend didn't do it, but whatever
 
yeah it will only take another one or two years
he works at zend now
 
@webarto then call them out
@JoeWatkins Oh he does? I thought he was still external
 
They'll revoke my cert.
 
7:48 PM
I've seen him reply from an @zend address, I think maybe consulting for them at least
 
> The emphasis should be learning technology! Internet Explorer does not care if you are a man, a woman, or a Cylon. It hates you regardless. Just remember that.
 
@ircmaxell when I was younger, I thought ZCE was a 1337 thing, now I see it's only commercial thing :(
 
honestly, I doubt it'll ever really be integrated ...
the problem doesn't stop with interned strings, a php installation using opcache and apcu (or any other user cache, or memcached) has three allocators, all manipulating different kinds of mapped memory ... silly ...
this ast extension we want ...
the ast doesn't persist after compilation ...
this makes for quite a hacky implementation ...
which sucks ...
there won't be a tidy way to achieve ReflectionFunction::getAST()
things worsen when we are on top of a cache, we can get file/lineno of function from internal stuff, probably, but what if the file changed and the opcache did not ... there's no internals to work with opcache I don't think ... it's all so messy ...
 
> what if the file changed and the opcache did not
then you're fucked either way
 
perhaps ... I don't really see a nice solution to this though ...
well ...
there's one
an ast cache ...
or ...
(someone else is meant to say something here)
 
7:59 PM
Well,
you could simply not add reflectionFunction->getAst
but let the extension have a function to get the ast for a function
 
Ich habe keine Ahnung.
 
and the extension could listen to an event "pre-ast-destruction" which would cache the AST internally...
so if you're not using the AST extension, the memory is freed. But if you are, it's cached internally
 
you said event ... /me waits for daniel to appear from the ether ...
I think, best have a go ...
 
lol
 
Someone with /Zend karma please merge this
 
8:05 PM
(not to you, to the original author)
 
> + Warning: This function is special-cased by zend_compile.c and so is usually bypassed */
 
Ohhh, emitting an opcode instead of a function call... not bad
 
doesn't belong in phpdoc
 
it's only bypassed for a direct call. indirect calls ("is_int"(), etc) will still call the function
 
I may have some good answers from people in this room, so...
0
Q: Why are C static libraries frowned upon?

Florian MargaineThere are 2 arguments for having shared libraries: It helps reduce disk space. When a shared library is updated, all the binaries depending on it get the update. There is mainly one drawback for shared libraries: They introduce dependency hell. On desktop computers, the 1st advantage do...

 
8:11 PM
I agree with you
 
wait
filename/line start-line end doesn't give us what we need
 
@JoeWatkins no, because 2 functions can start on the same line
 
yeah
 
@ircmaxell damn :P
 
my god ... we're going to end up taking strings as input aren't we ...
 
8:12 PM
why is it so hard to statically compile any C program then :(
 
tell me it isn't so ...
 
I downloaded a random small C program... it needs 3 libraries. libncurses, libm and libc. My system has none of them.
 
libc ?
yes it does ... and libm
pretty sure nothing would work if it didn't ...
 
-lm -lc -lncurses
 
what system ?
 
8:14 PM
well, try adding -static and ld finds nothing
fedora
 
you do have libc and libm, you probably don't have them as static libraries because that wouldn't make sense, esp in the case of libc ...
 
why doesn't it make sense to have them as static libraries?
if I want to statically compile, I need them...
 
you want to statically link the c runtime to your binary ?
 
that's really strange ...
 
8:15 PM
0
Q: Why are C static libraries frowned upon?

Florian MargaineThere are 2 arguments for having shared libraries: It helps reduce disk space. When a shared library is updated, all the binaries depending on it get the update. There is mainly one drawback for shared libraries: They introduce dependency hell. On desktop computers, the 1st advantage do...

 
@JoeWatkins ...aside from the fact that people don't do it, why?
 
glibc-static
I can't find libmath ...
 
probably part of glibc-static
 
possibly ...
it still doesn't make good sense, where are you going to deploy that doesn't have a C runtime ?
is every binary on that system going to be statically linked to a runtime ?
and are you mad ?
 
I've had broken systems because some programs required different versions of libc
@JoeWatkins what's wrong with that?
fwiw, Go does that for its binaries
 
8:21 PM
we do that for ours ...
but we are not C ...
 
it's 2mb on my system shared, lets say it's probably 1.8 stripped, that's 1.8 megabytes of additional memory for every binary on the system, that's not a very good idea ...
 
@JoeWatkins when it's dynamically linked, it's not copied into the process's memory space at runtime?
so it's 1.8mb less disk, but the same memory overhead, no?
 
@JoeWatkins why? disk space is cheap if it lets me avoid dependency hell
 
yeah, sorry ...
but you create another kind of hell ... what about 150 programs in and libc gets an update
you have to recompile everything on the system again
 
8:24 PM
If you want to learn proper OOP, the very first step is to leave WordPress behind. — Second Rikudo 8 secs ago
 
and no, dynlib shared
3
Q: How Libc shared library loaded in memory and shared amongst processes?

user718429I want to understand how Libc shared library loaded in memory and shared amongst processes? Is there one libc instance loaded in memory and shared amongst all processes or is it each libc instance in memory for each process. I am unclear about how is libc shared between processes. Thanks Aditya

 
@JoeWatkins no, I'd let every application give a new version. A bump in a library version has to be tested before being released.
 
@JoeWatkins well, if that's the case, then it would help with cache locality for non-primary applications
but for a primary application (meaning the reason the server exists), the effect would be negligable...
 
what if it's a security update that it would be foolish to ignore ?
maybe, maybe ... but you can't build systems like that ...
maybe not so bad if you're going to link literally 3 things to their own runtime, I still wouldn't, but it couldn't be the default thing to do ...
 
for things like libc, I don't think there's much benefit
 
8:30 PM
oh yeah, there's a benefit in linking to libxml static, or whatever ... but the c runtime, I wouldn't touch ... unless I were on something embedded, with no resources at all, I might statically link and strip ...
 
right
 
(something embedded that consists of busybox and your binary or few binaries, as they often do)
 
where you're litereally the only binary running
 
yeah
 
yeah I guess for the C runtime the advantage of shared library outweighs the benefits of static linking
although libc dependency issues are the ones that really break your system
 
8:32 PM
1 message moved to bin
 
try blacklisting it in your package managers update thingy ...
I dunno how ...
 
yeah, so there are 2 applications that I can't run together?
@ircmaxell your survey doesn't really make sense in France
 
I can't imagine what would lead to that tbh
 
@FlorianMargaine no?
 
there is healthcare to handle any medical issue, no employer has to care about that
 
8:34 PM
I think he's going to say because of healthcare ...
 
@FlorianMargaine including mental health?
 
yeah ... we have that too ... but I work for a company in the us, and my immediate boss is in serbia ... guess pretty common in tech ...
 
also: cost isn't the only factor of that discussion
in fact, it's the least important factor
support is the most important. Do they understand it, and encourage help
 
that's what I'm saying, it's completely normal for a person in this country to goto their doctor and seek help for mental health issues, but the people I work with aren't in my country, likely do not have the same attitudes to it maybe ... I'd never actually though about many of those questions before I read that ...
 
8:37 PM
yeah, every employee has to go see a workers doctor at least every 2 years
yeah exactly what Joe said
 
2
Q: How to resolve host from /etc/hosts via PHP function?

derektraumIt seams PHP function gethostbyname() doesn't resolve host, added to /etc/hosts (while ping command in terminal works correct). How to resolve host from /etc/hosts via PHP function? Thanks.

 
mental health is not really frowned upon in France
 
Interesting, have anyone seen this behavior before?
 
pop into #phpmentoring some time and talk to Funkatron about that
 
my question seems to be controversial.
 
8:43 PM
anyone ever seen a psychiatrist ?
 
@SecondRikudo I think it's a dupe of stackoverflow.com/questions/3264264/etc-hosts-doesnt-affect-php but don't know yet
 
I haven't, I know plenty of people who have though
 
@FlorianMargaine you have to remember that it's also kinda different in information technology sector. Especially since quite a large percentage of developers are borderline-autistic
 
user895378
@JoeWatkins I have. Not on the company dime, though. Just because.
 
Court order?
 
8:46 PM
do you guys think the question should be closed as opinion-based?
 
when I was real young, I got in some trouble, a court ordered I goto anger management classes and see a shrink, they selected "art therapy" as my treatment ... so I go to this place, first time in, she sits me down starts asking me questions, leaves some paper and drawing stuff on the table ... we chat for an hour, I scribble on the paper ... she then invites my mother the next week to discuss where she thinks the treatment should go, starts to extrapolate all kinds
 
user895378
@Danack lol, no. Just general well-being.
 
user895378
I found it useful to talk to someone about things. I'm generally not very good at vocalizing frustrations. So they tend to build up until I rage quit or freak out on people.
 
the things she was saying were based on the colours I used in the drawing ... I let her ramble for a few minutes, when she asks me "do you have anything to add John" ... "yeah, you didn't give me a pencil sharpener, half the colours were broken" ...
 
=)
 
8:49 PM
I went back, had too, court order ... she didn't try to analyze me again though, just left me alone ...
 
:-)
 
@JoeWatkins So when did you switch from John to Joe?
 
about 16, the name on my birth certificate is John-Joseph (no middle name), I share that name with my father ... I really hate that guy ...
 
8:54 PM
@JoeWatkins well ... I managed to blow up part of kitchen in highschool dorms .. I had to pay for damages but that was about it
 
Sorry to hear that Joe
 
@tereško Blow up as in hand grenade?
 
light-bulb bomb, technically ... lot's of gunpowder
 
@JoeWatkins My grandmother insisted my grandfather go by Osmond instead of John, because she thought it sounded more upper class....
 
I was sitting at the window of the class, at the back ... smoking, right arm out the window, teacher comes to desk infront and opens the window, leans out to see where the cigarrete I obviously chucked out landed, I made the decision to kick her up the ass ... she fell from the window and broke her ankle ... and I got kicked out of school and prosecuted ...
 
8:56 PM
wow
 
that's kinda impressive
 
heh
 
not really ... I never got back into a normal high school ... never sat any exams ...
 
All I did was listen to Nirvana and smoke weed secretly behind the garage. Felony assault? Impressive! :)
 
8:58 PM
yeah, I'm not sure kicking a teacher out of the class by the window is a great idea
 
I doubt that it was the intention
 

« first day (1412 days earlier)      last day (3540 days later) »