Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56421096
D3787.id9812.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
895 B
Referenced Files
None
Subscribers
None
D3787.id9812.diff
View Options
diff --git a/omnitools/src/Debug/_register_to_global_space.php b/omnitools/src/Debug/_register_to_global_space.php
--- a/omnitools/src/Debug/_register_to_global_space.php
+++ b/omnitools/src/Debug/_register_to_global_space.php
@@ -4,6 +4,10 @@
use Keruald\OmniTools\Debug\Debugger;
+const SQL_ERROR = 65;
+const HACK_ERROR = 99;
+const GENERAL_ERROR = 117;
+
if (!function_exists("dprint_r")) {
function dprint_r ($variable) {
Debugger::printVariable($variable);
diff --git a/omnitools/tests/Debug/DebuggerTest.php b/omnitools/tests/Debug/DebuggerTest.php
--- a/omnitools/tests/Debug/DebuggerTest.php
+++ b/omnitools/tests/Debug/DebuggerTest.php
@@ -19,6 +19,7 @@
Debugger::register();
$this->assertTrue(function_exists("dprint_r"));
+ $this->assertTrue(defined("SQL_ERROR"));
}
private function assertTestSuiteStateIsValid() : void {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 7, 00:52 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4247769
Default Alt Text
D3787.id9812.diff (895 B)
Attached To
Mode
D3787: Import _ERROR constants into global debug space
Attached
Detach File
Event Timeline
Log In to Comment