-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
115 additions
and
28 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 |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
|
||
#define DRUID_NAME "Druid" | ||
#define DRUID_CREDITS "[email protected]" | ||
#define PHP_DRUID_VERSION "0.9.1" | ||
#define PHP_DRUID_VERSION "0.9.2" | ||
|
||
#define DRUID_CONTENT_TYPE "Content-Type:application/json" | ||
#define DRUID_PROPERTY_CURL_ERR_NO "_curl_error_no" | ||
|
@@ -36,6 +36,9 @@ | |
#define DRUID_PROPERTY_HOST_RAND "host_rand" | ||
#define DRUID_PROPERTY_HOST_RAND_BAR (double)0.5 | ||
|
||
#define DRUID_INSTANCE_DEFAULT "default" | ||
#define DRUID_INSTANCE_DEFAULT_LEN strlen(DRUID_INSTANCE_DEFAULT) | ||
|
||
#define DRUID_RESPONSE_CODE_ERROR_BAR 399 | ||
|
||
extern zend_module_entry druid_module_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,16 @@ | |
* @author [email protected] | ||
* Date: 17/1/9 下午3:47 | ||
*/ | ||
|
||
|
||
$Druid_1 = Druid::getInstance('druid_1'); | ||
$Druid_1 = Druid::getInstance(Druid::DRUID_INSTANCE_DEFAULT); | ||
$Druid_2 = Druid::getInstance('druid_2'); | ||
|
||
|
||
$Druid_1->aa = TRUE; | ||
$Druid_1->bb = TRUE; | ||
$Druid_1->debugWitch(TRUE); | ||
|
||
$Druid_2->debugWitch(FALSE); | ||
$Druid_2->bb = TRUE; | ||
|
||
$Druid_2->cc = TRUE; | ||
$Druid_2->dd = TRUE; | ||
$Druid_3 = Druid::getInstance(Druid::DRUID_INSTANCE_DEFAULT); | ||
$Druid_4 = Druid::getInstance('druid_2'); | ||
|
||
echo '<pre>'; | ||
exit(var_dump($Druid_1, $Druid_2)); | ||
var_dump($Druid_1 == $Druid_3, $Druid_2 == $Druid_4); |