Nucleus Core

Login!
Register as a new userLost password?

for Project:

This is the tracker for the Core of the Nucleus CMS-project (Nucleus CMS Website)

FS#99 — mysqli workaround

Attached to Project— Nucleus Core
Opened by Wouter Demuynck (karma) - Wednesday, 28 September 2005, 06:51PM
Last edited by Wouter Demuynck (karma) - Monday, 24 October 2005, 07:42PM
Improvement
PHP version specific
Assigned
Wouter Demuynck
All
High
Normal
CVS
3.3
Undecided
90%
Add the mysqli workaround as described in http://karma.nucleuscms.org/item/98

Some words of caution on this hack:

- I haven't tested this code very well, I added mapping functions until visiting a Nucleus website and its admin area appeared to work without errors.
- Not all mysql_ functions are present in the mapping. This means that you can still run into a call to an undefined function: mysql_xxxx. In that case, it should also be added to the mapping.
- Since I couldn't find an exact match for mysql_result, and because the only occurrences in the Nucleus core code use it to get the result at row 0 and field 0, that's how I implemented it. In other cases, an error message will show up in the output.

This task depends upon

This task blocks these from closing
Comment by Edmond Hui (ehui) - Thursday, 06 October 2005, 07:39PM

Been using the CVS code on a testbed and have not see any problem.


Comment by Wouter Demuynck (karma) - Monday, 24 October 2005, 07:42PM

One issue discovered: backup.php uses some functions which aren't in mysql.php yet.

I was able to map mysql_num_fields, but need to do some work on mysql_field_name, which does not have a direct mapping onto a mysqli function


Comment by Wouter Demuynck (karma) - Saturday, 12 November 2005, 07:08PM

Issue (mysql-field-name) has been fixed in CVS