generated from zeriyoshi/pskel
-
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.
- Loading branch information
Showing
10 changed files
with
75 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARG_ENABLE('skeleton', 'skeleton support', 'no'); | ||
ARG_ENABLE('my_print_ht', 'my_print_ht support', 'no'); | ||
|
||
if (PHP_SKELETON != 'no') { | ||
AC_DEFINE('HAVE_SKELETON', 1, 'skeleton support enabled'); | ||
if (PHP_MY_PRINT_HT != 'no') { | ||
AC_DEFINE('HAVE_MY_PRINT_HT', 1, 'my_print_ht support enabled'); | ||
|
||
EXTENSION('skeleton', 'skeleton.c', null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1'); | ||
EXTENSION('my_print_ht', 'my_print_ht.c', null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1'); | ||
} |
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
File renamed without changes.
File renamed without changes.
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,15 @@ | ||
/* my_print_ht extension for PHP */ | ||
|
||
#ifndef PHP_MY_PRINT_HT_H | ||
# define PHP_MY_PRINT_HT_H | ||
|
||
extern zend_module_entry my_print_ht_module_entry; | ||
# define phpext_my_print_ht_ptr &my_print_ht_module_entry | ||
|
||
# define PHP_MY_PRINT_HT_VERSION "0.1.0" | ||
|
||
# if defined(ZTS) && defined(COMPILE_DL_MY_PRINT_HT) | ||
ZEND_TSRMLS_CACHE_EXTERN() | ||
# endif | ||
|
||
#endif /* PHP_MY_PRINT_HT_H */ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--TEST-- | ||
Check if skeleton is loaded | ||
Check if my_print_ht is loaded | ||
--EXTENSIONS-- | ||
skeleton | ||
my_print_ht | ||
--FILE-- | ||
<?php | ||
echo 'The extension "skeleton" is available'; | ||
echo 'The extension "my_print_ht" is available'; | ||
?> | ||
--EXPECT-- | ||
The extension "skeleton" is available | ||
The extension "my_print_ht" is available |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--TEST-- | ||
test1() Basic test | ||
--EXTENSIONS-- | ||
skeleton | ||
my_print_ht | ||
--FILE-- | ||
<?php | ||
$ret = test1(); | ||
|
||
var_dump($ret); | ||
?> | ||
--EXPECT-- | ||
The extension skeleton is loaded and working! | ||
The extension my_print_ht is loaded and working! | ||
NULL |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--TEST-- | ||
test2() Basic test | ||
--EXTENSIONS-- | ||
skeleton | ||
my_print_ht | ||
--FILE-- | ||
<?php | ||
var_dump(test2()); | ||
|