svn: /php/php-src/ branches/PHP_5_3/ext/openssl/tests/bug54992.phpt branches/PHP_5_4/ext/openssl/tests/bug54992.phpt
trunk/ext/openssl/tests/bug54992.phpt
| From: | Hannes Magnusson | Date: | Thu, 08 Sep 2011 09:27:47 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/openssl/tests/bug54992.phpt branches/PHP_5_4/ext/openssl/tests/bug54992.phpt trunk/ext/openssl/tests/bug54992.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-66372@lists.php.net to get a copy of this message | ||
bjori Thu, 08 Sep 2011 09:27:47 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=316406
Log:
Fix the path to the .pem
Changed paths:
U php/php-src/branches/PHP_5_3/ext/openssl/tests/bug54992.phpt
U php/php-src/branches/PHP_5_4/ext/openssl/tests/bug54992.phpt
U php/php-src/trunk/ext/openssl/tests/bug54992.phpt
Modified: php/php-src/branches/PHP_5_3/ext/openssl/tests/bug54992.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/openssl/tests/bug54992.phpt 2011-09-08 09:17:21 UTC (rev
316405)
+++ php/php-src/branches/PHP_5_3/ext/openssl/tests/bug54992.phpt 2011-09-08 09:27:47 UTC (rev
316406)
@@ -8,7 +8,7 @@
<?php
$context = stream_context_create();
-stream_context_set_option($context, 'ssl', 'local_cert',
"./bug54992.pem");
+stream_context_set_option($context, 'ssl', 'local_cert', __DIR__ .
"/bug54992.pem");
stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
$server = stream_socket_server('ssl://127.0.0.1:64321', $errno, $errstr,
STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
@@ -22,7 +22,7 @@
array(
'ssl' => array(
'verify_peer' => true,
- 'cafile' => 'bug54992-ca.pem',
+ 'cafile' => __DIR__ . '/bug54992-ca.pem',
'CN_match' => 'buga_buga',
)
)
Modified: php/php-src/branches/PHP_5_4/ext/openssl/tests/bug54992.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/openssl/tests/bug54992.phpt 2011-09-08 09:17:21 UTC (rev
316405)
+++ php/php-src/branches/PHP_5_4/ext/openssl/tests/bug54992.phpt 2011-09-08 09:27:47 UTC (rev
316406)
@@ -8,7 +8,7 @@
<?php
$context = stream_context_create();
-stream_context_set_option($context, 'ssl', 'local_cert',
"./bug54992.pem");
+stream_context_set_option($context, 'ssl', 'local_cert', __DIR__ .
"/bug54992.pem");
stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
$server = stream_socket_server('ssl://127.0.0.1:64321', $errno, $errstr,
STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
@@ -22,7 +22,7 @@
array(
'ssl' => array(
'verify_peer' => true,
- 'cafile' => 'bug54992-ca.pem',
+ 'cafile' => __DIR__ . '/bug54992-ca.pem',
'CN_match' => 'buga_buga',
)
)
Modified: php/php-src/trunk/ext/openssl/tests/bug54992.phpt
===================================================================
--- php/php-src/trunk/ext/openssl/tests/bug54992.phpt 2011-09-08 09:17:21 UTC (rev 316405)
+++ php/php-src/trunk/ext/openssl/tests/bug54992.phpt 2011-09-08 09:27:47 UTC (rev 316406)
@@ -8,7 +8,7 @@
<?php
$context = stream_context_create();
-stream_context_set_option($context, 'ssl', 'local_cert',
"./bug54992.pem");
+stream_context_set_option($context, 'ssl', 'local_cert', __DIR__ .
"/bug54992.pem");
stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
$server = stream_socket_server('ssl://127.0.0.1:64321', $errno, $errstr,
STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
@@ -22,7 +22,7 @@
array(
'ssl' => array(
'verify_peer' => true,
- 'cafile' => 'bug54992-ca.pem',
+ 'cafile' => __DIR__ . '/bug54992-ca.pem',
'CN_match' => 'buga_buga',
)
)