Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X Lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XLibs
X Lib
Commits
a67eea3c
Commit
a67eea3c
authored
Jun 26, 2016
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
next step
parent
3f77333a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
84 additions
and
4 deletions
+84
-4
TItem.php
ETrace/TItem.php
+32
-2
test.php
ETrace/test.php
+36
-2
test2.php
ETrace/test2.php
+3
-0
test3.php
ETrace/test3.php
+3
-0
test4.php
ETrace/test4.php
+10
-0
No files found.
ETrace/TItem.php
View file @
a67eea3c
...
@@ -9,7 +9,8 @@ class TItem extends \Exception
...
@@ -9,7 +9,8 @@ class TItem extends \Exception
/**
/**
* @var mixed
* @var mixed
*/
*/
protected
$Trace
;
protected
$hash
;
/**
/**
* @var mixed
* @var mixed
*/
*/
...
@@ -37,7 +38,36 @@ class TItem extends \Exception
...
@@ -37,7 +38,36 @@ class TItem extends \Exception
}
}
$this
->
context
=
$context
;
$this
->
context
=
$context
;
$this
->
Trace
=
$this
->
getTrace
();
}
/**
* @return mixed
*/
public
function
Trace
()
{
return
$this
->
getTrace
();
}
/**
* @return mixed
*/
public
function
Dump
()
{
return
$this
->
Model
();
}
public
function
Model
()
{
return
[
"hash"
=>
$this
->
hash
,
"message"
=>
$this
->
message
,
"code"
=>
$this
->
code
,
"file"
=>
$this
->
file
,
"line"
=>
$this
->
line
,
"trace"
=>
$this
->
Trace
(),
"context"
=>
$this
->
context
,
];
}
}
public
function
Save
()
public
function
Save
()
...
...
ETrace/test.php
View file @
a67eea3c
...
@@ -4,7 +4,41 @@ require_once "Error.php";
...
@@ -4,7 +4,41 @@ require_once "Error.php";
//throw new ErrorException("Error Processing Request", 1);
//throw new ErrorException("Error Processing Request", 1);
$ddd
=
new
X\ETrace\Error
(
"Error Processing Request"
,
1
);
class
wwwww
{
/**
* @var mixed
*/
static
$eer
;
/**
* @param $value
* @param $rrrr
*/
public
function
qwewqew
(
$value
,
$rrrr
)
{
$ee
=
new
X\ETrace\Error
(
"Error Processing Request"
,
1
);
print_r
(
$ee
->
Trace
()
);
}
public
static
function
qqq
()
{
self
::
$eer
=
new
self
();
self
::
fff
();
}
public
static
function
fff
()
{
self
::
$eer
->
qwewqew
([
1
,
2
,
5
,
7
,
9
],
"dfgd"
);
}
}
wwwww
::
qqq
();
//throw $ddd;
throw
$ddd
;
?>
?>
\ No newline at end of file
ETrace/test2.php
0 → 100644
View file @
a67eea3c
<?php
require_once
"test.php"
;
?>
\ No newline at end of file
ETrace/test3.php
0 → 100644
View file @
a67eea3c
<?php
require_once
"test2.php"
;
?>
\ No newline at end of file
ETrace/test4.php
0 → 100644
View file @
a67eea3c
<?php
function
FunctionName
()
{
require_once
"test3.php"
;
# code...
}
FunctionName
();
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment