forked from crazyxman/simdjson_php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from RuntimeException to SimdJsonException
1. Change to SimdJsonException extends RuntimeException. The name was chosen to be similar to https://www.php.net/jsonexception JsonException. 2. Set the value of $e->getCode() 3. Add global constants `SIMDJSON_ERR_*`
- Loading branch information
1 parent
bf7357c
commit e044b8b
Showing
15 changed files
with
167 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
/** | ||
* This is used with php-src's build/gen_stubs.php to generate argument info compatible with php 7.0 and above. | ||
* | ||
* See README.md for function documentation. | ||
* | ||
* @generate-class-entries | ||
*/ | ||
|
||
class SimdJsonException extends RuntimeException { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* This is a generated file, edit the .stub.php file instead. | ||
* Stub hash: e7f05ec4984c79ce2696174896f000a7082de6ed */ | ||
|
||
|
||
|
||
|
||
static const zend_function_entry class_SimdJsonException_methods[] = { | ||
ZEND_FE_END | ||
}; | ||
|
||
static zend_class_entry *register_class_SimdJsonException(zend_class_entry *class_entry_RuntimeException) | ||
{ | ||
zend_class_entry ce, *class_entry; | ||
|
||
INIT_CLASS_ENTRY(ce, "SimdJsonException", class_SimdJsonException_methods); | ||
class_entry = zend_register_internal_class_ex(&ce, class_entry_RuntimeException); | ||
|
||
return class_entry; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.