diff --git a/language/context/ssl.xml b/language/context/ssl.xml
index 2c0e895b49..8830ba9a83 100644
--- a/language/context/ssl.xml
+++ b/language/context/ssl.xml
@@ -165,6 +165,31 @@
+
+
+ SNI_enabled
+ boolean
+
+
+
+ If set to &true; server name indication will be enabled. Enabling SNI
+ allows multiple certificates on the same IP address.
+
+
+
+
+
+ SNI_server_name
+ string
+
+
+
+ If set, then this value will be used as server name for server name
+ indication. If this value is not set, then the server name is guessed
+ based on the hostname used when opening the stream.
+
+
+
@@ -181,6 +206,13 @@
+
+ 5.3.2
+
+ Added SNI_enabled and
+ SNI_server_name.
+
+
5.0.0
@@ -205,6 +237,12 @@
any context options which apply to ssl:// also apply to
https:// and ftps://.
+
+ For SNI (Server Name Indication) to be available, then PHP must be compiled
+ with OpenSSL 0.9.8j or greater. Use the
+ OPENSSL_TLSEXT_SERVER_NAME to determine whether SNI is
+ supported.
+
diff --git a/reference/openssl/constants.xml b/reference/openssl/constants.xml
index cd779cb703..be713abb80 100644
--- a/reference/openssl/constants.xml
+++ b/reference/openssl/constants.xml
@@ -427,6 +427,26 @@
These constants were added in 5.2.0.
+
+
+ Version constants
+
+
+
+ OPENSSL_TLSEXT_SERVER_NAME
+ (string)
+
+
+
+ Whether SNI support is available or not.
+
+
+
+
+
+ This constant were added in 5.3.2.
+
+