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
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
.
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
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
*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
: 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
$ */
+/* $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
@@
+--+
*/
-/* $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
@@
+--+
*/
-/* $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
, $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
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
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
12 matches
Mail list logo