« first day (1748 days earlier)      last day (3200 days later) » 

9:00 PM
@ircmaxell wow
just ... wow
 
this is why 7 deprecates that parameter
 
They took the unique salt per password literally....
 
@ircmaxell /me sobs
 
I don't understand how people manage to use an API like that incorrectly
 
@Danack well, manually downloaded newest version… but it doesn't make anything better.
 
9:02 PM
No idea then.
 
@NikiC it's the same reason we see custom hashing implementations. They don't trust the core, and think they know better and that "obscurity will save them"
 
@Danack Why do you not recommend self-update?
 
Cleverness is the enemy of security
 
user895378
@kelunik Because it's not secure unless things have changed
 
@Danack btw. what I noticed is that downloading via wget was stuck and via curl -O just worked.
 
9:04 PM
@kelunik the composer guys are nice people, but have bad ideas about security. e.g. downgrading to http when https is not available. Even if that has changed, I don't trust them.
 
clever != smart
 
@Danack I'm pretty annoyed that I can't use composer at all. Stupid single point of failure.
 
@Danack Nope, has not changed.
 
user895378
Padraic did a lot of work on a patch for SSL things in composer a while back after 5.6 was released. Not sure if it was merged and too lazy to go look.
 
@bwoebi It's actually likely to be something on your end....maybe worth investigating with strace.
 
@rdlowrey I think the SSL stuff might be dependent on dropping 5.3 - I can't remember why just remember hearing that, when I was possibly a little bit drunkish.
 
user895378
Anything involving security has no business supporting 5.3 ...
 
I think composer plans to jump to 5.5 in the near future, but is still supporting 5.3 for now.
I'm shocked at how many people are still running 5.3.
 
@Danack connect(0x7, 0x10E97BBA8, 0x1C) = -1 Err#36 that's where it gets stuck
 
@Danack very simple: just do it in 5.4+ conditionally
so we don't get penalized
 
9:12 PM
@Danack note that I'm on OS X…
 
@bwoebi huh?
 
@Trowski Because people use LTS versions and Ubuntu supports PHP 5.3 until 2017...
 
@ircmaxell My composer fails to download the https://packagist.org/packages.json … hence, I can't use it at all…
 
that sucks
your network screwed up?
need to use a proxy?
 
@ircmaxell I can download with browser and curl
wget and php fail.
 
9:15 PM
why does wget fail?
 
@kelunik I wonder when we can expect to see 7 in a LTS release...
 
are you using a proxy?
 
@ircmaxell no.
 
Or running in a VM with bad DNS ?
 
@ircmaxell no idea. It just is… stuck.
 
9:16 PM
@Trowski With some luck, we'll see it in 16.04.
 
@bwoebi describe your network
 
@Danack nope
 
is this a school computer/network?
 
@ircmaxell It's a series of toobs.
 
@ircmaxell home network via fritzbox to fiber.
 
9:18 PM
can you check your autodetected network connections to see if you're behind a SOCKS or HTTP proxy?
 
@ircmaxell I'm not.
 
it sounds fishy that wget fails...
but curl succeeds
 
yeah, that's weird.
 
hmm ... word "balls" is flaggable offence on chat.stackexchange
 
certificate match error?
 
9:24 PM
@bwoebi ipv6 setup?
 
@staabm yep
it indeed tries to fetch via ipv6
yeah, when I explicitly fetch via ipv4 it works…
 
As far as I know they changed to ipv6 and a lot of provides do not route those addresses right. Disabling ipv6 might help
@bwoebi there is a open issue at composer repos about it
 
sigh
 
user895378
sounds like their http server isn't configured correctly to listen on both ipv4 and ipv6 interfaces
 
@rdlowrey sounds like that.
 
user895378
 
Actually … ping6 getcomposer.org fails too.
it's not just the webserver…
 
user895378
So their dns entries may not be setup correctly
 
That's what I'm wondering…
 
Anonymous
is there a good php library for managing cronjobs?
 
9:32 PM
why do you need a library to manage them?
 
Any OS X user knowing how to prefer IPv4 instead of IPv6 if an A record exists?
 
Anonymous
@ircmaxell just for better ui
 
Anonymous
@ircmaxell for the tasks
 
user895378
> Sorry, Apple doesn't think you need to be able to set a preference. At least under OSX Lion, the system tries to obtain both IPv4 and IPv6 addresses and maintains a cache of what protocol works better and prefers that.
 
user895378
9:34 PM
E_MAC
 
I use OSX and have never seen a problem with that
perhaps it's an issue with your router?
 
@ircmaxell I know that. But maybe there's some hidden defaults setting for that…?
 
@bwoebi just turn off ipv6 in your fritzbox if possible.
 
@kelunik Yeah… fine. works now …
(Actually… fritzbox had prefer ipv6 active)
 
user895378
Another satisfied customer for the room11 crowd-sourced debugging engine.
 
9:39 PM
=D
 
hello everyone!
 
@rdlowrey wow a crazy ending
 
user895378
@RonniSkansing I know right! Although ... Elliot kind of has too many girlfriends. Needed to thin the herd.
 
heh
its like shit suddenly got real
 
Anybody decent with php Reflection class?
I'm just now starting to research into it. I hear it has slow performance...so I'm a little worried about using it.
 
9:49 PM
yes, it is great
but what are you going to use it for?
 
Anonymous
for research ... he said
 
0
Q: (PHP Reflection?) Create a new instance of a type hint given as parameter

