[PATCH] xdiff lacks two TSRMLS_FETCH() calls

From: Date: Thu, 08 Jan 2004 23:05:04 +0000
Subject: [PATCH] xdiff lacks two TSRMLS_FETCH() calls
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-335@lists.php.net to get a copy of this message
Compilation fails with 'tsrm_ls undeclared' errors. After doing some google, I've found some similiar reports. It looks like the code misses TSRMLS_FETCH() calls in two places. Here's patch that fixes it: diff -burN xdiff-0.2.orig/xdiff.c xdiff-0.2/xdiff.c --- xdiff-0.2.orig/xdiff.c 2004-01-08 23:44:07.000000000 +0100 +++ xdiff-0.2/xdiff.c 2004-01-08 23:46:18.000000000 +0100 @@ -522,6 +522,7 @@ php_stream *src; php_stream_statbuf stat; + TSRMLS_FETCH(); src = php_stream_open_wrapper((char *) filepath, "rb", REPORT_ERRORS | ENFORCE_SAFE_MODE, NULL); if (!src) { return 0; @@ -593,6 +594,7 @@ php_stream *stream = ptr; unsigned int i; + TSRMLS_FETCH(); for (i = 0; i < array_size; i++) { php_stream_write(stream, buffer[i].ptr, buffer[i].size); } PS: Well, since I was recieving such an errors in other packages too, and I know how to fix these now, I guess I'll try to send more patches soon. -- http://www.mysza.eu.org/ | Everybody needs someone sure, someone true, PLD Linux developer | Everybody needs some solid rock, I know I do.

« previous php.pecl.dev (#335) next »