aidan           Wed Aug  4 04:42:06 2004 EDT

  Modified files:              
    /phpdoc/en/reference/info/functions php-sapi-name.xml 
  Log:
  Ensured example picked up more complicated cgi return values, such as cgi-fgdr
  
http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/php-sapi-name.xml?r1=1.7&r2=1.8&ty=u
Index: phpdoc/en/reference/info/functions/php-sapi-name.xml
diff -u phpdoc/en/reference/info/functions/php-sapi-name.xml:1.7 
phpdoc/en/reference/info/functions/php-sapi-name.xml:1.8
--- phpdoc/en/reference/info/functions/php-sapi-name.xml:1.7    Thu Dec 18 06:47:08 
2003
+++ phpdoc/en/reference/info/functions/php-sapi-name.xml        Wed Aug  4 04:42:05 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <!-- splitted from ./en/functions/info.xml, last change in rev 1.25 -->
   <refentry id="function.php-sapi-name">
    <refnamediv>
@@ -27,7 +27,7 @@
 <![CDATA[
 <?php
 $sapi_type = php_sapi_name();
-if ($sapi_type == "cgi") {
+if (substr($sapi_type, 0, 3) == 'cgi') {
     echo "You are using CGI PHP\n";
 } else {
     echo "You are not using CGI PHP\n";

Reply via email to