Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] cvs: /php4/ext/zlib zlib.dsp /php4/ext/zlib zlib.c From: Andi Gutmans (andi <email protected>)
Date: 04/20/00

Frank,

I think the problem was that these two functions aren't exported by PHP. I
am commiting a patch in two minutes.

Andi

At 08:26 PM 4/20/00 +0300, Andi Gutmans wrote:
>Frank this isn't a typo. strlcpy() is a function which is compiled on
>Windows and defined in php.h. I reverted your patch.
>If you are having problems compiling it let me know what the problem is
>and I'll help you.
>
>Andi
>
>At 05:00 PM 4/20/00 +0000, Frank M. Kromann wrote:
>>fmk Thu Apr 20 10:00:25 2000 EDT
>>
>> Added files:
>> /php4/ext/zlib zlib.dsp
>>
>> Modified files:
>> /php4/ext/zlib zlib.c
>> Log:
>> Making zlib compile under Win32 and fixing a typo
>>
>>Index: php4/ext/zlib/zlib.c
>>diff -u php4/ext/zlib/zlib.c:1.37 php4/ext/zlib/zlib.c:1.38
>>--- php4/ext/zlib/zlib.c:1.37 Wed Apr 5 14:43:03 2000
>>+++ php4/ext/zlib/zlib.c Thu Apr 20 09:59:55 2000
>>@@ -16,7 +16,7 @@
>> | Stefan Röhrich <sr <email protected>> |
>> +----------------------------------------------------------------------+
>> */
>>-/* $Id: zlib.c,v 1.37 2000/04/05 21:43:03 cmv Exp $ */
>>+/* $Id: zlib.c,v 1.38 2000/04/20 16:59:55 fmk Exp $ */
>> #define IS_EXT_MODULE
>>
>> #include "php.h"
>>@@ -206,7 +206,7 @@
>> if(PG(doc_root)) {
>> snprintf(trypath, MAXPATHLEN, "%s%s",
>> PG(doc_root), filename);
>> } else {
>>- strlcpy(trypath,filename,sizeof(trypath));
>>+ strncpy(trypath,filename,sizeof(trypath));
>> }
>> if (!php_checkuid(trypath,2)) {
>> return(NULL);
>>
>>
>>
>>--
>>PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
>>To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
>>For additional commands, e-mail: php4beta-help <email protected>
>>To contact the list administrators, e-mail: php4beta-admin <email protected>
>
>---
>Andi Gutmans <andi <email protected>>
>http://www.zend.com/
>
>--
>PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
>To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
>For additional commands, e-mail: php4beta-help <email protected>
>To contact the list administrators, e-mail: php4beta-admin <email protected>

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>