]> granicus.if.org Git - php/commitdiff
Comment out fprintf() use inside the library
authorIlia Alshanetsky <iliaa@php.net>
Tue, 9 Dec 2008 17:20:57 +0000 (17:20 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 9 Dec 2008 17:20:57 +0000 (17:20 +0000)
ext/xmlrpc/libxmlrpc/xml_element.c
ext/xmlrpc/libxmlrpc/xmlrpc.c

index 5e4b8db6b7b3409a46dcb19981cd3431632145b7..0843fc528e4c4cf316a2855bd4a46803fcf47ab4 100644 (file)
@@ -44,6 +44,9 @@ static const char rcsid[] = "#(@) $Id$";
  *   06/2000
  * HISTORY
  *   $Log$
+ *   Revision 1.11  2007/01/01 09:29:33  sebastian
+ *   Bump year.
+ *
  *   Revision 1.10  2007/07/30 11:33:49  tony2001
  *   fix compile warnings (#38257)
  *
@@ -378,7 +381,7 @@ static void xml_element_serialize(xml_element *el, int (*fptr)(void *data, const
    depth++;
 
    if(!el) {
-      fprintf(stderr, "Nothing to write\n");
+      /* fprintf(stderr, "Nothing to write\n"); */
       return;
    }
    if(!options) {
@@ -725,7 +728,7 @@ xml_element* xml_elem_parse_buf(const char* in_buf, int len, XML_ELEM_INPUT_OPTI
                       byte_idx > 10  ? 10 : byte_idx,
                       in_buf + (byte_idx > 10 ? byte_idx - 10 : byte_idx));
          }
-
+/*
          fprintf(stderr, "expat reports error code %i\n"
                 "\tdescription: %s\n"
                 "\tline: %i\n"
@@ -734,7 +737,7 @@ xml_element* xml_elem_parse_buf(const char* in_buf, int len, XML_ELEM_INPUT_OPTI
                 "\ttotal bytes: %i\n%s ",
                 err_code, error_str, line_num, 
                 col_num, byte_idx, byte_total, buf);
-
+*/
 
           /* error condition */
           if(error) {
index 395cadbfa34ec9f2bc91a9741d69de462d77b023..9e0f67712200ef7ece3196cdd15cf8103dc22e14 100644 (file)
@@ -43,6 +43,12 @@ static const char rcsid[] = "#(@) $Id$";
  *   9/1999 - 10/2000
  * HISTORY
  *   $Log$
+ *   Revision 1.13  2008/09/10 00:05:26  felipe
+ *   - Merged fix from SF project (Import Jeff Lawsons patches for XML datetime bug fixes)
+ *     Fixed bugs:
+ *     #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string)
+ *     #18916 (xmlrpc_set_type() "not working")
+ *
  *   Revision 1.12  2007/09/18 19:52:27  iliaa
  *
  *   MFB: Fixed bug #42189 (xmlrpc_set_type() crashes php on invalid datetime
@@ -1164,13 +1170,13 @@ int XMLRPC_AddValueToVector(XMLRPC_VALUE target, XMLRPC_VALUE source) {
                   }
                }
                else {
-                                       fprintf (stderr,
-                                                               "xmlrpc: attempted to add key/val pair to vector of type array\n");
+                                       /* fprintf (stderr,
+                                                               "xmlrpc: attempted to add key/val pair to vector of type array\n"); */
                }
                break;
             default:
-                               fprintf (stderr,
-                                                       "xmlrpc: attempted to add value of unknown type to vector\n");
+                               /* fprintf (stderr,
+                                                       "xmlrpc: attempted to add value of unknown type to vector\n"); */
                break;
          }
       }
@@ -1500,8 +1506,8 @@ void XMLRPC_CleanupValue(XMLRPC_VALUE value) {
                my_free(value);
                break;
             default:
-                               fprintf (stderr,
-                                                       "xmlrpc: attempted to free value of invalid type\n");
+                               /* fprintf (stderr,
+                                                       "xmlrpc: attempted to free value of invalid type\n"); */
                break;
          }
       }