mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
* _infoFromAny goes public!
This commit is contained in:
parent
840b5f8e67
commit
2034c61557
1 changed files with 4 additions and 4 deletions
|
@ -888,9 +888,9 @@ class PEAR_Common extends PEAR
|
||||||
}
|
}
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
// {{{ _infoFromAny()
|
// {{{ infoFromAny()
|
||||||
|
|
||||||
function _infoFromAny($info)
|
function infoFromAny($info)
|
||||||
{
|
{
|
||||||
if (is_string($info) && file_exists($info)) {
|
if (is_string($info) && file_exists($info)) {
|
||||||
$tmp = substr($info, -4);
|
$tmp = substr($info, -4);
|
||||||
|
@ -926,7 +926,7 @@ class PEAR_Common extends PEAR
|
||||||
$_PEAR_Common_dependency_relations,
|
$_PEAR_Common_dependency_relations,
|
||||||
$_PEAR_Common_file_roles,
|
$_PEAR_Common_file_roles,
|
||||||
$_PEAR_Common_replacement_types;
|
$_PEAR_Common_replacement_types;
|
||||||
if (PEAR::isError($info = $this->_infoFromAny($info))) {
|
if (PEAR::isError($info = $this->infoFromAny($info))) {
|
||||||
return $this->raiseError($info);
|
return $this->raiseError($info);
|
||||||
}
|
}
|
||||||
if (!is_array($info)) {
|
if (!is_array($info)) {
|
||||||
|
@ -1142,7 +1142,7 @@ class PEAR_Common extends PEAR
|
||||||
if (!function_exists("token_get_all")) {
|
if (!function_exists("token_get_all")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (PEAR::isError($info = $this->_infoFromAny($any))) {
|
if (PEAR::isError($info = $this->infoFromAny($any))) {
|
||||||
return $this->raiseError($info);
|
return $this->raiseError($info);
|
||||||
}
|
}
|
||||||
if (!is_array($info)) {
|
if (!is_array($info)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue