vrana           Tue Mar 15 05:09:22 2005 EDT

  Modified files:              
    /ZendAPI    Extending_Zend_Arguments.xml 
  Log:
  User notes
  
http://cvs.php.net/diff.php/ZendAPI/Extending_Zend_Arguments.xml?r1=1.9&r2=1.10&ty=u
Index: ZendAPI/Extending_Zend_Arguments.xml
diff -u ZendAPI/Extending_Zend_Arguments.xml:1.9 
ZendAPI/Extending_Zend_Arguments.xml:1.10
--- ZendAPI/Extending_Zend_Arguments.xml:1.9    Mon Mar 25 03:27:13 2002
+++ ZendAPI/Extending_Zend_Arguments.xml        Tue Mar 15 05:09:18 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
- <!-- $Revision: 1.9 $ -->
+ <!-- $Revision: 1.10 $ -->
  <chapter id="zend.arguments"> 
   <title>Accepting Arguments</title> 
   <para>
@@ -404,7 +404,7 @@
 
 /* see if it satisfies our minimal request (2 arguments) */
 /* and our maximal acceptance (4 arguments) */
-if(argument_count < 2 || argument_count > 5)
+if(argument_count < 2 || argument_count > 4)
     WRONG_PARAM_COUNT;
 
 /* argument count is correct, now retrieve arguments */
@@ -449,7 +449,7 @@
 switch(arg_count) {
     case 5:
         convert_to_double_ex(args[4]);
-        conv = (unsigned long) (Z_DVAL_P(args[4]) * 1000000.0);
+        conv = (unsigned long) (Z_DVAL_PP(args[4]) * 1000000.0);
         timeout.tv_sec = conv / 1000000;
         timeout.tv_usec = conv % 1000000;
         /* fall-through */

Reply via email to