David GrahamTake a moment and look at these two simple classes: use ValueObjects\Address; class Person { private $address; public function setAddress(Address $address){ $this->address = $address; } } class Address { private $line1 = ""; private $line2 = ""; private $city ...

There, I put it in an easy to understand question...
I'm trying to get the type hint on a parameter so I can then instance it.
I'm building my own sort of "mapper" to my entities
 
Anonymous
ehh
 
ARG FUCK UNITED
 
@DavidGraham why do you think you need reflection for that?
isn't $person->setAddress(new Address($..., $..., $...)); enough?
 
10:00 PM
@DavidGraham You don't actually need reflection for dynamic dispatch. you can just do:
$setter = "set".ucfirst("address");
$object->{$setter}($addressValue);
Though whether it is a good idea is another question entirely...
 
:-} @Danack
 
8^)
 
@Danack ??? Address is immutable though
 
public function setAddress(Address $address){
    $this->address = $address;
}
That's a funny kind of immutable.
 
the value object Address is
how did you get $addressValue?
 
10:11 PM
oh, you want to bind things like 'line1'
 
yeah, and all I know in the code is the method
 
You could look at github.com/rdlowrey/Auryn which would allow you to do something like:
$params = array(
	':line1' => "123 Main St.",
	':line2' => "",
	':city' => "New York",
	':state' => "NY",
	':zip' => "10000",
);
$injector->make('Address', $params);
 
@DavidGraham from where are you getting $line1 ? database? are you sure it's worth it?
 
I really doubt that this is sane use of reflection though.
 
10:14 PM
Just make sane builder objects that use standard programming to look at what params are being passed in.
Or just a different named constructors to allow the object to be created from different data sources.
 
communication isn't really working
 
@RonaldUlyssesSwanson once you cross the rethinking stage it stops becoming automation and becomes a product (hence a startup)
 
that xkcd must be redesigned as a loop :P
writing -> debugging -> rethinking
   '-----<-------<-------<------'
 
10:32 PM
sorry was making some more coffee....
$line1 is coming from Form input
I have an array that the input is checked against, so there's no security risk here
I'd just like to avoid hydrating my entity when my input names match up so well
I'd like to make a mapper, you just tell me the entity, and name the input correctly and it will chain together the methods and get/set it on your entity
If you think about it, the value on a input on a form should match up somewhere on an entity in your domain
If you are thinking in ubiquitous language
 
class YourEntity{}
class YourEntityFromForm extends YourEntity{
    function __construct(array $formStuff){
           foreach($formStuff as $key => $value){
                  if(property_exists($this, $key)){
                         $this->{$key} = $value;
                  }
            }
       }
}
or using set*() as Danack's example
 
seeing in this in constructor is always promising: $this->{$key} = $value;
 
@RonaldUlyssesSwanson right, I thought of that...but I may need to make deeper calls, if you look at the address example, the method calls go deeper to Value Objects
 
Or.....just write a function.
 
@tereško assume you have an array of "valid form to methods"
actually it's just an array of what your form input names are
so you just tack on the prefix "get" or "set"
 
10:40 PM
how will you handle <input name="foo[]" /> ?
 
@DavidGraham forms are subject to change. what happens if you are forced to use an input name that doesn't match?
 
well, you are the programmer that named it "foo"
"foo[]"
I actually use comma delimited values there, looks nicer in URL
instead of array
or you just know that "foo[]" = "getFoo($array)"
or "foo[]" = "setFoo($array)"
My question has been viewed 21 times
no answer :-(
lol
 
because you are trying to do mad things
:P
 
Yeah, if you use an input name that doesn't match, then you don't use the mapper or you give the mapper an alias
 
1- it's not worth it
2- will cause more problems than it solves
3- you will have more code and a lot more complex
 
10:44 PM
<-- stackoverflow seems to think I'm not too crazy
:-p
actually, because of the mapper I just have 2 methods: "$input->fillFromEntity($person)"
and "$input->hydrateEntity($person)"
btw, my form inputs are namespaced in HTML
so I don't see a reason to change them much
 
@Trowski what do you think of addSuppressed() ?
 
@RonaldUlyssesSwanson I don't think it's absolutely needed. Anyone can do new InceptionException($e1, $e2); and the cases where suppressed is needed seem rare-ish.
 
11:04 PM
can't argue on "it's rare" :P guess it's not needed then
 
rare + implementable in userland = don't do it in core.
For me at least.
 
11:22 PM
btw, ever wanted to customize the backtrace?
 
Not that I recall.
 
user895378
I have had times when I wished I could customize a trace but I'm not sure those are strong enough use-cases to justify the ability
 
11:40 PM
if a form with a name is submitted by a submit button with no name, will it set $_POST['formname']?
or do I need to add a name to the submit button and check if $_POST['submitbuttonname'] is set?
 
Pff I rly hate it when someone downvotes your answer for a good reason, you fix it and yet they won't bother removing the downvote again.
 
user895378
Well if you think it's worthy of an upvote post it here and let the market decide ;)
 
user895378
But buyer beware, poor questions/answers posted in chat have also been known to result in a torrent of downvotes ...
 
sometimes i wished that backtrace was generated upon "throw" rather than "new", an with php7 user-thrown TypeError pointing to the call line, rather than inside the function body
 
I'd say it's arguably better than when someone downvotes your answer for no good reason :)
 
11:44 PM
Nah I'm not thinking like that. The reason for the downvote was because I didn't include the source of the answer. So I did, that's all. Can't really mess up fixing something like that.
@cantsay Ye I agreed with the downvote. It was a good reason. But I expect 10k+ users to be fair about it after it's fixed. That's all.
 
user895378
@Trowski yeah filesystem stuff is the only good candidate for this that I've encountered so far
 

« first day (1748 days earlier)      last day (3200 days later) »