com php-src: Add initial almost empty php_openssl_store_e rrors: ext/openssl/openssl.c ext/openssl/php_openssl .h

From: Date: Fri, 08 Jan 2016 14:57:31 +0000
Subject: com php-src: Add initial almost empty php_openssl_store_e rrors: ext/openssl/openssl.c ext/openssl/php_openssl .h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92456@lists.php.net to get a copy of this message
Commit: 1d111320b947776efe375cedc700e9250e5c6e5a Author: Jakub Zelenka <bukka@php.net> Fri, 8 Jan 2016 14:57:31 +0000 Parents: e00ba47d405190187faaf5b78669e873d26045d2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1d111320b947776efe375cedc700e9250e5c6e5a Log: Add initial almost empty php_openssl_store_errors Changed paths: M ext/openssl/openssl.c M ext/openssl/php_openssl.h Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index c6b8e4b..1b23bd5 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1364,6 +1364,15 @@ PHP_MSHUTDOWN_FUNCTION(openssl) } /* }}} */ +/* {{{ php_openssl_store_errors */ +void php_openssl_store_errors() +{ + if (!OPENSSL_G(errors)) { + OPENSSL_G(errors) = ecalloc(1, sizeof(struct php_openssl_errors)); + } +} +/* }}} */ + /* {{{ x509 cert functions */ /* {{{ proto array openssl_get_cert_locations(void) diff --git a/ext/openssl/php_openssl.h b/ext/openssl/php_openssl.h index a6f1635..014ee5c 100644 --- a/ext/openssl/php_openssl.h +++ b/ext/openssl/php_openssl.h @@ -66,6 +66,8 @@ ZEND_TSRMLS_CACHE_EXTERN(); php_stream_transport_factory_func php_openssl_ssl_socket_factory; +void php_openssl_store_errors(); + PHP_MINIT_FUNCTION(openssl); PHP_MSHUTDOWN_FUNCTION(openssl); PHP_MINFO_FUNCTION(openssl);

« previous php.cvs (#92456) next »