Two patches to fix some warnings/errors

From: Date: Fri, 03 Sep 1999 14:34:39 +0000
Subject: Two patches to fix some warnings/errors
Groups: php.version4 
Request: Send a blank email to php-version4+get-4047@lists.php.net to get a copy of this message
Hi, attached are two patches for output.c and ext/pdf/pdf.c which fix some warnings and errors (in the latter case): output.c: --------- output.c:99: warning: static declaration for `zend_ob_init' follows non-static output.c:111: warning: static declaration for `zend_ob_destroy' follows non-static output.c:120: warning: static declaration for `zend_ob_append' follows non-static output.c:133: warning: static declaration for `zend_ob_prepend' follows non-static pdf.c: ------ pdf.c: In function `php3_pdf_put_image': pdf.c:2123: warning: passing arg 1 of `php_printf' makes pointer from integer without a cast pdf.c: In function `php3_pdf_execute_image': pdf.c:2162: warning: passing arg 1 of `php_printf' makes pointer from integer without a cast I hope, someone can incorporate them into the CVS tree. Thanks. Oliver *** output.c Fri Sep 3 16:20:33 1999 --- output.c.org Fri Sep 3 15:20:55 1999 *************** *** 34,43 **** static uint ob_buffer_size; static uint ob_block_size; static uint ob_text_length; ! void zend_ob_init(uint initial_size, uint block_size); ! void zend_ob_destroy(); ! void zend_ob_append(const char *text, uint text_length); ! void zend_ob_prepend(const char *text, uint text_length); static inline void zend_ob_send(); --- 34,43 ---- static uint ob_buffer_size; static uint ob_block_size; static uint ob_text_length; ! static void zend_ob_init(uint initial_size, uint block_size); ! static void zend_ob_destroy(); ! static void zend_ob_append(const char *text, uint text_length); ! static void zend_ob_prepend(const char *text, uint text_length); static inline void zend_ob_send(); *** pdf.c Fri Sep 3 16:23:29 1999 --- pdf.c.org Thu Aug 19 08:43:43 1999 *************** *** 2120,2126 **** PDF_TLS_VARS; #if PDFLIB_MINORVERSION > 0 ! php_printf(E_WARNING, "Version 2.01 of pdflib does not need the pdf_put_image() anymore, check the docs!"); #else if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &arg1, &arg2) == FAILURE) { WRONG_PARAM_COUNT; --- 2120,2126 ---- PDF_TLS_VARS; #if PDFLIB_MINORVERSION > 0 ! php3_error(E_WARNING, "Version 2.01 of pdflib does not need the pdf_put_image() anymore, check the docs!"); #else if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &arg1, &arg2) == FAILURE) { WRONG_PARAM_COUNT; *************** *** 2159,2165 **** PDF_TLS_VARS; #if PDFLIB_MINORVERSION >= 01 ! php_printf(E_WARNING, "Version 2.01 of pdflib does not need the pdf_execute_image() anymore, check the docs!"); #else if (ARG_COUNT(ht) != 5 || getParameters(ht, 5, &arg1, &arg2, &arg3, &arg4, &arg5) == FAILURE) { WRONG_PARAM_COUNT; --- 2159,2165 ---- PDF_TLS_VARS; #if PDFLIB_MINORVERSION >= 01 ! php3_error(E_WARNING, "Version 2.01 of pdflib does not need the pdf_execute_image() anymore, check the docs!"); #else if (ARG_COUNT(ht) != 5 || getParameters(ht, 5, &arg1, &arg2, &arg3, &arg4, &arg5) == FAILURE) { WRONG_PARAM_COUNT; -- \\\/// +--------------------+ \\// +-----------------------------+ | Oliver Billmann | ( .. ) | oliver@billix.franken.de | +--------------------+-ooO-(__)-Ooo-+-----------------------------+

« previous php.version4 (#4047) next »