News for hackers. Stuff that matters.
Re:SSL and PHP Streams, Part 1 by revelation on Thursday June 26, 2014 @11:42AM (#7950195)
Wow, that is terrible. I'm not even talking about the shitty defaults, but look at the code to make it "secure". String-based programming and all of the underlying OpenSSL crap just spills up to the API.

No one should be using that, if only because with the magic strings everywhere it is not guaranteed to blow up when there are breaking changes.

Re:SSL and PHP Streams, Part 1 by TazeTSchnitzel on Thursday June 26, 2014 @11:56AM (#7950251)
>String-based programming

Are we talking about the same language? This is PHP, not Tcl.

>all of the underlying OpenSSL crap just spills up to the API.

None of it does. I mean, there's an extension for OpenSSL, but that's not what's 'spilling up'. What's happening is there were poor defaults, so people have to change them. Luckily, PHP 5.6 fixes this.

>No one should be using that, if only because with the magic strings everywhere it is not guaranteed to blow up when there are breaking changes.

"Magic strings"? Are you seriously trying to compare using string names for keys to specify options (standard practise in many languages) with magic numbers?