« first day (1833 days earlier)      last day (3121 days later) » 

12:01 AM
Random question: Does the expire time for a session cookie header need to be linked to the expire time for the caching headers?
I'm guessing they are kind of linked through the cache-control header?
Set-Cookie: SessionTest=TjDDO0P6PT; expires=Fri, 23-Oct-2015 00:14:52 UTC; Max-Age=1000; httpOnly
Expires: Fri, 23-Oct-2015 00:14:52 UTC
Cache-Control: private, max-age=1000 pre-check=1000
 
My gut feel says they're independent.
 
I think this could also be asked "can any explain why I copied and pasted the code to generate those headers from a place that did them as one block, "?
 
only 5 more days until I can open voting on void :D
 
What percentage likelihood do you think it has of passing?
 
I don't know.
some things are pretty obviously uncontroversial
this one isn't. it is at least slightly controversial. but I have no idea how the vote will go
 
12:15 AM
Trying to put this neutrally - a lot of people have expressed concern about void vs null, and that hasn't resulted in any change in the RFC. So those people at least seem unlikely to vote for it.
 
Yes, I know about that
@rdlowrey Aerys doesn't use declare(strict_types=1);... are you one of THEM?
 
12:32 AM
@Andrea nah, params of certain internal funcs just suck.
 
@bwoebi hm?
such as?
 
Hi Guys!
I need a help...Can anyone guide me through?
 
12:54 AM
@Andrea hm, don't remember… there were some streams funcs at least… don't remember concrete funcs though.
 
Can someone help me with that?
0
Q: woocommerce require email authentication

user4571629How can I require for new customers that are registering to have an email authentication, which means that they need to get an email then click on the link from this email and only then the account will be valid

 
 
1 hour later…
2:08 AM
a
 
It seems like PHP is stuck in the middle with types in the language. Because of function params having types, everything will slowly get types.
Has anyone ever gone the phpdoc only route? and caught things statically, instead of at run time?
 
you should have said C
a b c
 
2:16 AM
q
 
 
☃ ☃ ☃
♨︎
☖☗☖
ok
 
@SeanDuBois I haven't but I have suggested that to the guys who are making: github.com/Roave/BetterReflection . They're kind of planning to make code be 'tweakable' before it's run, and for things like private methods, it would be possible to statically analyze whether any of the method calls actually need a type for a parameter, or whether the type check is always redundant.
 
2:31 AM
@Danack very cool! github.com/rlerdorf/phan also does a great job of catching mismatches (have only seen other people use it though)
It can catch calling a function with the wrong types via phpdoc, which I think is awesome. I tend to lean more that way than catching stuff at runtime (and making the language larger)
But I just recently was introduced to this line of thinking, so maybe I am excited just because it is new
 
@SeanDuBois btw just to point out something that may or not be obvious; I didn't actually care that much about restarting the vote for the const RFC - it's just to avoid anybody being able to claim in the future that it's 'always accepted practice' to change RFCs.
 
@Danack I appreciate you bringing it up, it was a god point! Yea I would love to see something in writing about that, it is so subjective so would like to say 'any change' needs a revote.
But then that is annoying to the people who already took time to vote
 
3:18 AM
Do anyone know what function applies on content while sending through soap webservice?
 
can someone make a tag for "definition" in meta?
 
 
2 hours later…
4:55 AM
Mornings
 
moin
 
morning
 
Hey @rdlowrey, what do you think about a PSR-7 bridge for aerys? Feasible? Not feasible? I realize that Aerys has its own interfaces due to all the async details to handle, but I really wanted to plug PSR-7 compliant stuff into it.
 
@Ocramius I heard bob mentioning that PSR-7 has performance impacts because of immutability ...
 
5:00 AM
Yes, it has
that's why it would be a bridge, not core
I don't really care that much about performance of the http message serialization/immutability: it is much more relevant to me to have bootstrapped in-memory structures
so for me a 5x or 6x slower aerys is still perfectly fine
 
i c
 
one example is running an entire drupal instance on top of it
if what Crell told me the other day is true, that may be possible in the near future
 
0
A: PHP PDO SQL MutliThreading Possible?

