[PHP-DEV] filesystem security questions

2002-06-08 Thread Rob Richards
I have a few questions about correctly implementing safe_mode, open_basedir and allow_url checks within an extension. Probably an easy question, but I have seen it implemented in various ways in different extensions and want to make sure i implement this correctly. allow_url checks: is there

Re: [PHP-DEV] filesystem security questions

2002-06-08 Thread Rob Richards
I think using stream functions may be overkill for what I need to do. While fixing an issue with using relative paths in domxml and decided to add filesecurity features in at the same time. The file path comes in as a string and is sent directly to libxml as such. also, going through the

Re: [PHP-DEV] filesystem security questions

2002-06-08 Thread Rob Richards
: Markus Fischer [EMAIL PROTECTED] To: Rob Richards [EMAIL PROTECTED] Cc: Php-Dev List [EMAIL PROTECTED] Sent: Saturday, June 08, 2002 10:16 AM Subject: Re: [PHP-DEV] filesystem security questions Are you talking about your own extension or ext/domxml ? I think (but could be wrong

Re: [PHP-DEV] filesystem security questions

2002-06-08 Thread Rob Richards
The more I think about it, I dont know if streams should be done in the domxml extension currently. This is a big change from its current implementation and if it was to be undertaken, then why not just start fresh with the unified implementation? You are talking about implementing everything as

[PHP-DEV] domxml patch

2002-06-05 Thread Rob Richards
can someone apply this patch to cvs for me. it fixes a problem in domxml_dump_mem_file with xmlKeepBlanksDefault not being reset when the formatting parameter is true. same problem that was in domxml_dump_mem, but missed this function yesterday. thanks rob Index: php_domxml.c

[PHP-DEV] domxml patch

2002-06-04 Thread Rob Richards
can someone apply this patch to cvs for me. it fixes the problem reported in bug # 17560 i think i have solved the attachment problems, let me know if people still cant get my attachments. xmlKeepBlanksDefault default is 1 if not set. once set it remains at the new value until changed. the patch

[PHP-DEV] domxml memory issue

2002-06-03 Thread Rob Richards
attached is a diff of php_domxml.c i have been working on. it is meant to allow the extension to synch up when sub trees which are freed by libxml (basically it was started to attempt to fix the set_content routine). thanks to Lukas Schroeder and Christian Stocker for answering my questions and

[PHP-DEV] domxml memory issue diff

2002-06-03 Thread Rob Richards
for those who had problems with the attachment you can grab it here: http://www.digarc.com/php_domxml.c.diff thanks rob -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] domxml questions

2002-05-18 Thread Rob Richards
I have been going through the latest domxml extension and have a few questions about it. Looking at the docs, it is indicated that set_content and get_content are depreciated. The new functions from the docs, however, do not really make sense. set_content - Create a new node with e.g.

Re: [PHP-DEV] domxml questions

2002-05-18 Thread Rob Richards
, 2002 at 10:05:32AM -0400, Rob Richards wrote: I have been going through the latest domxml extension and have a few questions about it. Looking at the docs, it is indicated that set_content and get_content are depreciated. set_content - Create a new node with e.g

[PHP-DEV] cant compile 4.2.1 on FreeBSD with domxml support

2002-05-17 Thread Rob Richards
I am trying to install 4.2.1 on FreeBSD 4.4 STABLE. It continues to fail during make in domxml with the following: Making all in domxml /bin/sh /usr/ports/www/mod_php4/work/php-4.2.1/libtool --silent --mode=compile c -I. -I/usr/ports/www/mod_php4/work/php-4.2.1/ext/domxml -I/usr/ports/www/

Re: [PHP-DEV] cant compile 4.2.1 on FreeBSD with domxml support

2002-05-17 Thread Rob Richards
Thanks, That was it. I was running 2.4.3 on the BSD machine. Just upgraded to 2.4.21 and it compiles fine. Appreciate the help Rob - Original Message - From: Markus Fischer [EMAIL PROTECTED] To: Rob Richards [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, May 17, 2002 6:17 PM

[PHP-DEV] Re: Bug #15530 Updated: conent of node node correct reading new DOM value after set_content of node

2002-02-13 Thread Rob Richards
in this problem section so that it would ignore reading the newly set data and use the information we had previously set. Thanks for the help. Rob - Original Message - From: Joseph Tate [EMAIL PROTECTED] To: Rob Richards [EMAIL PROTECTED]; Php-Dev List [EMAIL PROTECTED] Sent: Wednesday, February 13