summaryrefslogtreecommitdiff
path: root/ext/hyperwave/hw.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-31 07:09:49 +0000
committerZeev Suraski <zeev@php.net>2001-07-31 07:09:49 +0000
commitb1de7fc900766b229f17bf9e1020b5a67b5b0964 (patch)
treec405a417de3fdafcd98ad8db882b770e96e70d90 /ext/hyperwave/hw.c
parentbc42c37513a730b0b3ff9cf29e14e45e4ec50c71 (diff)
downloadphp-git-b1de7fc900766b229f17bf9e1020b5a67b5b0964.tar.gz
More TSRMLS_FETCH annihilation. Enough for today...
Diffstat (limited to 'ext/hyperwave/hw.c')
-rw-r--r--ext/hyperwave/hw.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c
index 1f612b5281..fe1eec534a 100644
--- a/ext/hyperwave/hw.c
+++ b/ext/hyperwave/hw.c
@@ -2800,7 +2800,8 @@ PHP_FUNCTION(hw_insertdocument) {
/* {{{ proto hwdoc hw_new_document(string objrec, string data, int size)
Create a new document */
-PHP_FUNCTION(hw_new_document) {
+PHP_FUNCTION(hw_new_document)
+{
pval *arg1, *arg2, *arg3;
char *ptr;
hw_document *doc;
@@ -2835,7 +2836,8 @@ PHP_FUNCTION(hw_new_document) {
#define BUFSIZE 8192
/* {{{ proto hwdoc hw_new_document_from_file(string objrec, string filename)
Create a new document from a file */
-PHP_FUNCTION(hw_new_document_from_file) {
+PHP_FUNCTION(hw_new_document_from_file)
+{
pval **arg1, **arg2;
int len, type;
char *ptr;
@@ -2854,7 +2856,7 @@ PHP_FUNCTION(hw_new_document_from_file) {
convert_to_string_ex(arg1);
convert_to_string_ex(arg2);
- fp = php_fopen_wrapper((*arg2)->value.str.val,"r", use_include_path|ENFORCE_SAFE_MODE, &issock, &socketd, NULL);
+ fp = php_fopen_wrapper((*arg2)->value.str.val,"r", use_include_path|ENFORCE_SAFE_MODE, &issock, &socketd, NULL TSRMLS_CC);
if (!fp && !socketd){
if (issock != BAD_URL) {
char *tmp = estrndup(Z_STRVAL_PP(arg2), Z_STRLEN_PP(arg2));