Joe WatkinsEven if you could select the data faster from multiple threads (which you can't most probably), you couldn't write the CSV any faster whatever ... threading doesn't make sense here. The best solution is to SELECT INTO OUTFILE, bypassing PHP in the creation of the CSV altogether.

 
@SammyK more like shouting at the wifi
 
ewwww drupal ...
 
5:08 AM
Oh, I don't like drupal myself, I'm just making an example of the possibilities
even symfony apps should be runnable on top of it
and for sure zf3 apps (when we get there)
I think I also saw somebody building a FastCGI PSR-7 bridge
 
5:25 AM
psr-7 didn't have much love in here a few months ago ...
 
Yeah, but we're moving there overall, getting rid of a lot of framework-specific stuff
Used it a bit over the last couple months and it just is awesome to use :)
 
5:41 AM
hi guys
which you think is a good client for mysql ?
 
6:11 AM
workbench is nice
 
Good morning and happy rebecca day
@Gordon Can you check flag statutes?
 
@Ja͢ck hey Jack, long time
 
@Epodax flag statutes?
 
wordwrap($value, 100, '</br>')
adds a html break every 100 characters
and i want that it breaks near the 100th char after a comma. any ideas?
 
@Epodax Statutes are laws made by legislative bodies and distinguished from case law which is decided by courts, and regulations issued by government agencies... :D
 
6:25 AM
@Gordon Aye, as in "Are a flag being handlet" - Say I have made a flag that hasn't changed from "pending" it quiet some time, and I was wondering if you knew / could check whether it was just not gotten around to or if it was being investigated / handlet... because I don't wanna prod for update by mail if it is being looked into.
Status*
sorry
 
@Epodax yes, I can
 
@Gordon Would it be inappropriate to ask you to do that for me? :)
 
@Epodax I can see the pending one
 
I have a few pending but it should be fairly easy to see which one I'm refering to ^^
 
@NullPoiиteя hey! yeah ikr :)
 
6:30 AM
posted on October 23, 2015 by nlecointre

/* by The coding love */

 
@Gordon aye
 
@Epodax I cannot do anything about the votes cast
 
hello !
 
@Gordon Not what I ment ^^ I was curious if it was being looked into, or if it was not looked into yet :) I'm well aware that mods can't do anything about votes.
 
6:35 AM
@Epodax no one looked into yet as far as I can tell
 
I'm going on vacation next week so I wanted to see if I could get a update (Since pending doesn't tell me much) before leaving for a week.
All right :) Thanks for checking for me :)
 
I'd have to forward it to someone with db access to see if there was something fishy going on
 
Abe
how about this guys? stackoverflow.com/questions/…
3
also morning o/
 
@Abe you son of a fish.
 
Abe
ha
 
6:37 AM
@Epodax but it doesnt look like it. Can we set it to helpful and be done with it?
 
I have a black friday detector
 
me too
 
@Gordon Sure. When I flagged I was a tad upset about it as I landed on 999 rep. It's barely any rep, so go ahead :)
@Abe I clicked it without even hovering my mouse over it :(
 
Abe
:D
 
Ah, I still chuckle when I remember PeeHaa's question on SO.
 
6:50 AM
@Epodax hm?
 
When he posted a Rebecca black's song as a question ^^
 
Abe
lol
 
So this is a funny one:
`$sum = 50 * ((10 / 100) + 1);
echo abs($sum); //55
echo ceil($sum); //56`
 
seriously amazon wants that much paramert to create cloudfront distribution docs.aws.amazon.com/aws-sdk-php/v3/api/… and i have no clue about them :(
 
7:13 AM
frinin'
and yeah, trollin main site with peehaa was some kind of achievement. there should be a badge
 
"Rollin' with The Pee....Haa!"
Hrm, Is it possible to get only +1 rep? or is +2 the lowest?
 
just edit some question already :)
oh, unless you aim for that precise 1k rep?
 
Ah no, I'm allready 1.014
 
@Epodax you can get +1 rep easily downvote bad answer and when it will get deleted you will get +1 rep and that will be yours
 
@NullPoiиteя That's what I though, but I just couldn't remember if +2 was the lowest you could get.
 
7:20 AM
btw rep makes no sense after 10k all are same except mod
 
> all are same except mod
 
For some reason I like my rep to be neat looking, so I try to get my last rep digit to be 5 or 0 ^^
 
except some have more :p
 
@NullPoiиteя I'm still missing 8986 rep to 10k :P
 
i think its 8986 ;)
 
