Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 26. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  phpMyEdit uses deprecated mysql functions

phpMyEdit General     phpMyEdit uses deprecated mysql functions
Odoslať novú tému   Odpovedať na tému    
 
Atara.H     Založený: 23.07.2014   Príspevky: 11  
Príspevok Zaslal: 2015-10-14 10:06
Návrat hore  Odpovedať s citátom     

All mysql functions are deprecated since PHP 5.5 and are going to be removed in PHP 7.

e.g. http://php.net/manual/en/function.mysql-fetch-array.php

Can someone share a new version of phpMyEdit.class.php that uses available functions?

Thanks,

Atara.

 
Atara.H     Založený: 23.07.2014   Príspevky: 11  
Príspevok Zaslal: 2015-11-02 10:54
Návrat hore  Odpovedať s citátom     

[but I did not find a way to upload it here :( ]


- changed lines are marked as "PDO"
- function-names were changed iff function parameters were changed
- I did not find simple solution to replace the function sql_field_len(), so it is recommended to declare 'maxlen' option for (['select'] == 'N' || ['select'] == 'T')

 
Atara.H     Založený: 23.07.2014   Príspevky: 11  
Príspevok Zaslal: 2015-11-02 11:22
Návrat hore  Odpovedať s citátom     

you can download the file from the bug report -

http://opensource.platon.org/projects/bug_view_advanced_page.php?f_bug_id=782


please add here your comments\improvements

Thanks

Atara

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2015-11-02 16:27
Návrat hore  Odpovedať s citátom     

Maybe this will help:
http://php.net/manual/en/mysqli-result.lengths.php

Though in the class file I find sql_field_len is only used with function filter_heading() and only when 'select' is either N or T.

I cannot remember why I hacked my function filter_heading() and set
//$maxlen > 0 || $maxlen = intval($this->sql_field_len($res, $fields["qf$k"]));
$maxlen > 0 || $maxlen = 500;

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov