Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vtigercrm
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Welcome to Vtiger Community. To gain access for account, please contact [ community @ vtiger.com ]
Show more breadcrumbs
Madhuk
vtigercrm
Commits
d470cd28
Commit
d470cd28
authored
6 years ago
by
Adrien Faveraux
Browse files
Options
Downloads
Patches
Plain Diff
PEAR php7
parent
94b83d15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PEAR.php
+19
-3
19 additions, 3 deletions
PEAR.php
with
19 additions
and
3 deletions
PEAR.php
+
19
−
3
View file @
d470cd28
...
...
@@ -156,7 +156,7 @@ class PEAR
// }}}
// {{{ constructor
/**
* Constructor. Registers this object in
* $_PEAR_destructor_object_list for destructor emulation if a
...
...
@@ -167,7 +167,7 @@ class PEAR
* @access public
* @return void
*/
function
PEAR
(
$error_class
=
null
)
public
function
__construct
(
$error_class
=
null
)
{
$classname
=
strtolower
(
get_class
(
$this
));
if
(
$this
->
_debug
)
{
...
...
@@ -191,6 +191,13 @@ class PEAR
}
}
}
function
PEAR
(
$error_class
=
null
)
{
// PHP4-style constructor.
// This will NOT be invoked, unless a sub-class that extends `foo` calls it.
// In that case, call the new-style constructor to keep compatibility.
self
::
__construct
();
}
// }}}
// {{{ destructor
...
...
@@ -842,7 +849,7 @@ class PEAR_Error
* @access public
*
*/
function
PEAR_Error
(
$message
=
'unknown error'
,
$code
=
null
,
public
function
__construct
(
$message
=
'unknown error'
,
$code
=
null
,
$mode
=
null
,
$options
=
null
,
$userinfo
=
null
)
{
if
(
$mode
===
null
)
{
...
...
@@ -900,6 +907,15 @@ class PEAR_Error
eval
(
'$e = new Exception($this->message, $this->code);throw($e);'
);
}
}
function
PEAR_Error
(
$message
=
'unknown error'
,
$code
=
null
,
$mode
=
null
,
$options
=
null
,
$userinfo
=
null
)
{
// PHP4-style constructor.
// This will NOT be invoked, unless a sub-class that extends `foo` calls it.
// In that case, call the new-style constructor to keep compatibility.
self
::
__construct
();
}
// }}}
// {{{ getMode()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment