zoe             Sun Jun 14 10:38:30 2009 UTC

  Modified files:              
    /phpruntests/tests/configuration    rtIniAsCommandLineArgsTest.php 
  Log:
  fix to allow double equals in ini setting
  
http://cvs.php.net/viewvc.cgi/phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php?r1=1.2&r2=1.3&diff_format=u
Index: phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php
diff -u phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.2 
phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.3
--- phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php:1.2  Mon Apr 
20 20:50:39 2009
+++ phpruntests/tests/configuration/rtIniAsCommandLineArgsTest.php      Sun Jun 
14 10:38:30 2009
@@ -63,5 +63,15 @@
         $iniSet->setBase();
         $addStr = $iniSet->settingsToArguments(array('af=be=blah'), 
$iniSet->getBasePhpDArgs());
     }
+    
+    public function testValidDoubleEquals()
+    {
+        $iniSet = new rtIniAsCommandLineArgs();
+        $iniSet->setBase();
+        $addStr = $iniSet->settingsToArguments(array('af=='), 
$iniSet->getBasePhpDArgs());
+        $last3= addslashes(substr($addStr, -3));
+
+        $this->assertEquals('==\"', $last3);
+    }
 }
 ?>



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

Reply via email to