View Issue Details

IDProjectCategoryView StatusLast Update
0000254WackoWikiinstallerpublic2009-10-13 16:03
Reporteradministrator Assigned Toadministrator  
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Target Version5.0.betaFixed in Version5.0.beta 
Summary0000254: mysqli_connect() expects parameter 5 to be long, string given
DescriptionThere is one thing that need to be done to fix this bug:
the variable $port should have default value of 3306 for mysqli

Patch included

second error: Warning: mysqli_connect() expects parameter 5 to be long, string given in C:\xampp\htdocs\svn_test\db\mysqli.php on line 31

ToDo: write the given Port also in the config file
Additional Informationif ( !isset ( $wakkaConfig["database_port"] ) ) $wakkaConfig["database_port"] = "3306";
if (!$port = trim($wakkaConfig["database_port"])) $port = "3306";
TagsNo tags attached.
Attached Files
database-install.patch (550 bytes)   
Index: database-install.php
===================================================================
--- database-install.php	(Revision 221)
+++ database-install.php	(Arbeitskopie)
@@ -238,6 +238,9 @@
 				case "mysqli_legacy":
 					require_once("setup/database_mysql.php");
 					require_once("setup/database_mysql_updates.php");
+					
+					if ( !isset ( $wakkaConfig["database_port"] ) ) $wakkaConfig["database_port"] = "3306";
+					if (!$port = trim($wakkaConfig["database_port"])) $port = "3306";
 
 					print("         <ul>\n");
 
database-install.patch (550 bytes)   

Relationships

related to 0000240 resolvedadministrator replace deprecated mysql_escape_string with mysql_real_escape_string 
related to 0000255 resolvedebal Warning: mysqli_connect() expects parameter 5 to be long, string given in \db\mysqli.php on line 31 

Activities

administrator

2009-02-16 15:52

administrator   ~0000577

Patch svned with rev262

-> review needed

Issue History

Date Modified Username Field Change
2009-01-09 15:04 administrator New Issue
2009-01-09 15:04 administrator Legacy => NEW
2009-01-09 17:43 administrator Additional Information Updated
2009-01-09 17:48 administrator Relationship added related to 0000240
2009-01-09 17:48 administrator Status new => confirmed
2009-01-09 19:40 administrator File Added: database-install.patch
2009-01-09 19:42 administrator Description Updated
2009-01-09 19:44 administrator Description Updated
2009-01-10 10:31 administrator Relationship added related to 0000255
2009-01-10 10:34 administrator Category Database => Installer
2009-02-16 15:52 administrator Note Added: 0000577
2009-02-16 15:52 administrator Status confirmed => assigned
2009-02-16 15:52 administrator Assigned To => Tann San
2009-03-12 20:56 administrator Status assigned => resolved
2009-03-12 20:56 administrator Resolution open => fixed
2009-03-12 20:56 administrator Fixed in Version => 5.0.0
2009-03-12 20:59 administrator Assigned To Tann San => administrator
2009-10-13 16:00 administrator Target Version 5.0.0 => 5.0.beta
2009-10-13 16:03 administrator Fixed in Version 5.0.0 => 5.0.beta
2010-03-08 10:14 administrator Category Installer => installer