hnangelo Tue Jul 15 03:20:45 2008 UTC Added files: (Branch: PHP_5_3) /php-src/ext/openssl/tests 012.phpt public.key
Modified files: /php-src/ext/openssl openssl.c Log: Fix error message http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/openssl.c?r1=1.98.2.5.2.41.2.14&r2=1.98.2.5.2.41.2.15&diff_format=u Index: php-src/ext/openssl/openssl.c diff -u php-src/ext/openssl/openssl.c:1.98.2.5.2.41.2.14 php-src/ext/openssl/openssl.c:1.98.2.5.2.41.2.15 --- php-src/ext/openssl/openssl.c:1.98.2.5.2.41.2.14 Tue Jul 15 02:59:56 2008 +++ php-src/ext/openssl/openssl.c Tue Jul 15 03:20:44 2008 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: openssl.c,v 1.98.2.5.2.41.2.14 2008/07/15 02:59:56 hnangelo Exp $ */ +/* $Id: openssl.c,v 1.98.2.5.2.41.2.15 2008/07/15 03:20:44 hnangelo Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -4126,7 +4126,7 @@ &pos) == SUCCESS) { pkeys[i] = php_openssl_evp_from_zval(pubkey, 1, NULL, 0, &key_resources[i] TSRMLS_CC); if (pkeys[i] == NULL) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "not a public key (%dth member of pubkeys)", i); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "not a public key (%dth member of pubkeys)", i+1); RETVAL_FALSE; goto clean_exit; } http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/tests/012.phpt?view=markup&rev=1.1 Index: php-src/ext/openssl/tests/012.phpt +++ php-src/ext/openssl/tests/012.phpt http://cvs.php.net/viewvc.cgi/php-src/ext/openssl/tests/public.key?view=markup&rev=1.1 Index: php-src/ext/openssl/tests/public.key +++ php-src/ext/openssl/tests/public.key -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php