CVS update: php3/functions

From: Date: Thu, 03 Dec 1998 22:58:51 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-2651@lists.php.net to get a copy of this message
Date: Thursday December 3, 1998 @ 17:58 Author: shane Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv3230/functions Modified Files: file.c pdf.c Log Message: A couple minor changes to let pdf work again on win32 as a dll Index: php3/functions/file.c diff -c php3/functions/file.c:1.185 php3/functions/file.c:1.186 *** php3/functions/file.c:1.185 Wed Nov 18 16:23:05 1998 --- php3/functions/file.c Thu Dec 3 17:58:50 1998 *************** *** 26,32 **** | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: file.c,v 1.185 1998/11/18 21:23:05 ssb Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif --- 26,32 ---- | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ ! /* $Id: file.c,v 1.186 1998/12/03 22:58:50 shane Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif *************** *** 1435,1440 **** --- 1435,1445 ---- } /* }}} */ + /* aparently needed for pdf to be compiled as a module under windows */ + PHPAPI int php3i_get_le_fp(void){ + TLS_VARS; + return GLOBAL(le_fp); + } /* * Local variables: Index: php3/functions/pdf.c diff -c php3/functions/pdf.c:1.10 php3/functions/pdf.c:1.11 *** php3/functions/pdf.c:1.10 Wed Nov 18 16:23:10 1998 --- php3/functions/pdf.c Thu Dec 3 17:58:51 1998 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.10 1998/11/18 21:23:10 ssb Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.11 1998/12/03 22:58:51 shane Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ *************** *** 351,357 **** convert_to_long(info); id=file->value.lval; fp = php3_list_find(id,&type); ! if (!fp || type!=GLOBAL(le_fp)) { php3_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type); RETURN_FALSE; } --- 351,357 ---- convert_to_long(info); id=file->value.lval; fp = php3_list_find(id,&type); ! if (!fp || type!=php3i_get_le_fp()) { php3_error(E_WARNING,"Unable to find file identifier %d (type=%d)",id, type); RETURN_FALSE; } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2651) next »