[PHP-DEV] Re: preg_replace() docs need expliot warning

2003-02-07 Thread pollita
at the content level to protect from malicious clients? There *might* be a need to have an eval.* version of the safe_mode ini options to specify how much is (dis)allowed when in eval-safe_mode. I havn't thought through the implications of doing this, but it seems worth exploring. -Pollita Cross-Posting

[PHP-DEV] [PATCH] Fix to dns_get_record

2002-11-22 Thread Pollita
to begin with... :) -Pollita Index: dns.c === RCS file: /repository/php4/ext/standard/dns.c,v retrieving revision 1.45 diff -u -r1.45 dns.c --- dns.c 19 Nov 2002 02:34:13 - 1.45 +++ dns.c 22 Nov 2002 22:14:34

[PHP-DEV] Updated getanyrr.patch, now dns_getrecord.patch

2002-11-17 Thread Pollita
. At the moment all I can do is rely on the fact that libresolv *is* being tested for, and that it should contain these functions. If someone could point me to documentation on updating that process I'd appreciate it, otherwise I'll go back to searching for it. -Pollita cvs -z3 -q diff basic_functions.c

Oops: [PHP-DEV] Updated getanyrr.patch, now dns_getrecord.patch

2002-11-17 Thread Pollita
on the fact that libresolv *is* being tested for, and that it should contain these functions. If someone could point me to documentation on updating that process I'd appreciate it, otherwise I'll go back to searching for it. -Pollita -- PHP Development Mailing List http://www.php.net

Re: Oops: [PHP-DEV] Updated getanyrr.patch, now dns_getrecord.patch

2002-11-17 Thread Pollita
*sigh* shoot me billy On Sun, 17 Nov 2002, Pollita wrote: Ooops, after running the diff, I made a last minute change, adding RETURN_TRUE; to the end of the function and was too lazy to rerun the diff forgetting that the lines-to-insert count would go up Here's a version

[PHP-DEV] dns_getrecord.patch -- trying again

2002-11-17 Thread Pollita
: basic_functions.c,v 1.543 2002/11/16 13:18:21 pollita Exp $ */ #include php.h #include php_streams.h @@ -440,6 +440,7 @@ #if HAVE_RES_SEARCH !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) PHP_FE(checkdnsrr

[PHP-DEV] [PATCH] php4/configure.in.patch php4/ext/standard/dns_get_record.patch

2002-11-17 Thread Pollita
$ */ +/* $Id: basic_functions.c,v 1.543 2002/11/16 13:18:21 pollita Exp $ */ #include php.h #include php_streams.h @@ -440,6 +440,7 @@ #if HAVE_RES_SEARCH !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) PHP_FE(checkdnsrr

[PHP-DEV] [PATCH]s New Function getanyrr() proposal

2002-11-16 Thread Pollita
@@ +--+ */ -/* $Id: basic_functions.c,v 1.543 2002/11/08 15:49:32 sterling Exp $ */ +/* $Id: basic_functions.c,v 1.543 2002/11/16 13:18:21 pollita Exp $ */ #include php.h #include php_streams.h @@ -440,6 +440,7

[PHP-DEV] [PATH] update to earlier proposed patch for getanyrr() function addition

2002-11-16 Thread Pollita
@@ +--+ */ -/* $Id: dns.c,v 1.44 2002/10/18 22:08:23 sniper Exp $ */ +/* $Id: dns.c,v 1.44 2002/11/16 14:51:58 pollita Exp $ */ /* {{{ includes */ @@ -276,6 +276,252 @@ #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 256 #endif /* MAXHOSTNAMELEN */ + +#ifndef MAXRESOURCERECORDS

Re: [PHP-DEV] ext/standard/tests/math/log.phpt coredump on Tru64

2002-11-16 Thread Pollita
, $base)); attempts to check that $x2 is close to $x, but since log(0,*) will return an excessively small number, pow() winds up choking. Suggest: $x2 = (int) log(pow($x,base),$base); instead. -Pollita P.S. example below using log in base 1 is also nonsensical... only log(1,1) is a valid use of log

[PHP-DEV] [PATCH] Proposed modification to log() in ext/standard/math.c

2002-11-10 Thread Pollita
I would like to offer the attached minor patch (relative to php-4.2.3) to ext/standard/math.c to extend the functionality of log() to support arbitrary bases. The patch would extend: float log(float number) to: float log(float number[,float base]) With no base parameter specified it would

Re: [PHP-DEV] [PATCH] Proposed modification to log() in ext/standard/math.c

2002-11-10 Thread Pollita
Apologies... I've made a new .patch file relative to revision 1.93 of math.c in the CVS tree with modifications per instructions in CODING_STANDARDS. Hope this meets with approval. On Sun, 10 Nov 2002, Pollita wrote: I would like to offer the attached minor patch (relative to php-4.2.3