Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDI-1426 Replace deprecated function split with explode #109

Merged
merged 1 commit into from
Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/adodb5/adodb-datadict.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ function RenameColumnSQL($tabname,$oldcolumn,$newcolumn,$flds='')
// genfields can return FALSE at times
if ($lines == null) $lines = array();
list(,$first) = each($lines);
list(,$column_def) = split("[\t ]+",$first,2);
list(,$column_def) = explode(' ',$first,2);
}
return array(sprintf($this->renameColumn,$tabname,$this->NameQuote($oldcolumn),$this->NameQuote($newcolumn),$column_def));
}
Expand Down
2 changes: 1 addition & 1 deletion src/adodb5/drivers/adodb-informix72.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ function FetchField($fieldOffset = -1)
foreach($fp as $k => $v) {
$o = new ADOFieldObject;
$o->name = $k;
$arr = split(';',$v); //"SQLTYPE;length;precision;scale;ISNULLABLE"
$arr = explode(';',$v); //"SQLTYPE;length;precision;scale;ISNULLABLE"
$o->type = $arr[0];
$o->max_length = $arr[1];
$this->_fieldprops[] = $o;
Expand Down
2 changes: 1 addition & 1 deletion src/adodb5/drivers/adodb-ldap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function _connect( $host, $username, $password, $ldapbase)
$conn_info = array( $host,$this->port);

if ( strstr( $host, ':' ) ) {
$conn_info = split( ':', $host );
$conn_info = explode( ':', $host );
}

$this->_connectionID = @ldap_connect( $conn_info[0], $conn_info[1] );
Expand Down
2 changes: 1 addition & 1 deletion src/adodb5/drivers/adodb-postgres64.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ function _connect($str,$user='',$pwd='',$db='',$ctype=0)
if (strlen($db) == 0) $db = 'template1';
$db = adodb_addslashes($db);
if ($str) {
$host = split(":", $str);
$host = explode(':', $str);
if ($host[0]) $str = "host=".adodb_addslashes($host[0]);
else $str = '';
if (isset($host[1])) $str .= " port=$host[1]";
Expand Down