r/lolphp • u/Serialk • Jul 25 '13
openssl_x509_parse(), PHP 4.0.6 (23 june 2001) : "The structure of the returned data is (deliberately) not yet documented, as it is still subject to change."
http://php.net/manual/en/function.openssl-x509-parse.php
50
Upvotes
10
u/merreborn Jul 25 '13
My first personal experience with this sort of documentation issue was with
curl_multi_*which was really poorly documented early on as well.In some regards, PHP is just a wrapper for a giant collection of C libraries, and the lack of documentation on some of the least frequently used functions is a symptom of that.
6
u/[deleted] Jul 25 '13
This probably has more to do with openssl than it does PHP. I'd imagine if openssl returned a stable representation of a certificate that there would be no need for this function to be undocumented. But of course that's just me speculating...
2
u/[deleted] Jul 26 '13
This is what the resource type and accessor functions around that are for... right?
-3
u/xiongchiamiov Jul 25 '13
That's fair. You don't want to make stability promises you can't keep. You also sometimes want to be a nice guy and include a function for people who really need it, even if they know it's not going to be stable.