Re: Fwd: [PATCH] added: openssl_csr_subject()

From: Date: Tue, 12 Oct 2004 19:31:30 +0000
Subject: Re: Fwd: [PATCH] added: openssl_csr_subject()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-13285@lists.php.net to get a copy of this message
On Tue, 12 Oct 2004 14:47:05 -0400, Greg MacLellan <greg@gregmaclellan.com> wrote: > Now uses X509_NAME_print_ex(), using the XN_FLAGS_RFC2253 option. Looks much better now > bool openssl_csr_subject(mixed csr, string &out) > > Now, I don't do very much C coding, and I'm pretty new to the zend API.. > One thing I couldn't figure out was why (in php) openssl_csr_subject() > won't put anything into $out if it's passed an undefined variable (where > as openssl_csr_export, which is very similar, works). > PHP_FE(openssl_csr_export, arg2_force_ref) > + PHP_FE(openssl_csr_subject, NULL) The answer is here; you need to mark the function entry as requiring the second arg to be passed by ref by replacing that NULL with arg2_force_ref. If you can make that change and then either put the diff online, or as a regular MIME plain text attachment and not inlined, so that it is easy to get at without it being mangled in the email, I will apply it to CVS. Thanks :) --Wez.

« previous php.internals (#13285) next »