fmk Wed Jan 31 05:08:46 2007 UTC
Modified files:
/pecl/printer printer.c
Log:
Make sure paramerts are preserved in the fall through.
http://cvs.php.net/viewvc.cgi/pecl/printer/printer.c?r1=1.33&r2=1.34&diff_format=u
Index: pecl/printer/printer.c
diff -u pecl/printer/printer.c:1.33 pecl/printer/printer.c:1.34
--- pecl/printer/printer.c:1.33 Wed Jan 31 04:11:14 2007
+++ pecl/printer/printer.c Wed Jan 31 05:08:46 2007
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: printer.c,v 1.33 2007/01/31 04:11:14 fmk Exp $ */
+/* $Id: printer.c,v 1.34 2007/01/31 05:08:46 fmk Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -109,7 +109,7 @@
php_info_print_table_row(2, "Printer Support", "enabled");
php_info_print_table_row(2, "Default printing device",
PRINTERG(default_printer) ? PRINTERG(default_printer) : "<b>not detected</b>");
php_info_print_table_row(2, "Module state", "working");
- php_info_print_table_row(2, "RCS Version", "$Id: printer.c,v 1.33
2007/01/31 04:11:14 fmk Exp $");
+ php_info_print_table_row(2, "RCS Version", "$Id: printer.c,v 1.34
2007/01/31 05:08:46 fmk Exp $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
}
@@ -377,6 +377,9 @@
WRONG_PARAM_COUNT;
}
+ Level = 1;
+ Name = NULL;
+
switch(argc) {
case 3:
convert_to_long_ex(arg3);
@@ -387,12 +390,9 @@
}
case 2:
convert_to_string_ex(arg2);
- Name = Z_STRVAL_PP(arg2);
- Level = 1;
+ Name = Z_STRVAL_PP(arg2);
case 1:
convert_to_long_ex(arg1);
- Name = NULL;
- Level = 1;
break;
}
|