Skip to content

Commit

Permalink
MDI-1426 Replace deprecated function split with explode
Browse files Browse the repository at this point in the history
  • Loading branch information
seergiue authored and kpicaza committed Nov 26, 2021
1 parent 12cd3ea commit f92a916
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit f92a916

Please sign in to comment.