Share

EasyMOD

Tracker: Bugs

3 unitialized variable in easymod installer - ID: 1539642
Last Update: Comment added ( wgeric )

version 0.3, file easymod_install.php, function _sql(...)

there is a line
$error_ary['sql'][] = ( is_array($sql) ) ? $sql[$i] : $sql;

$i is never initialized and therefore evaluates as
zero, so the line still works. But please fix this, it
may suddenly break in later PHP versions.


Bananeweizen ( bananeweizen ) - 2006-08-13 18:47

3

Closed

Fixed

Eric Faerber

Installation

v0.3.0

Public


Comments ( 2 )

Date: 2006-09-30 17:35
Sender: wgericProject AdminAccepting Donations

Logged In: YES
user_id=657440

I've changed it to 0 in CVS. I'm not sure if any arrays are
sent to that function so it probably won't affect anything.


Date: 2006-08-14 15:44
Sender: gphemsleyAccepting Donations

Logged In: YES
user_id=779036

It's true that $i is not initialized, but I'm not sure that
$i automatically evaluates to 0, as uninitialized variables
are NULL. Either way, I'm pretty sure it's already broken,
so it can't really "break in later PHP versions".


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2006-09-30 17:35 wgeric
resolution_id None 2006-09-30 17:35 wgeric
assigned_to nobody 2006-09-30 17:35 wgeric
close_date - 2006-09-30 17:35 wgeric
priority 5 2006-08-14 15:44 gphemsley