7:22 AM
ah right, yes.
I was stuck with the number 14 in my head.
 
canonical answer on high view question == rep
 
problem is, high view questions already have canonical answers... :(
 
Aye
 
@FélixGagnon-Grenier write more better answer
 
But then it won't be canonical anymore!
 
7:24 AM
show some informative graphics as well.. btw idk i am not perfect at this.. check answer of ircmaxell or Gordon
 
hi guys
 
you know, I'm also not that good of a programmer. I'm really learning as fast as I can, but I always feel I'm like three years late. like some months ago, I was like, omg, 0mq, sockets, omg such wow. but then... already late to the party...
 
"shipmentGroups": ["SMALL", "LARGE"]
 
@anbuselvan yes?
 
i need to create post method for above in json
bit confused how to pass value in that
 
7:28 AM
@FélixGagnon-Grenier the php room is bad place for me to be in.
 
Hey, do you think it's worth learning Zend?
 
lol
@Epodax you seem very much at ease already, do chill in
 
@sguetsch depends on what you need to do
 
Before I joined the room I was "Ah, I know php and I'm rather good at it", Now I dread every moment with the thoughts "I don't know enough, I don't know enough, I don't know enough".
 
you just need to know enough to get work done :)
 
This is ZF2 in a nutshell :P
 
And every time I think I've caught up just somewhat, some one posts something new and I just lie down and curl into a crying rocking ball.
 
Okay, i take a look on int
 
as a very wise jedi once said, there is always bigger than you
 
7:32 AM
Aye, and to be fair, I'm fairly sure that most of the php guys here has been doing what they do A LOT longer than I have.
 
does anyone have cloudfront createDistribution config demo file docs.aws.amazon.com/aws-sdk-php/v3/api/… there documentation sucks and have no info about param
 
To everyone who joined us at #zendcon and got #php6 certified, thank you! https://goo.gl/J4JL62
5
 
Abe
dammit.
 
oh. lol.
any fan of rick astley 'round here?
 
Abe
7:37 AM
i am i enjoy the full song every time i get rickrolled :(
 
Abe
no jokes on such things pls :P
@Ocramius i need some friday help :B can i bug you for something?
 
@Abe shoot
 
Aw shoot, I missed something juicy
 
7:42 AM
meh
 
Abe
where to start and commit/rollback transactions? currently i'm doing it in the services. but i was thinking the application layer could have something to be run in a transaction
 
@FélixGagnon-Grenier Was it a good joke?
 
it wasn't really a joke, more of an observation on black's clip which probably have already crossed your mind
 
Abe
would be great to have nested transactions for this...
 
ah
 
7:44 AM
@Abe around the services, IMO
I sometimes even do it via listeners around controllers
 
wayyyyy to serious for friday
 
Abe
@Ocramius for example?
 
@Abe nested transactions are actually a thing?
(it's a rhetoric question)
 
Abe
yeah.
 
7:47 AM
\\o//
 
//'\\
 
@Abe so what's the problem?
 
oh and, any recommendations for something "must see" in Amsterdam?
 
hmmm. I think I just got warned by a mod to stop saying bullshit in comments.
hrmmm... chicks @Epodax ??
 
Abe
@Ocramius the problem is where :P you probably do it procedurally, am i right? so you can easily decide when to start and when to end it. i have a Transaction object and i have no clue on what to do
 
7:52 AM
__destruct() ??
(probably the worst idea though)
 
Abe
yes doesn't look like a good idea :D
 
@FélixGagnon-Grenier d'uh
 
@Epodax Van Gogh museum? Red light district (by night, walking around is quite interesting)? Do a trip on the canals? Barney Coffee Shop? Vondelpark? The Nemo?
dunno, that's the stuff I kinda liked over various trips tho
ah, and the Pancake bakery :P
 
Pancake... bakery?
 
I think I can't thank php chat enough for all these small bits of eureka I get from following links (even fridays's ones)
 
@Ocramius I have a feeling that they make pancakes?
 
Yes?
Try bacon+banana ;-)
 
I don't know man, I like bacon and banana, but separate.
 
