iliaa           Tue Jul 20 20:14:50 2004 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src/ext/standard       sunfuncs.c 
  Log:
  MFH: Abort earlier on invalid format.
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/sunfuncs.c?r1=1.6&r2=1.6.2.1&ty=u
Index: php-src/ext/standard/sunfuncs.c
diff -u php-src/ext/standard/sunfuncs.c:1.6 php-src/ext/standard/sunfuncs.c:1.6.2.1
--- php-src/ext/standard/sunfuncs.c:1.6 Wed Feb 25 15:16:26 2004
+++ php-src/ext/standard/sunfuncs.c     Tue Jul 20 20:14:50 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: sunfuncs.c,v 1.6 2004/02/25 20:16:26 abies Exp $ */
+/* $Id: sunfuncs.c,v 1.6.2.1 2004/07/21 00:14:50 iliaa Exp $ */
 
 /*
        The sun position algorithm taken from the 'US Naval Observatory's
@@ -192,7 +192,10 @@
                        }
                case 5:
                        gmt_offset = php_idate('Z', time, 0) / 3600;
+                       break;
                default:
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid format");
+                       RETURN_FALSE;
                        break;
        }
        
@@ -210,9 +213,6 @@
                case SUNFUNCS_RET_DOUBLE:
                        RETURN_DOUBLE(ret);
                        break;
-               default:
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid format");
-                       RETURN_FALSE;
        }
 }
 /* }}} */

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

Reply via email to