PHP Incompatibility issues
Status: Planning
Brought to you by:
gschutz
I have installed PurpleView on a Debian sarge box
(current stable). The following software versions are used:
- apache2 (v 2.0.54),
- mysql (v 4.0.24) and
- php4 (v 4.3.10).
I encountered some minor problems of the type:
Warning: missing argument in different function calls.
With these warnings in the user interface, the layout
is somehow difficult to use.
These come from the fact that omitted function
parameters should have a default value assigned in the
function definition. Otherwise PHP (4.3...) gives a
warning.
Logged In: YES
user_id=1524024
Functionality "View All Papers":
Warning: Missing argument 1 for opencolortablenv() in
/var/www/purpleview/form_designer.php on line 55
Warning: Missing argument 2 for opencolortablenv() in
/var/www/purpleview/form_designer.php on line 55
This comes from table_designer.php line 37 where no
parameters is specified for the function OpenColorTableNV();
As no default is specifyed in the function definition this
results in the warning.
==> Proposition specify table size and color in
table_designer.php line 37.
==> OpenColorTableNV("100%","#AAAAAA");
Logged In: YES
user_id=1524024
On other parts the function OpenColorTable() is used with
some parameters but others are omitted. As this function is
often used with only two parameters (table size & color) the
other maybe optional parameters. To avoid the warning, I
suggest specifying default values for those parameters.
==> form_designer.php line 47
==> function OpenColorTable($table_size, $color,
$align="center", $extra_params="") {
Logged In: YES
user_id=1524024
A similar situation, missing default value for optional
parameters, exist for the PrintCell() function.
==> form_designer.php line 94
==> function PrintCell($element_size, $cell, $extra_params="") {