7:59 AM
I'm not even kidding
 
Abe
@Ocramius that's kinda what i have. still unsure about how to use it
 
no kidding with bacon
 
also, had waffles + chicken + strawberry + ice-cream here in Vegas: weird but interesting
@Abe you wrap the service call :-P
 
Abe
will continue this way though
yep that's what i'm doing
 
@Abe you could also use a transactional proxy if you are crazy enuff
 
8:02 AM
Sometimes I want to punch 2k+ users who gets my edit rejected due to "This edit conflicted with a subsequent edit." but then they don't even fix the freaking title of the question!
 
@Naruto A cool. I've spend some crazy days there :P
 
Btw, we made "PHP6 Certified Engineer" shirts \o/
7
 
Abe
@Ocramius may i suggest a change? :D
public function transactional(Closure $func)
{
	if(!$this->inTransaction()){ // if outermost
		$this->beginTransaction();
		try{
			$res = $func($this);
			$this->commit();
			return $res;
		} catch (Exception $e) {
			try{ $this->rollBack(); } catch(Exception $stupidPDO) {}
			throw $e;
		}
	}else{
		return $func($this);
	}
}
 
hm?
if a rollback fails, it should bubble up
also, we support nested transactions there
 
@Epodax we are not responsible for this. system rejects edits conflicting with other ones
 
Abe
8:07 AM
if rollback fails in pdo you'll get the rollback failing exception, rather than $e
 
right
and that's ok
unless you throw a custom exception that wraps both the original exception and the rollback exception
 
@FélixGagnon-Grenier I know :P Community does that.
 
that would be a good improvement
 
Abe
if a rollback fails doesn't mean that it was committed
 
8:08 AM
@Ocramius Shirt link?
 
@Jimbo no link yet, just loads of boxes in Arizona
 
Abe
what you want to have instead is $e, imho
@Ocramius the rollback exception is pointless. it should fail silently in case, but it doesnt
 
@Abe that's a silent failure
you should really have throw new RollbackFailed($exception, $rollbackFailedException)
@Abe that's a silent failure
you should really have throw new RollbackFailed($exception, $rollbackFailedException)
Dammit, silly http retries.
 
Abe
ok but again, you don't gain any information by carrying that stuff
 
You do, it can be part of the error message, and you can inspect it with a debugger
 
Abe
8:14 AM
anyway, how do you support nested transactions?
 
In mysql, via savepoints
 
Abe
oh. i see
 
in proper SQL RDBMS', via nested transactions
you can just use the DBAL connection around your PDO object, so you don't need to rewrite all that shite
 
Abe
looks cool, will check it
 
I have problems setting my autoloader late instanciation
 
8:18 AM
@Abe simply pass a key 'pdo' with your PDO instance to github.com/doctrine/dbal/blob/…
that gives you a DBAL connection with all the DBAL can do
 
Abe
i wonder why dbms don't support nested transactions
 
does starting a transaction within a transaction logically makes sense?
 
Abe
it does
 
anyone using cloudfront php sdk?
 
I wish MySQL supported transactional schema changes :|
 
8:26 AM
Mornign
 
in a use case scenario probably. in a "I have a connection managing multiple things that are or not related" scenario maybe not?
 
Botched migrations are annoying
 
guys, stupid question:
 
getIDs vs getIds
which one is better
 
8:27 AM
@PeeHaa morning
 
hmm... we don't have a xslt chat room, do we?
 
Abe
@gskema i prefer the former
 
@gskema how about get_id ?
 
@NullPoiиteя has to be PSR-2 :S
 
Abe
8:28 AM
GET HIM ^ BRING UR PITCHFORKS!
 
:D
 
Abe
:D
 
I mean camelCase
 
just reminded me of that scene in the witcher chapter 1
 
8:29 AM
FUCK The PSR name it whatever you want ;)
 
I must say I kind of like being able to autoload things with composer though
this silence makes me think I just said something stupid
 
user image
10
So @Ocramius wasnt kidding about that Oo
I want one :D
 
posted on October 23, 2015 by nlecointre

/* by Enchaussure */

 
Abe
:D
 
@Gordon I'm certified PHP6, HTML6, CSS1 and ES2010 engineer :D
 
8:36 AM
@gskema you are missing yolo certified then
 
