diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2001-08-02 05:36:50 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2001-08-02 05:36:50 +0000 |
commit | 8cf4e4a725da55993de5cfff41278df1ce7a3a10 (patch) | |
tree | 892f5a767f7bd31f9fcbca992ea43a9eb67994ea | |
parent | 3aa5674a84891e3d599ff984bfdd3c8735823752 (diff) | |
download | php-git-8cf4e4a725da55993de5cfff41278df1ce7a3a10.tar.gz |
TSRM fix for ext_skel - probably more needed
-rw-r--r-- | README.EXT_SKEL | 6 | ||||
-rwxr-xr-x | ext/skeleton/create_stubs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/README.EXT_SKEL b/README.EXT_SKEL index a887a85e5f..79640f1560 100644 --- a/README.EXT_SKEL +++ b/README.EXT_SKEL @@ -128,8 +128,8 @@ CURRENT LIMITATIONS, BUGS AND OTHER ODDITIES It can't handle correctly, and probably never will, variable list of of arguments. (void foo(int bar [, ...]) - Don't trust too much the generated code. It tries to be useful in most of - the situations you might encounter, but automatic code generating will never + Don't trust the generated code too much. It tries to be useful in most of + the situations you might encounter, but automatic code generation will never beat a programmer who knows the real situation at hand. ext_skel is generally best suited for quickly generating a wrapper for c-library functions you might want to have available in PHP too. @@ -154,7 +154,7 @@ PHP_FUNCTION(my_drawtext) int argc; int image_id = -1; int font_id = -1; - ???LS_FETCH(); + TSRMLS_FETCH(); argc = ZEND_NUM_ARGS(); if (argc < 5 || argc > 6 || zend_get_parameters_ex(argc, &image, &text, &font, &x, &y, &color) == FAILURE) { diff --git a/ext/skeleton/create_stubs b/ext/skeleton/create_stubs index df3d4a65e6..a4bed440f9 100755 --- a/ext/skeleton/create_stubs +++ b/ext/skeleton/create_stubs @@ -272,7 +272,7 @@ END { fetchargs = fetchargs ") == FAILURE)" closefetch "{\n\t\tZEND_WRONG_PARAM_COUNT();\n\t}\n" } if (assign_params) funcvals = ints doubles floats strings - if (resources) funcvals = funcvals "\t???LS_FETCH();\n" + if (resources) funcvals = funcvals "\tTSRMLS_FETCH();\n" if (useswitch[i]) { if (check_argc_in_switch[i]) { check_argc = "\t\tdefault:\n\t\t\tZEND_WRONG_PARAM_COUNT();\n" |