pierrick                                 Thu, 08 Dec 2011 18:57:01 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=320688

Log:
Fix curl_copy_handle_basic_008.phpt when display_errors is On
(Thanks Chris Jones)

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/curl/tests/responder/get.php
    U   php/php-src/branches/PHP_5_4/ext/curl/tests/responder/get.php
    U   php/php-src/trunk/ext/curl/tests/responder/get.php

Modified: php/php-src/branches/PHP_5_3/ext/curl/tests/responder/get.php
===================================================================
--- php/php-src/branches/PHP_5_3/ext/curl/tests/responder/get.php       
2011-12-08 18:37:34 UTC (rev 320687)
+++ php/php-src/branches/PHP_5_3/ext/curl/tests/responder/get.php       
2011-12-08 18:57:01 UTC (rev 320688)
@@ -1,5 +1,6 @@
 <?php
-  switch($_GET['test']) {
+  $test = isset($_GET['test']) ? $_GET['test'] : null;
+  switch($test) {
     case 'post':
       var_dump($_POST);
       break;

Modified: php/php-src/branches/PHP_5_4/ext/curl/tests/responder/get.php
===================================================================
--- php/php-src/branches/PHP_5_4/ext/curl/tests/responder/get.php       
2011-12-08 18:37:34 UTC (rev 320687)
+++ php/php-src/branches/PHP_5_4/ext/curl/tests/responder/get.php       
2011-12-08 18:57:01 UTC (rev 320688)
@@ -1,5 +1,6 @@
 <?php
-  switch($_GET['test']) {
+  $test = isset($_GET['test']) ? $_GET['test'] : null;
+  switch($test) {
     case 'post':
       var_dump($_POST);
       break;

Modified: php/php-src/trunk/ext/curl/tests/responder/get.php
===================================================================
--- php/php-src/trunk/ext/curl/tests/responder/get.php  2011-12-08 18:37:34 UTC 
(rev 320687)
+++ php/php-src/trunk/ext/curl/tests/responder/get.php  2011-12-08 18:57:01 UTC 
(rev 320688)
@@ -1,5 +1,6 @@
 <?php
-  switch($_GET['test']) {
+  $test = isset($_GET['test']) ? $_GET['test'] : null;
+  switch($test) {
     case 'post':
       var_dump($_POST);
       break;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to