]> granicus.if.org Git - php/commitdiff
Fix protos
authorEtienne Kneuss <colder@php.net>
Sun, 4 May 2008 21:16:22 +0000 (21:16 +0000)
committerEtienne Kneuss <colder@php.net>
Sun, 4 May 2008 21:16:22 +0000 (21:16 +0000)
ext/gd/gd.c
ext/ldap/ldap.c
ext/openssl/openssl.c
ext/standard/file.c
ext/standard/streamsfuncs.c
ext/standard/uniqid.c

index 498c3b560aeeaeec365cf4261f090c5075fabbc3..e66276a98eaa486d04158d7d03b1c71ba2d41e79 100644 (file)
@@ -3994,7 +3994,7 @@ PHP_FUNCTION(imagepsslantfont)
 }
 /* }}} */
 
-/* {{{ proto array imagepstext(resource image, string text, resource font, int size, int foreground, int background, int xcoord, int ycoord [, int space, int tightness, float angle, int antialias])
+/* {{{ proto array imagepstext(resource image, string text, resource font, int size, int foreground, int background, int xcoord, int ycoord [, int space [, int tightness [, float angle [, int antialias]]]])
    Rasterize a string over an image */
 PHP_FUNCTION(imagepstext)
 {
index 06274a4bfd237a384e85def6a54f7782f782a5e5..d7236b4e4bfafd8efe28afc9451b32fce91b89ce 100644 (file)
@@ -386,7 +386,7 @@ static int _get_lderrno(LDAP *ldap)
 }
 /* }}} */
 
-/* {{{ proto bool ldap_bind(resource link [, string dn, string password])
+/* {{{ proto bool ldap_bind(resource link [, string dn [, string password]])
    Bind to LDAP directory */
 PHP_FUNCTION(ldap_bind)
 {
@@ -496,7 +496,7 @@ static int _php_sasl_interact(LDAP *ld, unsigned flags, void *defaults, void *in
 }
 /* }}} */
 
-/* {{{ proto bool ldap_sasl_bind(resource link [, string binddn, string password, string sasl_mech, string sasl_realm, string sasl_authc_id, string sasl_authz_id, string props])
+/* {{{ proto bool ldap_sasl_bind(resource link [, string binddn [, string password [, string sasl_mech [, string sasl_realm [, string sasl_authc_id [, string sasl_authz_id [, string props]]]]]]])
    Bind to LDAP directory using SASL */
 PHP_FUNCTION(ldap_sasl_bind)
 {
index 692b66ca39c34114372c5e8137cf41d76895d3ee..534420cb032c71b6b4df9d6217f872a4642c0328 100644 (file)
@@ -2176,7 +2176,7 @@ cleanup:
 }
 /* }}} */
 
-/* {{{ proto bool openssl_csr_new(array dn, resource &privkey [, array configargs, array extraattribs])
+/* {{{ proto bool openssl_csr_new(array dn, resource &privkey [, array configargs [, array extraattribs]])
    Generates a privkey and CSR */
 PHP_FUNCTION(openssl_csr_new)
 {
index 9e23b9257db359de0191d5bfd48e3267d7bb0193..263194712d4c227abcd2495176af75301331cd0f 100644 (file)
@@ -1198,7 +1198,7 @@ PHPAPI PHP_FUNCTION(fgetc)
 }
 /* }}} */
 
-/* {{{ proto string fgetss(resource fp [, int lengthish, string allowable_tags]) U
+/* {{{ proto string fgetss(resource fp [, int lengthish [, string allowable_tags]]) U
    Get a line from file pointer and strip HTML tags */
 PHPAPI PHP_FUNCTION(fgetss)
 {
index cf69d9a498888792ba0289000a42ff8cae2aa541..cb6b00766794cc6799b9a5a3871202216d587e37 100644 (file)
@@ -75,7 +75,7 @@ PHP_FUNCTION(stream_socket_pair)
 /* }}} */
 #endif
 
-/* {{{ proto resource stream_socket_client(string remoteaddress [, long &errcode, string &errstring, double timeout, long flags, resource context]) U
+/* {{{ proto resource stream_socket_client(string remoteaddress [, long &errcode [, string &errstring [, double timeout [, long flags [, resource context]]]]]) U
    Open a client connection to a remote address */
 PHP_FUNCTION(stream_socket_client)
 {
@@ -163,7 +163,7 @@ PHP_FUNCTION(stream_socket_client)
 }
 /* }}} */
 
-/* {{{ proto resource stream_socket_server(string localaddress [, long &errcode, string &errstring, long flags, resource context]) U
+/* {{{ proto resource stream_socket_server(string localaddress [, long &errcode [, string &errstring [, long flags [, resource context]]]]) U
    Create a server socket bound to localaddress */
 PHP_FUNCTION(stream_socket_server)
 {
@@ -229,7 +229,7 @@ PHP_FUNCTION(stream_socket_server)
 }
 /* }}} */
 
-/* {{{ proto resource stream_socket_accept(resource serverstream, [ double timeout, string &peername ]) U
+/* {{{ proto resource stream_socket_accept(resource serverstream, [ double timeout [, string &peername ]]) U
    Accept a client connection from a server socket */
 PHP_FUNCTION(stream_socket_accept)
 {
@@ -1467,7 +1467,7 @@ PHP_FUNCTION(stream_set_write_buffer)
 }
 /* }}} */
 
-/* {{{ proto int stream_socket_enable_crypto(resource stream, bool enable [, int cryptokind, resource sessionstream]) U
+/* {{{ proto int stream_socket_enable_crypto(resource stream, bool enable [, int cryptokind [, resource sessionstream]]) U
    Enable or disable a specific kind of crypto on the stream */
 PHP_FUNCTION(stream_socket_enable_crypto)
 {
index 73fb89068c25fce81f673d59774a99e0c21d0d72..4dc3042e3bd62abc4ccd159708e0e524127a5a28 100644 (file)
@@ -38,7 +38,7 @@
 #include "php_lcg.h"
 #include "uniqid.h"
 
-/* {{{ proto string uniqid([string prefix , bool more_entropy]) U
+/* {{{ proto string uniqid([string prefix [, bool more_entropy]]) U
    Generates a unique ID */
 #ifdef HAVE_GETTIMEOFDAY
 PHP_FUNCTION(uniqid)