Actually it's not going at all because I realized I could workaround the SNI bug in userland and manually do the SAN name matching and peer_fingerprint matching as well.
So now I have a userland lib that emulates most of the new 5.6 TLS features in userland for 5.4 and 5.5
At some point I will go back and do some backporting though.
So as long as you have a usable cafile and you don't pass a CN_match you can let PHP handle verifying that the cert was issued by a CA you trust and then do the rest in userland.
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. — Ravimallya13 mins ago
One thing about having to work with SVN after a long time of using Git is that you simply feel inadequate ... "How do I branch again?" ... "Why do I need to specify what to commit?" ... sigh
hey, i saw your comments in the bug tracker regarding the behaviour of current() when applied to traversables.
i've started a branch that would address it, but do you reckon it'd be worth the efforts? on the one hand I feel that current($iter) should behave like $iter->current() ... but, i dunno
it's all part of the zend_hash_*_ex() family of functions.
_ex() for "extra cool"
At the risk of chris rolling his eyes at me and muttering "not another array_ function" ... would array_first($arr) -> [$key, $value]|false be a reasonable way?
if you want "ordered" thing (like "get me third key-value pair") then it's another issue, but nothing is wrong with iteration over array to get that pair, I think
But for me this "problem" sounds ridiculous. If you need to get element at "certain position" (i.e. first/second/third) - then use proper data structure. Use indexed structure which has maintained ordered indexes. Hash-map is a way unordered thing by definition. This task is for me similar to: "Ok, how to get N-th row from table"?
@AlmaDo of course, a supporting structure is ideal if you need to pluck key/values from arbitrary indices ... that said, the most common scenario of that pattern (for me) is just the first one.
@Jack I stand for: use proper tools for proper issues
if you see that current data structure is a way uncomfortable with the issue (that is: hash-map when you need to get "ordered" item pairs) - ok, why not change that structure?
that's debatable. Like: you know that you should search over fields A and range of field B across your table. Why don't change it's structure to add index on (A,B) ?
@CodeSlayer the thought of someone's life or even well being being dependent on code ignitor, or any other framework with a name really, is terrifying ...
@CodeSlayer you probably should explain to your client, that the framework which he demands has been dropped by the maintainer about 1 year ago: ellislab.com/blog/entry/…
but it doesnt seem to be able to escape the backslash itself. though it says "Markdown provides backslash escapes for the following characters: \ backslash"
@CodeSlayer a "big system" says nothing about what you are actually making. In general the most popular ones are Symfony and Zend for large scale projects and Laravel for "we have to ship it in 2 days" projects. But, IMHO, if you have a large and complicated system, a better option is to write a custom site and avoid using some magic frameworks because your will have very specific requirements.
It's not "good". But it's the least-like-complete-shit in the "rapid prototyping" category of frameworks. Then again, it's like being the smartest kid in the remedial class.
@HamZa yeah, later coming: Stack Overflow Academy College (how to ask good questions on SO Academy) and Stack Overflow Academy College School (prepare young folks of how to ask question on SO College). Resolution: What. A. Dumb.
@CodeSlayer what exactly is the problem that you are trying to solve by using a framework (asside from "client told me to use a framework" because that one is invalid)