[Phpmyadmin-devel] [patch] php3 compat error

Joshua Nye josh at boxcarmedia.com
Thu Feb 28 08:40:03 CET 2002


The unset function in PHP3 can only handle one argument. It currently generates an parse error.

--Josh

--- tbl_printview.php3  23 Feb 2002 16:44:10 -0000      1.34
+++ tbl_printview.php3  28 Feb 2002 16:34:59 -0000
@@ -325,7 +325,8 @@
                 list($free_size, $free_unit)     = PMA_formatByteDown($showtable['Data_free']);
                 list($effect_size, $effect_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length'] - $showtable['Data_free']);
             } else {
-                unset($free_size, $free_unit);
+                unset($free_size);
+                unset($free_unit);
                 list($effect_size, $effect_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length']);
             }
             list($tot_size, $tot_unit)           = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length']);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20020228/08b69e91/attachment.html>


More information about the Developers mailing list