@Gordon But I know ArnoldC
 
8:50 AM
@Gordon I hear the PHPUGFFM will have some for January
:-P
 
Happy Friday morning!
Just clicked the tweet link.
 
:D*
 
9:06 AM
hi
 
user image
5
@NullPoiиteя First thing I thought of.
 
Abe
:D
 
getID is bad enough
 
@Sean you are taking it wrong, that get_id() guy just thrown the building :)
 
Abe
i don't often use abbreviations @Jimbo but when i do, they are really short and uppercase (like acronyms)
 
9:10 AM
If you could see what I have seen
Entity, usually just has an $id property right? Nope
 
Abe
UUId -> sux
UUID -> better
 
There's $entityID, and the column in the DB is EntityID
uuid :P
 
heyy
 
Abe
i always prefix the table name in db's columns. so i don't have to write damn aliases @Jimbo
 
anyone interesting in to build a php appplication
 
Abe
9:12 AM
and i'm a huge fan of that
 
@chamath aint nobody got time for that
 
Hello everyone. I need your help with setting up ajax contact form. I've setup everything correct. The mailer.php the js script (app.js) .. and of course the form . But I still get a 500 error (internal server error) can you help me please?
 
Anonymous
@chamath what app?
 
@Jimbo ok
 
@Sean They forgot to throw one out of the window...
 
9:14 AM
@samayo A simple inventory management app
we can earn later
 
Abe
@Jimbo was expecting something like "WHAT??? THAT SUX!!!"
 
lol
I like aliases as it makes the SQL easier to read in your codebase
Even with prefixes I'd probably still use them
 
Abe
my thought is that if one spent more than 5 minutes aliasing db's columns, they are a moron :D
and i'm also a huge fan of SELECT * FROM xD
 
Can't believe they're consdering skipping PHP 8.
6
 
Abe
there is no such thing as "partially filled domain objects"
 
Anonymous
9:18 AM
too blatant
 
@Fabor no more Rebecca Black :)
 
It's what Fridays are all about.
Clickbait rebecca.
 
Abe
my prediction is that within 3pm the starred messages board will only contain rebecca links
 
I always star if I get caught out.
 
grrrrrrrrrrrrrrrrrr
 
9:20 AM
i always star so other will get caught :D
 
@Abe Well, builder pattern and optional parameters exist ;)
One could argue that would constitute partially filled
But then again, one argues that one spending more than 5 minutes on aliases is a moron :P
 
Abe
well but you don't want to have domain object that doesn't reflect the data it represents don't you :D
 
What if the data it represents is partially filled?
This is too meta. It is Friday though
 
Abe
it's data that would be immediately destroyed anyway. not worth the aliasing stuff time, imho
 
That's your opinion Abe, THAT'S YOUR OPINION
 
Abe
9:24 AM
:D
 
:D
 
@Ocramius Pictures or it didn't happen :-)
 
Abe
@SebastianBergmann . i.stack.imgur.com/B866b.jpg
 
@SebastianBergmann It's starred on the right by Gordon ;)
 
9:53 AM
E_GITHUB_DOWN_AND_RELEASE_FUCKUP
hands down :'(
 
Anonymous
 
@AlmaDo Glad our release is next Friday instead :P
 
@Jimbo well, it's only staging release. I don't release live on Fridays
@samayo it was saying not long ago "all systems operational, 0% servers are running" :p
 
10:08 AM
@samayo Clicks link without checking URL "Oh damn I've done it again" page loads Oh!
 
Anonymous
I am keeping a clean sheet. Haven't fallen for any links since last Friday :)
 
Anonymous
hehe
 
Press it, I date dare you.
 
@AlmaDo No mirror to deploy from? :P
 
10:43 AM
@kelunik well, there's a satis in-between, but if package is uncached, that's the thing..
 
@AlmaDo lol github dependency...
noobs
:-)
 
10:58 AM
@PeeHaa Shut your tits
What do you recommend?
I've seen Atlasssian's self-hosted thingy is pretty good, what's it called
 
ls -1 ./vendor/* | grep -P '^[a-z-]+$' | wc -l
71
:(
 
Stash
 
We had stash before
Migrated to github
 

« first day (1833 days earlier)      last day (3121 days later) »