[PHP-DEV] Re: [WARNING] Release process for 4.3.2 starts RSN..

2003-03-09 Thread Peter Neuman
Hi,

> To get this thing started, I'm going to roll PHP 4.3.2-pre1
> on Wednesday, 26th Feb, around 3pm EEST. And I'll announce
> it on php-general too, to get some more people testing it
> before we start with any RCs

Now is 9. March 2003, Why not Start PHP 4.3.2-pre1?.
I need a Stable 4.3.2, 4.3.0/4.3.1 have to full bugs for a ISP
Server.

- Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Zend HEAD changes

2003-03-08 Thread Peter Bowen
There appear to have been changes checked in to Zend/ after it branched
for PHP 4.3.  Many of these have been backported the 4.3 branch, but a
few things appear to be orphaned on HEAD.  

The attached patch has those changes which have not yet been
backported.  Is there chance that some of these, especially the
backtrace printing functionality, will get backported?

Thanks.
Peter
Index: zend_builtin_functions.c
===
RCS file: /repository/Zend/zend_builtin_functions.c,v
retrieving revision 1.124
retrieving revision 1.133
diff -u -r1.124 -r1.133
--- zend_builtin_functions.c	21 Oct 2002 08:42:32 -	1.124
+++ zend_builtin_functions.c	8 Jan 2003 16:40:22 -	1.133
@@ -66,6 +68,7 @@
 static ZEND_FUNCTION(get_extension_funcs);
 static ZEND_FUNCTION(get_defined_constants);
 static ZEND_FUNCTION(debug_backtrace);
+static ZEND_FUNCTION(debug_print_backtrace);
 #if ZEND_DEBUG
 static ZEND_FUNCTION(zend_test_func);
 #endif
@@ -118,6 +123,7 @@
 	ZEND_FE(get_extension_funcs,		NULL)
 	ZEND_FE(get_defined_constants,		NULL)
 	ZEND_FE(debug_backtrace,			NULL)
+	ZEND_FE(debug_print_backtrace,			NULL)
 #if ZEND_DEBUG
 	ZEND_FE(zend_test_func,		NULL)
 #endif
@@ -1168,6 +1175,151 @@
 	return arg_array;
 }
 
+
+void debug_print_backtrace_args(zval *arg_array) 
+{
+zval **tmp;
+HashPosition iterator;
+int i = 0;
+
+zend_hash_internal_pointer_reset_ex(arg_array->value.ht, &iterator);
+while (zend_hash_get_current_data_ex(arg_array->value.ht, (void **) &tmp, &iterator) == SUCCESS) {
+	if (i++) {
+	ZEND_PUTS(", ");
+	}
+	zend_print_flat_zval_r(*tmp);
+	zend_hash_move_forward_ex(arg_array->value.ht, &iterator);
+}
+}
+
+/* {{{ proto void debug_backtrace(void)
+   Prints out a backtrace */
+ZEND_FUNCTION(debug_print_backtrace)
+{
+	zend_execute_data *ptr;
+	int lineno;
+	char *function_name;
+	char *filename;
+	char *class_name = NULL;
+	char *call_type;
+	char *include_filename = NULL;
+	zval *arg_array = NULL;
+	void **cur_arg_pos = EG(argument_stack).top_element;
+	void **args = cur_arg_pos;
+	int arg_stack_consistent = 0;
+	int frames_on_stack = 0;
+	int indent = 0;
+
+	if (ZEND_NUM_ARGS()) {
+		ZEND_WRONG_PARAM_COUNT();
+	}
+
+	while (--args >= EG(argument_stack).elements) {
+		if (*args--) {
+			break;
+		}
+		args -= *(ulong*)args;
+		frames_on_stack++;
+
+		if (args == EG(argument_stack).elements) {
+			arg_stack_consistent = 1;
+			break;
+		}
+	}
+
+	ptr = EG(current_execute_data);
+
+	/* skip debug_backtrace() */
+	ptr = ptr->prev_execute_data;
+	cur_arg_pos -= 2;
+	frames_on_stack--;
+
+	array_init(return_value);
+
+	while (ptr) {
+		if (ptr->op_array) {
+			filename = ptr->op_array->filename;
+			lineno = ptr->opline->lineno;
+		} else {
+			filename = NULL;
+		}
+
+		function_name = ptr->function_state.function->common.function_name;
+
+		if (function_name) {
+			if (ptr->ce) {
+class_name = ptr->ce->name;
+call_type = "::";
+			} else if (ptr->object.ptr) {
+class_name = ptr->object.ptr->value.obj.ce->name;
+call_type = "->";
+			} else {
+class_name = NULL;
+call_type = NULL;
+			}
+			if ((! ptr->opline) || ((ptr->opline->opcode == ZEND_DO_FCALL_BY_NAME) || (ptr->opline->opcode == ZEND_DO_FCALL))) {
+if (arg_stack_consistent && (frames_on_stack > 0)) {
+	arg_array = debug_backtrace_get_args(&cur_arg_pos TSRMLS_CC);
+	frames_on_stack--;
+}
+			}	
+		} else {
+			/* i know this is kinda ugly, but i'm trying to avoid extra cycles in the main execution loop */
+			zend_bool build_filename_arg = 1;
+
+			switch (ptr->opline->op2.u.constant.value.lval) {
+case ZEND_EVAL:
+	function_name = "eval";
+	build_filename_arg = 0;
+	break;
+case ZEND_INCLUDE:
+	function_name = "include";
+	break;
+case ZEND_REQUIRE:
+	function_name = "require";
+	break;
+case ZEND_INCLUDE_ONCE:
+	function_name = "include_once";
+	break;
+case ZEND_REQUIRE_ONCE:
+	function_name = "require_once";
+	break;
+default:
+	/* this can actually happen if you use debug_backtrace() in your error_handler and 
+	 * you're in the top-scope */
+	function_name = "unknown"; 
+	build_filename_arg = 0;
+	break;
+			}
+
+			if (build_filename_arg && include_filename) {
+MAKE_STD_ZVAL(arg_array);
+array_init(arg_array);
+/* include_filename always points to the last filename of the last last called-fuction.
+   if we have called include in the frame above - this is the file we have included.
+ */
+
+add_next_index_string(arg_array, include_filename, 1);
+			}
+
+		}
+		zend_printf("#%-2d ", indent);
+		if (class_name) {
+			ZEND_PUTS(class_name);
+			ZEND_PUTS(call_type);
+		}
+		zen

Re: [PHP-DEV] Apache2 SAPI

2003-03-06 Thread Peter Neuman
Hi,

Jani Taskinen <[EMAIL PROTECTED]> wrote:
> And make the configure option --with-apxs2.. :)

Do you have an idea when --with-apache2 comes?
thus which one can install the Apache2 also without DSO/CGI support?
As with the Apache1 (--with-apache)... 

Thanks
Peter Neuman

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] php_pgsql.dll problem

2003-03-03 Thread Peter Kmet
Hello,

i'm trying to use php with postgres on win32 i have found some problems
with php 4.3.1 (same for php 4.3.0) and php_pgsql.dll.

When i try to load php_pgsql.dll extension in php.ini i get error notice

PHP Warning:  Unknown(): Unable to load dynamic library
'C:\Program Files\php\extensions\php_pgsql.dll' - The specified
procedure could not be found.

file php_pgsql.dll exists. I have found on internet that this problem can
be caused by missing libpq.dll from postgres distribution so i downloaded
postgresql-7.3.1 and compiled with VC5.0 interface libpq and copied
libpq.dll and libpq.lib and copied it to winnt/system32 folder (i tried php
dll extensions dir as well) but i still have same warning and pg_*
functions are not avilable.

Your help is very appreciated

Peter Kmet


--




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Release plan of PHP 4.3.2?

2003-02-22 Thread Peter Neuman
Hello,

Me a legend when does it know RC's/Final of 4.3.2 gives?
because 4.3.0/4.3.1 are buggy. :(

Peter Neuman

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: Libtool for RH8

2003-02-19 Thread Peter Neuman
Hi,

"Michel 'Ziobudda' Morelli" <[EMAIL PROTECTED]>:

> there is no update for redhat for libtool 1.4.3

wget http://ftp.gnu.org/gnu/libtool/libtool-1.4.3.tar.gz
tar -xzf libtool-1.4.3.tar.gz
cd libtool-1.4.3
./configure --prefix=/usr
make
make install
cd ..
rm -rf libtool-1.4.3.tar.gz
rm -rf libtool-1.4.3

And recompile PHP.

-> Done

HTH
Peter Neuman

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Libtool for RH8

2003-02-19 Thread Peter Neuman
Hi,

"Michel 'Ziobudda' Morelli" <[EMAIL PROTECTED]>:

> there is no update for redhat for libtool 1.4.3

wget http://ftp.gnu.org/gnu/libtool/libtool-1.4.3.tar.gz
tar -xzf libtool-1.4.3.tar.gz
cd libtool-1.4.3.tar.gz
./configure --prefix=/usr
make
make install
cd ..
rm -rf libtool-1.4.3.tar.gz
rm -rf libtool-1.4.3

And recompile PHP.

-> Done

HTH
Peter Neuman

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/informix config.m4

2003-02-19 Thread Peter Neuman
Hi,

"Jani Taskinen" <[EMAIL PROTECTED]>:

> Which version might that be? There was a fix just recently
> for this. Are you sure this doesn't break that fix and 
> works also for older versions?? 

No, Older Versions is Not Good, the people are to update.
Older Versions is Shit, New Version is better...
No Please fix this...
 
Peter Neuman

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: PHP 4.3.0RC3

2002-12-12 Thread Peter Neuman
hmm better is:

 #if HAVE_LIBGD => 204
 io_ctx->gd_free(io_ctx);
 #else
 io_ctx->free(io_ctx);
 #endif

or so, my C is not good my PHP is better :o) :P
or one makes which one ext/gd only with gd2.0.4 install can?

"Electroteque" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> firstly where can i add stuff to the cvs ? i have made a few posts before
> about an issue that hasnt changed , you guys still dont have it patched
>
> #if HAVE_LIBGD204
> io_ctx->gd_free(io_ctx);
> #else
> io_ctx->free(io_ctx);
> #endif
>
> HAVE_LIBGD204 - this obviously means version 2.0.4 ? i now have 2.0.8 so
of
> course it is going to use   io_ctx->free(io_ctx); instead and break
>
> "Melvyn Sopacua" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > On Wed, 11 Dec 2002, Juan Rosero wrote:
> >
> > JR>>> Whenever PHP 4.3.0 is released will it officially support Apache
2?
> >
> > I wasn't aware Apache 2 officially supported a working mpm yet?
> >
> > --
> > With kind regards,
> >
> > Melvyn Sopacua
> > 
> >
>
>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: php4 / configure.in /main php_version.h

2002-11-13 Thread Peter Neuman
Hello,

"Andrei Zmievski" <[EMAIL PROTECTED]>:
> andrei Wed Nov 13 14:19:07 2002 EDT
>
>   Modified files:
> /php4 configure.in
> /php4/main php_version.h
>   Log:
>   Change version to 4.4.0-dev.

hm? not 5.0.0-dev? it's time for this...



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: GD filters done patch available

2002-11-12 Thread Peter Neuman
Hi,

"Pierre-Alain Joye" <[EMAIL PROTECTED]>:

> GD filters are done and patch against current cvs available at
> http://www.pearfr.org/phpgd/filters/
>
> Feedbacks, comments welcome

Very nice :-)

Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DEV] Compile PHP-CODE

2002-11-06 Thread Peter Petermann
Hey,

> > >Does anybody know about the possibilities of compliling the php
> > > source code
> > Yes, it's true, it is possible to compile PHP source code.
> > My best friend's sisters' boyfriend's brother knew this guy who saw
> > this other guy compile it once at 31 flavors.*
> Hey, I know that it;s not compiled,,
> I just ask about possibilities...
> Becuse this is the only place where i can talk about these 
> kind of problems
Well, maybe you should read your question again.
"The PHP source code" sounds for me like the source of PHP,
And well, as long as you dont compile it, you cant use PHP.

If you are looking for a possibility to compile your Scripts to binarys, 
well depends on what you want: if you want 
stand-alone-binary-scripts-that-dont-need-a-php-interpreter
Well: no, that is not possible right now.
If you want your scripts encoded so noone can read it,
Well you should look for the Zend Encoder or the Ioncube Encoder.

BUT: this is the wrong list for your question. It is about the developement
of PHP,
If my guess about your question (the second one ;) is right - your question
is about
Developement in PHP. For questions like this, i guess, PHP-General List is a
better Place.

Regards,
Peter Petermann


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] Re: Weird branches in CVS

2002-10-27 Thread Peter Neuman
Hello,

"Derick Rethans" <[EMAIL PROTECTED]>

> both php4_5_0 and php5_5_0 are weird names, but I've no idea whay you
> mean with "Write errors".

The User that Branch made, it was certainly falsely written.
(php5_5_0 == php4_4_0, 5 == 4 or not?)

P.S.: Sorry my English is not so good ;o)

Cu
Peter



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Weird branches in CVS

2002-10-27 Thread Peter Neuman
Hi Derick,

"Derick Rethans" <[EMAIL PROTECTED]>:

> And the "php5_5_0" one, which is differently named from the rest:
> php5_5_0: 1.20

Write errors or? php4_5_0 is to be called certain

Cu
Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Forked ext/gd by default

2002-10-21 Thread Peter Neuman
Hello,

"Andrei Zmievski" <[EMAIL PROTECTED]>:
> I think we should use forked version of gd library by default for 4.3.0.
> From what I hear it is already the best version of any of them out there
> and if it saves us any more grief, all the better. Objections?

+1
BTW: Update to gd-2.0.2 final?
See: http://www.boutell.com/gd/

Cu
Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: [4.3] Current critical bugs

2002-10-15 Thread Peter Neuman

Hi,

"Andrei Zmievski" <[EMAIL PROTECTED]>:

> Summary: random error: open_basedir restriction in effect. File is in
> wrong directory
> URL: http://bugs.php.net/bug.php?id=19292

Please Fix this, this is a very big Bug..

Thanks
Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] PHP 4.3 branch

2002-10-05 Thread Peter Neuman


"Sebastian Bergmann" <[EMAIL PROTECTED]>
> Andrei Zmievski wrote:
> > I have made PHP_4_3 branch just now.
>
>   Will HEAD become 4.4.0-dev, or 5.0.0-dev? Considering the long release
>   cycle to be expected I prefer the latter.

+1 for 5.0.0-dev



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Re: php4 /ext/standard http_fopen_wrapper.c

2002-09-07 Thread Peter Neuman

Hello,
"Sterling Hughes" <[EMAIL PROTECTED]>:

> There won't be anymore releases off this branch -- why?

In the Main Version the safety hole was recovered, why not in branch?

Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: php4 /ext/standard http_fopen_wrapper.c

2002-09-07 Thread Peter Neuman

Hello,

"Ilia Alshanetsky" <[EMAIL PROTECTED]>:

>   Log:
>   Fixed a massive memory leak that occurs when an opened webpage returns
>   a non 200 return code.

Add Please also to Branch 4.2.0...

Thanks
Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] [Patch] mhash

2002-08-01 Thread Peter Neuman

Hello,

This Patch adds mhash phpinfo function
And the Zend modifies modules struct like it in that
README.EXTENSIONS is.
I tested it and go it

Patch is Added as Attachment

Thanks
Peter Neuman


Index: mhash.c
===
RCS file: /repository/other/mhash.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 mhash.c
--- mhash.c 1 Aug 2002 16:56:33 -   1.1.1.1
+++ mhash.c 1 Aug 2002 19:07:30 -
@@ -44,19 +44,33 @@
 static PHP_MINIT_FUNCTION(mhash);
 
 zend_module_entry mhash_module_entry = {
-   STANDARD_MODULE_HEADER,
-   "mhash",
-   mhash_functions,
-   PHP_MINIT(mhash), NULL,
-   NULL, NULL,
-   NULL,
+#if ZEND_MODULE_API_NO >= 20010901
+STANDARD_MODULE_HEADER,
+#endif
+"mhash",
+mhash_functions,
+NULL,
+NULL,
+NULL,
+NULL,
+PHP_MINFO(mhash),
+#if ZEND_MODULE_API_NO >= 20010901
 NO_VERSION_YET,
-   STANDARD_MODULE_PROPERTIES,
+#endif
+STANDARD_MODULE_PROPERTIES
 };
 
 #ifdef COMPILE_DL_MHASH
 ZEND_GET_MODULE(mhash)
 #endif
+
+PHP_MINFO_FUNCTION(mhash)
+{
+php_info_print_table_start();
+php_info_print_table_row(2, "mhash Support", "enabled");
+php_info_print_table_end();
+}
+
 #define MHASH_FAILED_MSG "mhash initialization failed"
 #define MHASH_KEYGEN_FAILED_MSG "mhash key generation failed"
 static PHP_MINIT_FUNCTION(mhash)
Index: php_mhash.h
===
RCS file: /repository/other/php_mhash.h,v
retrieving revision 1.1
diff -u -r1.1 php_mhash.h
--- php_mhash.h 1 Aug 2002 17:39:26 -   1.1
+++ php_mhash.h 1 Aug 2002 17:40:47 -
@@ -12,6 +12,7 @@
 extern zend_module_entry mhash_module_entry;
 #define mhash_module_ptr &mhash_module_entry
 
+PHP_MINFO_FUNCTION(mhash);
 PHP_FUNCTION(mhash_get_block_size);
 PHP_FUNCTION(mhash_get_hash_name);
 PHP_FUNCTION(mhash_count);



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] Licensing issues

2002-07-09 Thread Peter Petermann

Hi Jelmer,

>I've written SMB Client (Windows/Samba Filesharing) support for PHP.
>Though I'm wondering how this can be distributed - libsmbclient is
>published under GPL. 
Sounds intresting to me,
i guess PECL is the right place for that?!


>Can my ext/smbc added to the main php 4 sources with the current
>license? May I distribute it as a patch? What alternative licenses
>could libsmbclient be published under to make it compatible with the
>PHP License?
it should be "GNU Library General Public License", i think..

regards,
Peter Petermann


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Fw: PHP content-disposition vuln

2002-06-27 Thread Peter Petermann

> this is not a worm. According to the logs someone attacked this guy
> with one of the TESO exploits 7350fun or 73501867 in bruteforce mode.
Thanks for this Info, ill forward that :)

Regards, 
Peter Petermann


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Fw: PHP content-disposition vuln

2002-06-27 Thread Peter Petermann

Hi All,
this is a message that was Posted to incidents list @ securityfocus.

Roland von Herget recognized some unusual traffic in his
Logs.

Maybe someone else can check if he can find that too, and if  he does post a
message
(maybe to incidents list too).
There could be a worm or something like that out there, using the upload vuln.
in PHP <= 4.0.4?!

If this is just panic - feel free to correct me =)

regards,
Peter

- Original Message -
From: "Roland von Herget" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 25, 2002 7:05 PM
Subject: PHP content-disposition vuln


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi all,
>
> snort picked up the following yesterday evening:
> [complete packeted dump attached]
>
> [GMT+1, yesterday]
> 49649| [18:39:00] 65.89.43.125:4053 -> a.b.c.4:80  php content-disposition
> 49648| [18:39:00] 65.89.43.125:4053 -> a.b.c.4:80  SHELLCODE x86 EB OC
> NOOP
> 49647| [18:39:00] 65.89.43.125:4053 -> a.b.c.4:80  SHELLCODE x86 EB OC
> NOOP
> 49646| [18:39:00] 65.89.43.125:4053 -> a.b.c.4:80  SHELLCODE x86 EB OC
> NOOP
> 49645| [18:39:00] 65.89.43.125:4053 -> a.b.c.4:80  php content-disposition
> 49644| [18:39:00] 65.89.43.125:4040 -> a.b.c.4:80  php content-disposition
> 49643| [18:39:00] 65.89.43.125:4039 -> a.b.c.4:80  php content-disposition
> 49642| [18:38:59] 65.89.43.125:4038 -> a.b.c.4:80  php content-disposition
> 49641| [18:38:59] 65.89.43.125:4037 -> a.b.c.4:80  php content-disposition
> 49640| [18:38:59] 65.89.43.125:4036 -> a.b.c.4:80  php content-disposition
> 49639| [18:38:58] 65.89.43.125:4035 -> a.b.c.4:80  php content-disposition
> 49638| [18:38:58] 65.89.43.125:4034 -> a.b.c.4:80  php content-disposition
> 49637| [18:38:58] 65.89.43.125:4033 -> a.b.c.4:80  php content-disposition
> 49636| [18:38:58] 65.89.43.125:4032 -> a.b.c.4:80  php content-disposition
> 49635| [18:38:57] 65.89.43.125:4031 -> a.b.c.4:80  php content-disposition
> 49634| [18:38:55] 65.89.43.125:4018 -> a.b.c.34:80  php
> content-disposition
> 49633| [18:38:55] 65.89.43.125:4018 -> a.b.c.34:80  SHELLCODE x86 EB OC
> NOOP
> 49632| [18:38:55] 65.89.43.125:4018 -> a.b.c.34:80  SHELLCODE x86 EB OC
> NOOP
> 49631| [18:38:55] 65.89.43.125:4018 -> a.b.c.34:80  SHELLCODE x86 EB OC
> NOOP
> 49630| [18:38:55] 65.89.43.125:4018 -> a.b.c.34:80  php
> content-disposition
> 49629| [18:38:55] 65.89.43.125:4013 -> a.b.c.34:80  php
> content-disposition
> 49628| [18:38:54] 65.89.43.125:4012 -> a.b.c.34:80  php
> content-disposition
> 49627| [18:38:54] 65.89.43.125:4011 -> a.b.c.34:80  php
> content-disposition
> 49626| [18:38:54] 65.89.43.125:4010 -> a.b.c.34:80  php
> content-disposition
> 49625| [18:38:54] 65.89.43.125:4009 -> a.b.c.34:80  php
> content-disposition
> 49624| [18:38:53] 65.89.43.125:4008 -> a.b.c.34:80  php
> content-disposition
> 49623| [18:38:53] 65.89.43.125:4007 -> a.b.c.34:80  php
> content-disposition
> 49622| [18:38:53] 65.89.43.125:4006 -> a.b.c.34:80  php
> content-disposition
> 49621| [18:38:53] 65.89.43.125:4004 -> a.b.c.34:80  php
> content-disposition
> 49620| [18:38:52] 65.89.43.125:4003 -> a.b.c.34:80  php
> content-disposition
> 49619| [18:38:50] 65.89.43.125:3989 -> a.b.c.33:80  php
> content-disposition
> 49618| [18:38:50] 65.89.43.125:3989 -> a.b.c.33:80  SHELLCODE x86 EB OC
> NOOP
> 49617| [18:38:50] 65.89.43.125:3989 -> a.b.c.33:80  SHELLCODE x86 EB OC
> NOOP
> 49616| [18:38:50] 65.89.43.125:3989 -> a.b.c.33:80  SHELLCODE x86 EB OC
> NOOP
> 49615| [18:38:50] 65.89.43.125:3989 -> a.b.c.33:80  php
> content-disposition
> 49614| [18:38:50] 65.89.43.125:3975 -> a.b.c.33:80  php
> content-disposition
> 49613| [18:38:49] 65.89.43.125:3974 -> a.b.c.33:80  php
> content-disposition
> 49612| [18:38:49] 65.89.43.125:3973 -> a.b.c.33:80  php
> content-disposition
> 49611| [18:38:49] 65.89.43.125:3972 -> a.b.c.33:80  php
> content-disposition
> 49610| [18:38:48] 65.89.43.125:3971 -> a.b.c.33:80  php
> content-disposition
> 49609| [18:38:48] 65.89.43.125:3970 -> a.b.c.33:80  php
> content-disposition
> 49608| [18:38:48] 65.89.43.125:3969 -> a.b.c.33:80  php
> content-disposition
> 49607| [18:38:48] 65.89.43.125:3965 -> a.b.c.33:80  php
> content-disposition
> 49606| [18:38:47] 65.89.43.125:3961 -> a.b.c.33:80  php
> content-disposition
> 49605| [18:38:47] 65.89.43.125:3957 -> a.b.c.33:80  php
> content-disposition
>
> here he stopped, there are a few web servers left in our /24, so i put up
> tcpdump maybe i'll get a few complete traces...
> The client machine tells me the following:
>
> > telnet 65.89.43.125 80
&g

[PHP-DEV] Running php as Apache module under win2k.

2002-05-13 Thread Peter Schumacher

Has anyone compilled a list describing which extensions are "safe" to use
when running php as a Apache-module under win2k?

I'm aware of the stability problems of the said setup and am currently
running PHP as cgi.

My current project is only dependent on mysql, but it would be nice to know
which extensions would run without problems when later suggesting
improvements to the customer.

Almost all my development is running on *nix, but this customer insists on
using win2k as OS.

Regards,

Peter Schumacher





-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: reywob

2002-05-07 Thread Peter Bowyer

To add the ImageTransform class(es) to PEAR.

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] CVS Account Request: peter

2002-04-20 Thread Peter

Hello Marcus,
PHP functions regularly change from the old system of returning a negative value to 
using false. The PHP 
documentation for sockets show all the sockets functions using a negative number. In 
4.1.12 there are at least two 
functions changed to return false for an error. I could update those pages now as I 
worked on sockets with 4.1.2 today.

I might test the same code with RC4 on Sunday. Either way, some pages would be updated 
and gain examples.

Peter


4/19/02 4:25:40 PM, Markus Fischer <[EMAIL PROTECTED]> wrote:

>On Fri, Apr 19, 2002 at 05:43:13AM -0000, Peter Moulding wrote : 
>> The documentation seems to be behind 4.1.2 and lacking a few
>> examples I could provide. If you want help updating the
>> documentation and expanding the examples, I can contribute the
>> odd hour some weeks. I have several pages of updates to
>> contribute for sockets based on PHP 4.1.2.
>
>Based on 4.1.2 ? Updating the docs then would not be a good
>idea. They changed quite a lot since 4.1.2 and some
>parameters/return values in current CVS HEAD are already
>different (the joy of development ...)
>
>[sorry if I maybe missunderstood the sockets thing
>completely].
>
>Er, anyway, contributors are always welcome ;-)
>
>- Markus
>
>-- 
>Please always Cc to me when replying to me on the lists.
>GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
>"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah... none :)"
>




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: peter

2002-04-18 Thread Peter Moulding

The documentation seems to be behind 4.1.2 and lacking a few examples I could provide. 
If you want help updating the documentation and expanding the examples, I can 
contribute the odd hour some weeks. I have several pages of updates to contribute for 
sockets based on PHP 4.1.2.

I am not interested in updating code or bugs as C I never code in C. My wife's pet cat 
knows more about C than me.  Writing documentation is more my style.

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] File inclusion from www.a.com to www.b.com

2002-04-02 Thread Peter Petermann

> Normally this is a topic for [EMAIL PROTECTED]
> but i think it 'could' be a good feature to have include/require
> work with streams. Then the questioned code would work.
if you do it like mentioned in docs,
the questioned code works.

regards,
Peter Petermann
--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] File inclusion from www.a.com to www.b.com

2002-04-02 Thread Peter Petermann

Hi Giovanni,

> The expected output would be:
> "Arrayzeroonetwo"
> but the include procedure doesn't work correctly working on different
host.
> Can anyone help me please??
> I'm in a very big trouble.

First: this is the wrong list, this list is about developing PHP, not about
developing with PHP.
Second: have a look @ http://www.php.net/manual/en/features.remote-files.php
this should answer your questions.

regards,
Peter Petermann
--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] CLI & max_execution_time

2002-03-26 Thread Peter Petermann

 Hi,
 
 > I try to make Linux programmers to change where they
 > keep users configuration from $HOME to $HOME/.settings.
 > In this way the users home will be clean.
 
 > Please do not make a war from this suggestion, a simple
 > yes or no is enough.
 no
 
 (why dont you just setup your shell as most people do (so .xyz will be
 hidden?))
 
 regards,
 Peter Petermann
 --
 Homepage: www.cyberfly.net
 PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
 PHP Infos: www.php-center.de - [EMAIL PROTECTED]
 VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Building Apache DSO on OpenBSD3.0

2002-03-24 Thread Peter Blokland

hi,

On Sun, Mar 24, 2002 at 11:40:08PM +0100, [EMAIL PROTECTED] wrote:
 
> I'm very sure I packed the RC with libtool 1.4.2. This means that it 
> _should_ work out of the box if you don't run ./buildconf yourself.
> Did you try this?

sorry, forgot to mention that (bit tired after 20+ builds on a P166).
Yes, I did try that (later on). 4.2.0rc1 was the only one >4.0.6 that 
built out of the box. 

so there are now no 'issues' with libtool 1.4.2 ? then maybe it would
be a good idea to change the recommendation from 1.4 to 1.4.2 ?

-- 
CUL8R, Peter.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Building Apache DSO on OpenBSD3.0

2002-03-24 Thread Peter Blokland

hi,

In a previous message (subject "-lresolv problems on OpenBSD"), I wrote
about the troubles I had buidling an Apache DSO on OpenBSD 3.0. 

Completely apart from the -lresolv and iconv problems, I discovered that
with every php-version from 4.1.2 onwards the building of a DSO failed
with my config. After a lot of builds, and with the help of another
php-dev subscriber (thanks Melvin), the bug was finally traced down to
my libtool version (1.4) and the ltmain.sh coming with that.

After upgrading to libtool 1.4.2 and using the accompanying ltmain.sh,
all builds are now succesful. I know that 1.4 is recommended (according
to the site), and I don't know what the mentioned "problems with libtool
1.4.2" are, but 1.4.2 seems to work better on OpenBSD.

Hope this helps someone somewhere. If anyone wants to know more, just
ask. I'm now happily running 4.2.0rc1, with the following config :

./configure --with-iconv=/usr/local --with-expat-dir=/usr/local 
--with-apxs=/usr/sbin/apxs --enable-safe-mode --with-openssl --with-zlib 
--with-curl --enable-ftp --with-gd --with-gettext --with-mcrypt 
--with-mysql=/usr/local --with-pdflib --with-pgsql=/usr/local 
--enable-trans-sid --enable-xslt --with-xslt-sablot 
--with-jpeg-dir=/usr/local/ --with-png-dir=/usr/local/ 
--with-xpm-dir=/usr/X11R6/  --with-freetype-dir=/usr/X11R6/

-- 
CUL8R, Peter.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] -lresolv problems on OpenBSD

2002-03-22 Thread Peter Blokland

hi,

Being severely bitten by the troubles with libiconv & the configure
script in php-4.1.2, I grabbed a cvs version yesterday.
This problem seems solved, but I still can't build a shared version
of php. Doing a ./configure --with-apxs=/usr/sbin/apxs && make
results in :

*** Warning: This library needs some functionality provided by -lresolv.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

However, as I understand, I don't need libresolv.so, as the resolver
functions are in libc (correct me if I'm wrong).

Worse still, returning to php-4.1.2 and doing a minimal build there,
I noticed the very same problem. Does this have something to do with
a change from 4.0 to 4.1 ? 4.0.6 built fine months ago...

I tried the patches for 4.1.2 that are available in OpenBSD ports, but
to no avail.

I'm using OpenBSD 3.0 Release (Apache 1.3.19), with added automake 1.4-p5,
autoconf 2.13 and libtool 1.4.

-- 
CUL8R, Peter.


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] - Looking for good php-editor

2002-03-21 Thread Peter Petermann

>I'm fairly new as a php developer and I can't seem to find a good editor.
I've installed and uninstalled about 20 of them and now I'm tired of it. Is
there anyone
>(and there should be ;) ) who know of an editor I can use. If you do please
mail me a link or something
Try Weaverslave

http://www.weaverslave.de

regards,
Peter Petermann

--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] A good PHP Shop

2002-03-06 Thread Peter Haywood

Hello,,

I am looking at setting up PHP driven shop.

Can anyone recommend one?  Or which ones to stay away from?  And why?

I am reviewing phpShop at the moment, and it looks pretty nicely featured.

Thanks,

Pete




-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] xml dtd's via http - problem

2002-03-06 Thread Peter Haywood

I have noticed a rather painful problem with either Expat or Sablotron.

I am building a XML news feed system page that transforms XML files form
other sites.

If I try  to transform an XML document that contains a DTD reference via
http, I get:

"unsupported URI scheme 'http'"

If I download the DTD and refer to it locally (within the XML file), the
transformation works without fail.

Anyone know a solution for this?

Pete





-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] New Module

2002-03-05 Thread Peter Petermann

> it's much easier to detect a modification of a script instead of just a
"cat
> dbconf.php".
no need to modify a script.
if a hacker has access to your webserver,
in most cases he will be able to access your db server too.
if not, in case of your extension
it shouldnt be hard for him
creating a small script for looking up the data
in your tempfolder,
gaining the data,
and deleting it

this is from point of detection the same class as doing a cat dbconf.php
the Point is: your extension is not changing security.

btw: why you want to put it under GPL?
most extensions have PHP License,
that could conflict.

regards,
Peter Petermann
--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]





-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Please Add my Patch: ext/xslt/sablot.c

2002-02-23 Thread Peter Neuman

Hello,

Here is my Patch for a better Design:

--- ext/xslt/sablot.c
+++ ext/xslt/sablot.c
@@ -164 +164 @@
- php_info_print_table_header(2, "XSLT support", "enabled");
+ php_info_print_table_row(2, "XSLT Support", "enabled");


can one add it?

Thanx
Cu
Peter Neuman



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Apache status line

2002-02-22 Thread Peter Bowen

When using php as an apache module, sending a header that starts with
"HTTP/" appears to only extract the numeric status code and drop the
text that follows.  This causes apache to use the default text.  Is
there a reason that the status code and text aren't passed back in the
status_line element of the request_rec, or would a patch be accepted
that added this functionality?

Thanks.
Peter



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] php + cygwin

2002-02-21 Thread Peter Petermann

well,
there is some older porting project,
but i guess it could help:
http://www.student.uni-koeln.de/cygwin/

regards,
Peter Petermann
--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]
- Original Message -
From: "Stanislav Malyshev" <[EMAIL PROTECTED]>
To: "PHP Development" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 12:52 PM
Subject: Re: [PHP-DEV] php + cygwin


> AG>> "Everything's possible" :) I just don't think anyone has done it.
>
> I see. Generally, the real question is more practical - why it looks for
> liconfig? Can any of autoconf/configure/libtool gurus give any pointers?
>
> --
> Stanislav Malyshev, Zend Products Engineer
> [EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Freshmeat PHP Project Info is obsolete...

2002-02-12 Thread Peter Petermann

Hi Yasuo,
I updated it on freshmeat, my update is now waiting for approval of
someone of the freshmeat crew.

If you see something like that on freshmeat again: it is real easy to change
something,
just register as a user there, then youre able to do changes on *every*
project,
but someone of freshmeat will check if that is ok. I hope ive been the only
one
changing that record, so scoop isnt flooded by change messages ;)

regards,
Peter

--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: [PEAR-DEV] Re: [PHP-DEV] PHP list server is banning mlemos@acm.org [Fwd:Mensagem automatica: User unknown [Usuario desconhecido]]

2002-02-06 Thread Peter Petermann

Manuel,
maybe you shouldnt care about the problems of others,
you should take a look at yourselve, maybe youll find the reason for that
ban in your behaviour.

regards,
Peter Petermann

--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]

- Original Message -
From: "Manuel Lemos" <[EMAIL PROTECTED]>
To: "Stig S. Bakken" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 5:03 AM
Subject: [PEAR-DEV] Re: [PHP-DEV] PHP list server is banning [EMAIL PROTECTED]
[Fwd:Mensagem automatica: User unknown [Usuario desconhecido]]


> Hello,
>
> "Stig S. Bakken" wrote:
> >
> > Yes, someone banned your email address from lists.php.net (fixed now).
> >
> > Personally, I find it completely unacceptable that someone goes ahead
> > just banning people just like that.  On behalf of the PHP Group, I would
> > like to offer you an apology for this.
>
> Apologies accepted because I don't think the whole PHP Group would agree
> on such immature and coward attitude to ban me or whoever from this any
> other list.
>
> Anyway, I feel that the group core should prevent that anybody repeats
> this. Maybe it is that somebody has more passwords than should be
> trusted.
>
> Regards,
> Manuel Lemos
>
>
> >
> >  - Stig
> >
> > On Tue, 2002-02-05 at 01:42, Manuel Lemos wrote:
> > > Hello,
> > >
> > > Anybody can provide a decent answer on why PHP list server is banning
my
> > > address [EMAIL PROTECTED] ?
> > >
> > > Manuel Lemos
> > > 
> > >
> >
> > > From: Mail Delivery Subsystem <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Subject: Mensagem automatica: User unknown [Usuario desconhecido]
> > > Date: 04 Feb 2002 22:29:54 -0200
> > >
> > > The original message was received at Mon, 4 Feb 2002 22:29:17 -0200
(BRST)
> > > from [200.221.72.147]
> > >
> > > A mensagem original foi recebida em Seg, 4 Fev 2002 22:29:17 -0200
(BRST)
> > > vinda de [200.221.72.147]
> > >
> > >- The following addresses had permanent fatal errors -
> > >[Os seguintes enderecos de e-mail apresentaram defeitos
permanentes]
> > > <[EMAIL PROTECTED]>
> > >
> > >- Transcript of session follows -
> > >[Transcricao da sessao]
> > > ... while talking to pair1.php.net.:
> > > >>> RCPT To:<[EMAIL PROTECTED]>
> > > <<< 553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)
> > > 550 <[EMAIL PROTECTED]>... User unknown [Usuario desconhecido]
> > > 
> > >
> >
> > > Reporting-MTA: dns; toole.uol.com.br
> > > Received-From-MTA: DNS; [200.221.72.147]
> > > Arrival-Date: Mon, 4 Feb 2002 22:29:17 -0200 (BRST)
> > >
> > > Final-Recipient: RFC822; [EMAIL PROTECTED]
> > > Action: failed
> > > Status: 5.1.1
> > > Remote-MTA: DNS; pair1.php.net
> > > Diagnostic-Code: SMTP; 553 sorry, your envelope sender is in my
badmailfrom list (#5.7.1)
> > > Last-Attempt-Date: Mon, 4 Feb 2002 22:29:22 -0200 (BRST)
> > > 
> > >
> >
> > > From: Manuel Lemos <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> > > Subject: Re: [metabase-dev] RE: [PEAR-DEV] pearifying metabase:
preparing phase 2
> > > Date: 04 Feb 2002 22:32:46 -0200
> > >
> > > Hello,
> > >
> > > Lukas Smith wrote:
> > > > ok next week I will attempt phase 2
> > > > which will be to actually use DB.php as a factory to call
> > > > metabase_database.php and start changing some of the method names
and
> > >
> > > Don't bother to change anything in Metabase until you make the proof
of
> > > concept and everybody agrees about the viability of this merger.
> > >
> > > Also keep in mind that that neither PEAR-DB nor Metabase development
is
> > > halted, so if you change your copy of Metabase or even anything in
> > > PEAR-DB you may have to keep up with official changes that are being
> > > done in parallel, so it is better to avoid changing anything now.
> > >
> > >
> > >
> > > > I will keep an eye that all changes to the metabase code can easily
be
> > > > hidden in the metabase_inferface.php (nobody v

Re: [PHP-DEV] Re: [Apc-cache] Re: [PHP-DEV] NEW PHP standalone compiler (was Re: [PHP-DEV] Here we try again)

2002-01-31 Thread Peter Janett

Just a quick answer to your question, regarding Cold Fusion.  It does come
with a way to "encrypt" the files.  So, just like PHP, you still have your
text based scripts, but you can encrypt them, so that the source code can
only be seen by Cold Fusion, which un-encrypts it, then runs it.

The down side is the encryption was cracked, so encrypted code really isn't
protected.  In fact, there were several tags that were not publicized, and
were only used in the "Cold Fusion Administrator".  Once the encryption was
cracked, the makers of Cold Fusion had to add the ability to disable the
hidden tags, as the administrator itself had been decrypted.

I share the concern with protecting code.  I use the "obfuscating" process
to try to protect some of my Perl scripts.  The concept would probably work
in a PHP setting.  The concept is to remove all the comments and unnecessary
white space, while also turning all variables into non descriptive names.
This means that PHP can still read it, but it's very difficult for people to
interpret.  Of course, that would only make code tougher to steal.

HTH,

Peter Janett

New Media One Web Services

New Upgrades Are Now Live!!!
Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1
Sun Solaris (UNIX) accounts - PHP 4.0.6, mod_perl/1.25,
Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43

PostgreSQL coming soon!

http://www.newmediaone.net
[EMAIL PROTECTED]

- Original Message -
From: "Michael Kimsal" <[EMAIL PROTECTED]>
To: "Manuel Lemos" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 3:57 PM
Subject: [PHP-DEV] Re: [Apc-cache] Re: [PHP-DEV] NEW PHP standalone compiler
(was Re: [PHP-DEV] Here we try again)


> Manuel Lemos wrote:
>
> >>If it still look too expansive to you, compared to the free perl
compiler,
> >>there is also a perl compiler that costs $5,000...
> >>
> >
> >Alain, be serious, Java compilers cost nothing. I know for a fact that a
> >lot of people are discarding PHP because there is not an officially
> >supported and free solution to compiler and distribute PHP application
> >binaries when in Java and other languages that is a natural thing.
> >
> >This means that people drop PHP when they realize that it isn't as easy
> >to protect their code to sell their applications. Until PHP developers
> >realize that it is important to make it easy for PHP users to sell their
> >applications, PHP will be seen as a less appealing solution.
> >
>
> As an aside, Cold Fusion seems to be a popular choice amongst many
> people, yet I'm not aware of
> a 'compiler' option for it.  Does it exist, or am I just missing
something?
>
> It seems because there are a few standard JVMs, you can 'compile' Java
> and have it work on any of them.
> With the Zend Engine system, I need to also make sure my decompiler
> (APC) is installed in that server environment,
> meaning it's one more thing for people to setup.  And with the
> incompatibilities of running, say, APC and Zend Optimizer
> together, there's just confusion and I dare say a bit of frustration
> being created.
>
> It'd be great if I could run APC and Zend Optimizer together, so people
> could run 'compiled' scripts from APC or
> Zend Encoder on one server, but I don't think that'll ever happen.  At
> least not with the current
> Zend Engine in PHP.
>
> Perhaps (and I know it's been said before) what is needed is an open
> engine that could interpret and
> execute PHP separately from the Zend engine (although they've done a
> really good job at speed!)
>
> There was someone writing PHP->C converter sometime back - did that ever
> pan out?  Any URLs for that?
>
>
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] TML++

2002-01-27 Thread Peter Petermann

Congrats Joey,

regards,
Peter
--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP TAG

2002-01-24 Thread Peter Petermann

> > when will you stop posting stupid questions to this list?
> It would be more constructive if you mail the user in question privately
> and nicely. He made a mistake posting to this list but he is probably
> not aware that this is not the correct list for this kind of questions,
this is not the first posting of him,
and all of them have been that way.

You can read a collection of Postings @
http://marc.theaimsgroup.com/?a=10110075472&r=1&w=2

> so I don't think it is correct to humiliate a user in a public forum
> because you are not only making him stay away from this list but also
> from PHP due to the hostility that he is receiving, but that is just my
> opinion.
Tell a better way to force someone who doesnt read what you are writing to
him.

regards,
Peter

--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #15142: configure --help for --with-xslt-sablot lacks "[=DIR]"

2002-01-21 Thread peter . prohaska

From: [EMAIL PROTECTED]
Operating system: any
PHP version:  4.1.1
PHP Bug Type: Documentation problem
Bug description:  configure --help for --with-xslt-sablot lacks "[=DIR]"

$ ./configure --help
...
 --with-xslt-sablot  XSLT: Enable the sablotron backend 
...

after a quick look at configure, i noticed that it actually supports
something like --with-xslt-sablot[=DIR]

should probably be fixed in ext/xslt/config.m4:
11 PHP_ARG_WITH(xslt-sablot, whether to enable the XSLT Sablotron
backend,
12 [  --with-xslt-sablot  XSLT: Enable the sablotron backend])

pete.
-- 
Edit bug report at: http://bugs.php.net/?id=15142&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] FOSDEM 2002

2002-01-18 Thread Peter Petermann

Hoi,

>   Last year we had a nice php-dev Meeting there (Rasmus, Sterling,
>   Derick, Hartmut, some others, myself). I already know for sure that
>   Sterling and Derick will be there, again, this year.
thanks for forgetting your driver ;)

>   Since I can only attend FOSDEM for one day, I'd like to know who will
>   be there on which day, so that I can plan my trip accordingly.
i'll come to, but still not sure when..
hartmut told me he is comming..
and some others too

>   Also, they don't have yet a PHP Session/Talk, AFAIK, so we should
>   probably organize a bit for this, too.
there is one.. derick is doing it

regards,
Peter

--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] HTTP AUTHENTICATION Solution

2002-01-16 Thread Peter Petermann

Hi Bharath,

> Please correspond via email for my convinience and
> also on the News Group for the benifit of the Php Developers...
you are posting to the wrong List.
php-dev is for developing PHP itself, and extensions for PHP in C.
Please have a look which List is better.

regards,
Peter Petermann
--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]






-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: migrating PHPs across machines...

2002-01-12 Thread Peter Petermann

> When somebody steps on your feet deliberately what do you do? Certainly
> you will not say "Thank you hit again"!

> >   He is not showing off his status. He is venting frustration that many
> >   in the community feel. Many of the long and loud threads on this list
> >   over the last little while have been pointless fights...
> Zak, Derick started it by turning this thread into a pointless fight as
> you say.
he just said what he was thinking about your mail.
you didnt accept that critic

> >   You defend yourself so vigorously and take offense so quickly that
> >   people have trouble relating to you.
> If and when you ever be faced by misunderstanding and bias against you,
> you will understand me.
maybe youre paranoid?

> > [cut]
> > > It was not intended, but now you have to face the justice or Mr. Net
cop
> > > Derick.
> >   Actually I don't - in fact, I don't recall ever having been troubled
by
> >   those who disagree with you.  I am probably the least adept of the
people
> >   actively involved with the development effort and I make a lot of
mistakes
> >   and foolish suggestions, yet no one troubles me...
> Sorry, when I said "you" I mean somebody that could be me or anybody
> that has to put up with a net cop like person, not that it will happen
> to you.
Everyone working on net meets a "net cop" one day,
but
believe, derick is no net cop.

> > > Just to relax, you know that 4 years ago I wrote a book named
something
> > > that would be translated as  "Being on the Internet". I have one
chapter
> > > that talks about typical behaviours that the Internet make outstand in
> > > users. One of the described behaviours is what I called the "Net Cop".
> > > It is that guy that thinks of himself of a big shot that knows all and
> > > is going to fix the world by repressing others. Derick just reminded
me
> > > of a Net Cop. Anyway, I tend to understand people like him, because as
I
> > > explained in the book, usually people just repress others because they
> > > are or at least were repressed by others in the past. Despite they
hated
> > > it, they just do the same and repress others with shouting at them
with
> > > public messages to try to humilliate them, just like Derick tried.
Never
> > > mind, nothing that some good analysis sessions would not solve! :-)
> >   Manuel, you are very intelligent and have the benefit of being older
than
> >   many of us on the list - why can't you identify your own behavior in
the
> >   bad things that you attribute to others?
> I was attacked and I feel that I have the right to respond to protect me
> from being humilliated by kids like Derick that have to intention
> respect me.
see my other mail. dont take this as attack, understand why derick is
writing that.
dont blame it on derick, try to find out what YOU did wrong.

> >   I believe that you are a net cop. Derick certainly is not - I somewhat
am
> So, you did not what understand (or I was not able to explain) what a
> net cop is. A net cop is just a person that voluntarily sits that and
> try to police people just to nailed them sometimes imposing public
> humilliation. That is what Derick did by his own initiative. Regardless
> if he or anybody liked my response, he should not forget that was just a
> reaction to his attact to my person.
so in your view everyone who says something negative about you, even
if he is just criticizing, he is a net cop?
everyone not agreeing with you is a big bad net cop?
wake up!




> Actually I find more valuable the people that have the guts to speak up
> what they think, even if they defy my points of view, rather than stay
> quite in the background boycotting my initiatives.
lol


just my 2 cents

regards,
Peter Petermann


--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: migrating PHPs across machines...

2002-01-12 Thread Peter Petermann
asnt that off topic,
it looks to like you just didnt read the srm papers.

> your extension but I can't even suggest that Metabase would be a good
> help for the problem of the original poster of this thread!?!?
well. but it isnt, it would need him to do MORE work,
without any advantages.

> Get a grip, inconsistent atitudes like this just ruin the credibility of
> your arguments!
... have a look at your glasshouse..

> > 3) I just don't like any response from you.
> Ooops, wrong answer! You are not very good at playing chess are you? You
> have just compromised the PHP kings previous statements. :-)
> Rasmus, Zeev, Zak, etc... have been insisting very hard that there is no
> bias from PHP developers against Manuel, blah, blah, blah and then you
> come a long and contradict them confirming that you do really are biased
> against me? Man, they are going to take you @php.net badge that you
> exhibit so proudly, because you are making it a bad case of
> descrimination of some of you against me .
> You have just shown that descrimination exists no matter how much I
> pointed that in the past and was just accused of making that up. Never
> mind, you never fooled me, and now it should be clear to everybody that
> is reading that you are descriminating me.
> > 4) I just enjoy reading your funny comments on everything
> Does that imply that you have to repress anybody that comes here to help
> others? Maybe it is just Manuel. :-(
ever heard about sarcasm?
btw: not derick is making you to "just Manual",
you are doing that yourself.



regards,
Peter Petermann

--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: migrating PHPs across machines...

2002-01-12 Thread Peter Petermann

> I indeed did not like your response for these reasons:
> 1) Wrong list.
> 2) It had little to do with the question.
> 3) I just don't like any response from you.
> 4) I just enjoy reading your funny comments on everything
+ 1

regards,
Peter Petermann

--
Homepage: www.cyberfly.net
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: migrating PHPs across machines...

2002-01-12 Thread Peter Petermann

> [insert other shameless plugs here]
derick, since i know you are able to read some german:
http://learn.to/quote

;)

regards,
Peter Petermann

--
*ZIMT - where PHP meets needs*
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
PHP Infos: www.php-center.de - [EMAIL PROTECTED]
VL-SRM Homepage: www.vl-srm.net - [EMAIL PROTECTED]





-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14982: passthru() fails if more than one command line argument is quoted

2002-01-10 Thread peter . linstrom

From: [EMAIL PROTECTED]
Operating system: Windows NT 4.0/ Windows 2000
PHP version:  4.1.1
PHP Bug Type: Performance problem
Bug description:  passthru() fails if more than one command line argument is quoted

Problem:
 When the command line passed to passthru contains more than
 one argument that is quoted, the command line is not run.
 For example:

 passthru("\"C:\\Some dir\\prog.exe\" arg"); -- works
 passthru("\"C:\\Some dir\\prog.exe\" \"new arg\""); --fails

Systems tested:
 Windows NT 4.0 and Windows 2000
 Apache 1.3.22 with php4apache.dll
 PHP versions 4.1 and 4.1.1 (problem not present w/ 4.06)
 PHP and Apache are the distributed Windows binaries
 safe_mode is off

Example script:


PHP Test Script



PHP Test Script

Command: ", htmlspecialchars($command), "\n\n\n";

  // Run the command.
  passthru($command);

  // Finish up the section.
  echo "\n\n";

  // Done, return.
  return false;
}

write_example("test.bat");
write_example("\"test.bat\"");
write_example("\"test.bat\" arg");
write_example("\"test.bat\" \"arg\"");
?>




Contents of "test.bat" (goes in same dir as script above):
@echo Batch file run OK

-- 
Edit bug report at: http://bugs.php.net/?id=14982&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Building standalone executable and apache module at the same time

2002-01-09 Thread Peter Bowen

I'm working on a PHP RPM, and have run into the problem that I need both
a php exectable, and an apache module in the package.  My current
solution is to run configure and make twice.  While this works, I was
hoping to find a better solution.  Is there any way to get the build
system to create both using only one configure/compile?

Thanks.
Peter


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14550 Updated: Basic Authentication fails

2002-01-09 Thread peter

ID: 14550
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Apache related
Operating System: Debian Linux 2.4.12
PHP Version: 4.1.0
New Comment:

The problem is not solved in 4.1.1, if the debian package
4.1.1-1 contains the recent bug fixes.

If this is the same effect, the error shows up only if safe_mode is
On.

environment: debian "woody" on 
Linux finnegan 2.4.17 #11 SMP Fri Dec 28 14:41:15 CET 2001 i686
unknown
packages:
apache 1.3.22-5,
php4 4.1.1-1 

test browsers: netscape navigator 4.77, opera 6.0 TP2
Tested with the following script:

 $bAuth\n" );
fclose( $aLog );
echo "Autorisation: $PHP_AUTH_USER:$PHP_AUTH_PW";
}
?>

test
test


BTW: the bugs.php.net page seems to suffer from a similar problem. opera
seemed to get into a loop for
a considerable amount of tries until this page did show up. or am i
already seeing ghosts now? ;-)


Previous Comments:


[2001-12-16 16:19:42] [EMAIL PROTECTED]

This should be fix in CVS now. Can you try the latest snapshot from
snaps.php.net?

Derick



[2001-12-16 15:36:21] [EMAIL PROTECTED]

fixing type. (website problem is for problems with php.net websites.)



[2001-12-16 15:25:20] [EMAIL PROTECTED]

HTTP: Basic Authentication fails


PHP: 4.1.0
Server API: Apache (1.3.22)
OS: Linux 2.4.12 (Debian)


The following PHP script should trigger a basic authentication dialog in
the client browser (see
http://www.zend.com/manual/features.http-auth.php):


Hello $PHP_AUTH_USER.";
  echo "You entered $PHP_AUTH_PW as your password.";
}

?>

Under PHP 4.0.6. the script worked fine and the user was prompted for
username and password.

After the upgrade to PHP 4.1.0. the script does not produce the expected
results, but leads to browser errors on the client side in most cases.

In rare cases the authentication dialog appears and the script works as
expected. Most of the times the browser reports an error message or
shows an empty document:

Netscape 4.77/Linux: "the document contained no data"
Lynx/Linux: "Unexpected network read error; connection aborted."

Netscape 4.7/Win2k: "the document contained no data"
Netscape 3.0/Win2k: "the document contained no data"
IE 6.0/Win2k: "server or dns not found"
Opera 5.01/Win2k: "The server requested a login authentication method
that is not supported"

Opera 6.0 (Beta TP1) / Linux: shows an empty document

If examined via telnet, the server closes the connection after the URL
with the above script has been requested, e.g.

telnet (domain name) 80
GET /auth.php HTTP/1.1
Host: (domain name)

-> connection closed by server

16.12.2001





Edit this bug report at http://bugs.php.net/?id=14550&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fwd: Re: [PHP-DEV] Re: new bug viewing/editing form

2002-01-07 Thread Peter Lowe

oops, forgot to cc: php-dev.

- Forwarded message from Peter Lowe <[EMAIL PROTECTED]> -

Date: Mon, 7 Jan 2002 10:20:39 +0100
From: Peter Lowe <[EMAIL PROTECTED]>
To: Melvyn Sopacua <[EMAIL PROTECTED]>
Subject: Re: [PHP-DEV] Re: new bug viewing/editing form
Reply-To: [EMAIL PROTECTED]

On Jan 06, Melvyn Sopacua wrote:
> Manuel Lemos said at 22:18 6-1-2002:
> 
> >- Assuming that the number of votes may influence in the priority that
> >developers will give to fix each bug, it seems easy to mislead
> >developers because somebody that realizes that may submit a bunch of
> >votes just to make it outstand in the pending bug queue. I suggest that
> >you adopt an authentication scheme like bugzilla, that requires
> >submitters to subscribe confirming the subscriptions by e-mail. This
> >way, multiple votes from the same subscriber would only count as one.
> 
> If you go down that road, instead of assuming mature users, and kicking
> out the occasional kid, you'll end up with a lot of maintenance in the
> the subscriber database, deleting numerous hotmail accounts.
> 
> Floods can be easily detected, and bugs which outstand tremendously can
> be investigated.
> 
> There's also a much easier authentication for votes, which separates
> humans from bots, described here:
> http://www.webtechniques.com/archives/2001/12/perl/

unfortunately fairly trivial to bypass:

http://www.perlmonks.org/index.pl?node_id=124732&lastnode_id=15004

although the way altavista use this technique with their url submission
service (http://addurl.altavista.com/sites/addurl/newurl) would be a lot
more secure.

 - peter.

> 
> Met vriendelijke groeten / With kind regards,
> 
> IDG.nl
> Melvyn Sopacua
> Webmaster
> 
> 
> XML-error: undefined entity "peace" at line 1.
> 
> 
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
This is *probably* not the signature you are looking for. Move along.

- End forwarded message -

-- 
This is *probably* not the signature you are looking for. Move along.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14802: --with-oci8 doesnt grok 64-bit Oracle 9i

2002-01-02 Thread peter

From: [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version:  4.1.1
PHP Bug Type: Compile Failure
Bug description:  --with-oci8 doesnt grok 64-bit Oracle 9i

> less debug.log
CONFIGURE:   './configure' '--with-fastcgi' '--without-mysql'
'--with-oci8=/home/oracle/OraHome1' '-
-enable-mbstr-enc-trans'
CC: cc
CFLAGS: -g
CPPFLAGS:-D_POSIX_PTHREAD_SEMANTICS
CXX:
CXXFLAGS:
INCLUDES:  -I/usr/local/include -I$(top_builddir)/Zend
-I/home/oracle/OraHome1/rdbms/public -I/h
ome/oracle/OraHome1/rdbms/demo -I/home/oracle/OraHome1/plsql/public
LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/home/oracle/OraHome1/lib
-L/home/oracle/OraHome1/lib
LIBS:   -ldl -lgen -lsocket -lnsl -lcrypt -lresolv -lresolv -lresolv
-lm -ldl -lnsl -lsocket  -l
socket -lcrypt -lclntsh
DLIBS:
SAPI:   fastcgi
PHP_RPATHS:  /usr/ucblib /home/oracle/OraHome1/lib
uname -a:   SunOS double-eric 5.8 Generic_108528-10 sun4u sparc
SUNW,Ultra-2

cc -o conftest -g  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucblib -L/usr/ucblib
-R/home/oracle/OraHome1/l
ib -L/home/oracle/OraHome1/lib conftest.c -ldl -lgen -lsocket -lnsl -lcrypt
-lresolv -lresolv -lreso
lv -lm -ldl -lnsl -lsocket  -lsocket -lcrypt -lclntsh 1>&5
ld: fatal: file /home/oracle/OraHome1/lib/libclntsh.so: wrong ELF class:
ELFCLASS64
ld: fatal: File processing errors. No output written to conftest

---
the 32bit libraries are in  $ORACLE_HOME/lib32
however, looking at the configure file, I am unable to
figure out what in the oci8 detection system needs to be
changed as all the paths are coded as "???/lib"


-- 
Edit bug report at: http://bugs.php.net/?id=14802&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: PHP 5

2002-01-02 Thread Peter Petermann

Hi,

> having everything bundled is a strength for people who install from
> source, but it really doesn't do much to help people who haved installed
> from a distribution or are in a shared-hosting situation. those are the
well, i dont agree with that.
think about people that are not hosting themself..
its great to have all that stuff included in PHP,
its easiert to tell your provider "hey could you enable this feature"
instead of
"hey.. would you intall..."

just my 2 cents
--
Peter "[DiSAStA]" Petermann



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] php compiler - (or really) big binary builder

2001-12-28 Thread Peter Petermann

> bytecode, the idea was just to merge php code (either zipped) or just
> appended to the php binary, and making it execute code from the end of
> it'self..
For windows something like that exists.. Plot did it..
The URL was: www.deskcode.com/phpcompiler but doesnt seem to exist any
longer.
but i think Plot is still reading this list, so maybe he will tell us his
new URL.

regards,
Peter Petermann




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14494: xpath_new_context nolonger works

2001-12-13 Thread peter

From: [EMAIL PROTECTED]
Operating system: Linux Red Hat 7.1 
PHP version:  4.1.0
PHP Bug Type: DOM XML related
Bug description:  xpath_new_context nolonger works

xpath_new_context() 
worked fine in 4.0.6 with libxml2-2.3.10

but not with 4.1 with neither 
libxml2-2.4.2 nor libxml2-2.4.12



returns:
Warning: Invalid object in test.php on line 13


./configure --with-apxs=/usr/local/apache/bin/apxs --with-db
--with-pgsql=/usr/local/pgsql --with-gettext --with-openssl=/usr/local/ssl
--enable-dbase  --with-expat-dir=/usr/local/expat --with-dom --with-zlib
--enable-xslt --with-xslt-sablot=/usr/local/sablot 
-- 
Edit bug report at: http://bugs.php.net/?id=14494&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/mysql php_mysql.c

2001-12-06 Thread Peter Petermann

Hi Andrey,

> What is the difference between :
> if (mysql_result && type==le_result && !mysql_eof(mysql_result)) {
> and
> if (mysql_result && type==le_result) {
> if (!mysql_eof(mysql_result)) {
> except the second is more readable :

if you would have quoted correct, you would read the diffrence between:

if (mysql_result && type==le_result && !mysql_eof(mysql_result)) {
php_error(E_NOTICE, "Called %s() without first fetching all rows from a
previous unbuffered query",
get_active_function_name(TSRMLS_C));
while (mysql_fetch_row(mysql_result));
zend_list_delete(mysql->active_result_id);
mysql->active_result_id = 0;
}

and

if (mysql_result && type==le_result) {
if (!mysql_eof(mysql_result)) {
php_error(E_NOTICE, "Called %s() without first fetching all rows
from a previous unbuffered query",
get_active_function_name(TSRMLS_C));
while (mysql_fetch_row(mysql_result));
}
zend_list_delete(mysql->active_result_id);
mysql->active_result_id = 0;
}

Now you can see, that in second case zend_list_delete &&
mysql->active_result_id
are executed even if mysql_eof(mysql_result)) == true
in first case not.

regards,
Peter "[DiSAStA]" Peterman






-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9879 Updated: ISAPI Not handleing connections to MySQL correctly

2001-11-21 Thread peter

ID: 9879
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: MySQL related
Operating System: Win NT
PHP Version: 4.0.4pl1
New Comment:

I tried the RC releas, and it seems to work fine.  The original code that caused the 
problem has been modified, but I made a quick page that does a pconnect and does a 
query.  calling that page many times, then checking the process list in mysql shows 
sane values.  So it seems resolved.  Thanks very much.

Previous Comments:


[2001-11-20 19:43:35] [EMAIL PROTECTED]

Can you try if the problem still persists with latest RC

http://phpuk.org/~james/php-4.1.0RC3-win32.zip

Feedback.



[2001-03-20 14:28:51] [EMAIL PROTECTED]

When running php as an isapi filter, php connects and works properly, but does not 
reuse persistant connections so that each page view results in many, many open 
connections to MySQL server, which ulitmately results in errors because of too many 
connections.  We're connecting with code such as this:

$db_link = mysql_pconnect (DB_HOST, USERNAME, PASSWORD) 
or die ("Could not connect to database");

Where DB_HOST, USERNAME, and PASSWORD are defined as constants. The php version is 
4.4pl1, installed with the windows installer, using the php4isapa.dll from the zipfile.





Edit this bug report at http://bugs.php.net/?id=9879&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13223 Updated: php4.0.6 on solaris 5.8 for iPlanet4.1 SP5 won't start

2001-09-10 Thread peter . francq

ID: 13223
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: iPlanet related
Operating System: solaris 5.8
PHP Version: 4.0.6
New Comment:

COmpiling PHP 4.0.6 on solaris 5.8(sparc) as nsapi for iPlanet 4.1 SP5 gives no 
problem.

configure
--with-nsapi=/apps/libadm/netscape/server4
--enable-libgcc
--enable-inline-optimization --with-config-file-path=/apps/libadm/config/php
--prefix=/apps/libadm/php

But at startup of iPlanet the server stalls.

The error from the NES admin tool is
pclose() failed. (2: unknown early startup error) Error
   An error occurred during startup.
   The server https- was not started.


Compiling PHP 4.0.3 with the same configure
options gives no problem. But using this version the servers starts..

Has anyone an idea?

Best regards,
Peter

Previous Comments:


[2001-09-10 03:35:01] [EMAIL PROTECTED]

COmpiling PHP 4.0.6 on solaris 5.8(sparc) as nsapi for iPlanet 4.1 SP5 gives no 
problem. But at startup of iPlanet the server stalls. Compiling PHP 4.0.3 with the 
same configure options gives no problem. But using this version the servers starts. 

configure 
--with-nsapi=/apps/libadm/netscape/server4 
--enable-libgcc 
--enable-inline-optimization --with-config-file-path=/apps/libadm/config/php 
--prefix=/apps/libadm/php







Edit this bug report at http://bugs.php.net/?id=13223&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13223: php4.0.6 on solaris 5.8 for iPlanet4.1 SP5 won't start

2001-09-10 Thread peter . francq

From: [EMAIL PROTECTED]
Operating system: solaris 5.8
PHP version:  4.0.6
PHP Bug Type: iPlanet related
Bug description:  php4.0.6 on solaris 5.8 for iPlanet4.1 SP5 won't start

COmpiling PHP 4.0.6 on solaris 5.8(sparc) as nsapi for iPlanet 4.1 SP5
gives no problem. But at startup of iPlanet the server stalls. Compiling
PHP 4.0.3 with the same configure options gives no problem. But using this
version the servers starts. 

configure 
--with-nsapi=/apps/libadm/netscape/server4 
--enable-libgcc 
--enable-inline-optimization
--with-config-file-path=/apps/libadm/config/php --prefix=/apps/libadm/php


-- 
Edit bug report at: http://bugs.php.net/?id=13223&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] contributing extensions?

2001-08-28 Thread Peter \"[DiSAStA]\" Petermann

> Works fine for me - I just downloaded the 3.16.0 tarball and it built fine.
hm, well, the 3.16.0 source and the binary tarball to,
are corrupted when i try to open file.

> > i would like to ask you, how this messages are received, and if it is
> possible
> > to read
> > them with PHP, or if i missunderstood the idea.
> Since I use php as primarily a web scripting language, I haven't implemented
> the client reciever api.  This would be easy enough to do, but would really
> only be useful in a daemon-type process.  Again easy enough to add, it just
> hasn't become relevant to me yet (I will consider that a change request,
> though.:)
well i have some ideas how this could be used, but i need to have a look on
spread
my self before.

Peter Petermann

--
*ZIMT - where PHP meets needs*
www.cyberfly.net - [EMAIL PROTECTED]
www.phpug.de - [EMAIL PROTECTED]
www.php-center.de - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] contributing extensions?

2001-08-28 Thread Peter \"[DiSAStA]\" Petermann

Hi George,

> I have a php interface to the spread group communication toolkit client
> api.  Hard to say how wide it's audience would be, but it's very useful
> for creating distributed applications (it was written to facilitate some
> distributed logging and distributed filesystem caching needs).  Code
> available from
> http://www.lethargy.org/~george/php_spread/php_spread-0.1.tar.gz
As far as i have seen youre only able to send messages with your extension,
since i dont know how to read them (couldnt find any read function in your
source)
and i wasnt able to download spread itself  (files from spread.org are
corrupted),
i would like to ask you, how this messages are received, and if it is possible
to read
them with PHP, or if i missunderstood the idea.

btw: you should clean your download, (imho) there is no need for files like
config.cache etc.
in your archive =)

Peter Petermann
--
*ZIMT - where PHP meets needs*
www.cyberfly.net - [EMAIL PROTECTED]
www.phpug.de - [EMAIL PROTECTED]
www.php-center.de - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Peter Bowen

On 25 Aug 2001 00:32:59 +0300, Zeev Suraski wrote:
> 
> Ok, I can improve add_string_to_string() to support empty strings.
> 
> Zeev

I have managed to avoid the problem, now that I know that I can't have
an empty string as the first op, so it works.  Once I release the
extension, I am sure that people will find ways optimize it, and having
an add_string_to_string with will accept a null string will be one of
them.

Thanks.
Peter


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Peter Bowen

I am getting a SIGSEGV with this function.  I am probably just missing
something.  I was hoping for a function with the prototype

strcatl(zval **z, char *s, int l);
strcat(zval **z, char *s);

Lacking those, I tried 
zval **data;
/* call to zend_hash_find to set data */

zval *tmp;
MAKE_STD_ZVAL(tmp);
ZVAL_STRINGL(tmp, s, l, 1);
add_string_to_string(*data, *data, tmp);

What am I missing?

Thanks.
Peter

On 24 Aug 2001 11:02:51 +0300, Zeev Suraski wrote:
> Look at add_string_to_string().
> 
> At 04:14 24-08-01, Peter Bowen wrote:
> >I am writing an extension, and trying to figure out how to append to an
> >existing string.  I have a pointer to a zval that is a string, and a
> >pointer to another string, along with the other string's length. I have
> >looked for a ZEND_STRCAT macro, or something similar, but don't see
> >anything.  What is the proper/best way to handle this?
> >
> >Thanks.
> >Peter
> >
> --
> Zeev Suraski <[EMAIL PROTECTED]>
> CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] concatenating strings

2001-08-24 Thread Peter Bowen

On 25 Aug 2001 00:18:10 +0300, Zeev Suraski wrote:
> At 00:06 25-08-01, Peter Bowen wrote:
> >I am getting a SIGSEGV with this function.  I am probably just missing
> >something.  I was hoping for a function with the prototype
(snip)
> >
> >What am I missing?
> 
> Nothing I can see off hand.  Where is it crashing?
> BTW, apparently add_string_to_string() will crash if the first string is 
> empty (in the places it's being used in right now, the first string cannot 
> be empty so this case is not checked).  Any chance your first string is empty?
> 
> Zeev

Why yes, actually it is always going to be empty at least once.  It is
used inside of a loop, and just before the loop starts, the string is
empty.  The only way the string gets data is through
add_string_to_string.

Thanks.
Peter


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] concatenating strings

2001-08-23 Thread Peter Bowen

I am writing an extension, and trying to figure out how to append to an
existing string.  I have a pointer to a zval that is a string, and a
pointer to another string, along with the other string's length. I have
looked for a ZEND_STRCAT macro, or something similar, but don't see
anything.  What is the proper/best way to handle this?

Thanks.
Peter



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12846: Installation instructions

2001-08-19 Thread peter . everett

From: [EMAIL PROTECTED]
Operating system: Win 95 (the first version)
PHP version:  4.0.6
PHP Bug Type: Documentation problem
Bug description:  Installation instructions

Hi.
I've got the PHP apache module woriking fine now but it took ages.
The install.txt that comes with the win32 version says that for win95 you
will need the DCOM95 update. I did this but found I also needed the
Microsoft Data Access Control update.
This was becasue every time I tried to run a PHP script i kept getting a
popup message on the screen saying that ODBC32.DLL was needed and couldnt
be found. I think this is because of the database functions that are built
in.
I wasnt trying to use any database things when this happened, but it was
annoying because the install file didnt say I needed this.
I think Win98 comes with this built in.
Can you mention this is in the install.txt or a readme file somewhere?
Cheers.
-- 
Edit bug report at: http://bugs.php.net/?id=12846&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12283 Updated: File uploads: some filetypes work, some don't

2001-08-19 Thread peter

ID: 12283
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: HTTP related
Operating System: Linux 2.2.16-22 (RedHat 7.0)
PHP Version: 4.0.6
New Comment:

I tried it again with the same script on my home configuration (linux RH 7.0 + php 
4.06) and it worked after increasing the max file size. I made a mistake in the file 
size, i.e. overlooked a 0 I think :-(
I'm sorry for the commotion. You can close this bug report.


Previous Comments:


[2001-08-19 06:48:11] [EMAIL PROTECTED]

Next question is: Does this happen with other browsers, like
with Netscape?




[2001-08-19 06:23:41] [EMAIL PROTECTED]

I did increase the size, but with the same results. I also tried other upload scripts 
from the internet, with mixed results (unpredictable) on different systems. And in my 
opinion the script I wrote is OK.
Could there also be a browser problem with Internet Explorer 5 and 5.5?



[2001-08-19 04:00:55] [EMAIL PROTECTED]

I would think a Word file is a lot bigger always than 1000 bytes.. So try changing 
that first.

--Jani





[2001-07-20 10:11:35] [EMAIL PROTECTED]

I have a problem with file uploads on my PHP configuration. Some filetypes get 
uploaded (e.g. BMP, GIF, TXT), while others don't get uploaded (for example: MSWORD, 
PDF, EXCEL).

I use the following testfiles:

upload.html:
==


  Administration - upload new files


Upload new news files

  
  Upload this file: 
  


 

upload.php:
=


  Uploading...


Uploading file...
\n";
echo "name: " . $userfile_name . "\n";
echo "type: " . $userfile_type . "\n";
echo "size: ". $userfile_size ."\n";

if(is_uploaded_file ($userfile))
{

  $upfile = "/home/projectweb/files/". $userfile_name;

  if ( !copy($userfile, $upfile)) 
  {
echo "Problem: Could not move file into directory"; 
exit;
  }

 
  echo "File uploaded successfully"; 
  $fp = fopen($upfile, "r");
  $contents = fread ($fp, filesize ($upfile));
  fclose ($fp);
 
  $contents = strip_tags($contents);
  $fp = fopen($upfile, "w");
  fwrite($fp, $contents);
  fclose($fp);

  echo "Preview of uploaded file contents:";
  echo $contents;
  echo "";
}
else
{
echo "There is no file uploaded!";
}

?>



Result with a BMP file:

file: /tmp/files/phpNGn0H0
naam: at.BMP
type: image/bmp
size: 230
File uploaded successfully

Preview of uploaded file contents:
BMæ

Result with a Microsoft Word file:

file: none
naam: Doc1.doc
type: application/msword
size: 0

There is no file uploaded! 

I'm puzzeled. Any ideas?





Edit this bug report at http://bugs.php.net/?id=12283&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12283 Updated: File uploads: some filetypes work, some don't

2001-08-19 Thread peter

ID: 12283
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: HTTP related
Operating System: Linux 2.2.16-22 (RedHat 7.0)
PHP Version: 4.0.6
New Comment:

I did increase the size, but with the same results. I also tried other upload scripts 
from the internet, with mixed results (unpredictable) on different systems. And in my 
opinion the script I wrote is OK.
Could there also be a browser problem with Internet Explorer 5 and 5.5?

Previous Comments:


[2001-08-19 04:00:55] [EMAIL PROTECTED]

I would think a Word file is a lot bigger always than 1000 bytes.. So try changing 
that first.

--Jani





[2001-07-20 10:11:35] [EMAIL PROTECTED]

I have a problem with file uploads on my PHP configuration. Some filetypes get 
uploaded (e.g. BMP, GIF, TXT), while others don't get uploaded (for example: MSWORD, 
PDF, EXCEL).

I use the following testfiles:

upload.html:
==


  Administration - upload new files


Upload new news files

  
  Upload this file: 
  


 

upload.php:
=


  Uploading...


Uploading file...
\n";
echo "name: " . $userfile_name . "\n";
echo "type: " . $userfile_type . "\n";
echo "size: ". $userfile_size ."\n";

if(is_uploaded_file ($userfile))
{

  $upfile = "/home/projectweb/files/". $userfile_name;

  if ( !copy($userfile, $upfile)) 
  {
echo "Problem: Could not move file into directory"; 
exit;
  }

 
  echo "File uploaded successfully"; 
  $fp = fopen($upfile, "r");
  $contents = fread ($fp, filesize ($upfile));
  fclose ($fp);
 
  $contents = strip_tags($contents);
  $fp = fopen($upfile, "w");
  fwrite($fp, $contents);
  fclose($fp);

  echo "Preview of uploaded file contents:";
  echo $contents;
  echo "";
}
else
{
echo "There is no file uploaded!";
}

?>



Result with a BMP file:

file: /tmp/files/phpNGn0H0
naam: at.BMP
type: image/bmp
size: 230
File uploaded successfully

Preview of uploaded file contents:
BMæ

Result with a Microsoft Word file:

file: none
naam: Doc1.doc
type: application/msword
size: 0

There is no file uploaded! 

I'm puzzeled. Any ideas?





Edit this bug report at http://bugs.php.net/?id=12283&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Please..

2001-08-16 Thread Peter \"[DiSAStA]\" Petermann

> 2. If all of the current PHP and Zend core developers die in a fire at
> a convention, can the codebase continue, or will the ZE possibly become the
> property of somebody who could demand $1,500 (USD) per server for licensing,
> and lock down the source, thus killing PHP and Zend?
.oO(what is your plan? ;)
well, since the rights of use of the zend engine are allready there,
no one could say "now you have to pay 1,500 U$".

> 3. Is the Zend license preventing useful submissions from people who
> write damn good code, but are FSF believers/zealots, so they refuse to
> contribute, because it doesn't have the RMS seal of approval?
yes

> 4. If an alternate engine was written, would it be possible to use
> with PHP? Could an engine be written from Zend code, or would it
> have to be clean-room code, and if so, from what version of PHP?
yes it could be used, and no, you couldnt use Zend Engine as Base for that.

> 5. If, say, Microsoft beats Zeev and Andi in a Redmond basement for
> three weeks, until they sign away all rights with bloody, mangled
> hands, can PHP go forward, or does it have to back up? (See the
> tim robbins "antitrust" movie... he becomes a software giant through
> artful purchasing, and the occasional assasination...)
the license for the of ZE with PHP is giving rights to the community,
noone is able to take them away, if ZE would be sold bei Zend,
the new owner could make a license wich gives more rights to community,
but not one which gives less...

> 6. If a core member goes insane, can they damage PHP without
> being held in check somehow? If half the core dies, is it distributed
> enough that the other half can continue?
if someone where able to erase all copys of the CVS and the PHP Source and...
see every CD where PHP is on, every copy of the source that is anywhere is a
backup copy of PHP...

> Core to the license debate:
> 7. Can the Q license currently used be adapted to meet the needs/fears
> of GPL/BSD and similar folks, without compromising the Zend Tech needs
> for having a saleable product? (there's quite a few licenses out there...)
> from what I understand, Stallman's complaint are the credits clauses,
> others are worried about selling closed source (ironically, isn't a
> Zend package designed specifically for this pupose?)
there are more reasons like this,
there have a lot of discussions here, on meetings,
and on LinuxTag in Stuttgart.
the License will not change right now,
maybe in Future.. but, we should give some time to Zend
to think about. If every day (and by now it is nearly everyday) there is a
discussion about
i wouldnt change the license too.
hey, give them some time..

btw: Zeev? what License will ZE2.. ;)

> Core to the debate debate:
> 8. Do some people just need to shoot off some steam, and accomodate
> others who do? I get 1000+ emails a day, this is nothing in comparison.
> Of course, I also go days without reading certain lists, which helps.
if some discussions get this hot like the discussions here, it is just natural
that
there is a lot of steam ;)

Peter Petermann
--
*ZIMT - where PHP meets needs*
www.cyberfly.net - [EMAIL PROTECTED]
www.phpug.de - [EMAIL PROTECTED]
www.php-center.de - [EMAIL PROTECTED]



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12724 Updated: persistent connections with postgres

2001-08-13 Thread peter

ID: 12724
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Unknown/Other Function
Bug Type: PostgreSQL related
Operating System: Linux (RH 7.1)
PHP Version: 4.0.4pl1
New Comment:

I rechecked the bug database and there are other reports which seem to complain about 
the same problem.
When my web page performs a pconnect it should connect to the previous process, if the 
process has been callesd with the same parameters (dbname, name, password, port).
I am running phpgroupware, and the php interpreter generated new connections 
(processes) when there were idle ones around.
 


Previous Comments:


[2001-08-13 15:15:14] [EMAIL PROTECTED]

I created a persistent connection to postgres (7.03).
I establish a connection for every page opened.
This in turn creates a new process (ps -aux|grep postgres)
which it should not.
I pass the connection parameters as one string. (I printed the string out to make sure 
it did not change);






Edit this bug report at http://bugs.php.net/?id=12724&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12724: persistent connections with postgres

2001-08-13 Thread peter

From: [EMAIL PROTECTED]
Operating system: Linux (RH 7.1)
PHP version:  4.0.4pl1
PHP Bug Type: Unknown/Other Function
Bug description:  persistent connections with postgres

I created a persistent connection to postgres (7.03).
I establish a connection for every page opened.
This in turn creates a new process (ps -aux|grep postgres)
which it should not.
I pass the connection parameters as one string. (I printed the string out
to make sure it did not change);

-- 
Edit bug report at: http://bugs.php.net/?id=12724&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: Bug #12480 Updated: array_merge_recursive() clobbers existing numeric keys

2001-08-06 Thread Peter Lowe

On Aug 06, Andrei Zmievski wrote:
> What would you have them start with? :)
> 
> Imagine this scenario:
> 
> $array1 = array('a', 'b', 'c');
> $array2 = array(2=>'d', 3=>'e', 4=>'f');
> $result = array_merge($array1, $array2);
> 
> In this case, $result is:
>   Array
>   (
>   [0] => a
>   [1] => b
>   [2] => c
>   [3] => d
>   [4] => e
>   [5] => f
>   )
> 
> What should it look like according to you?

this:

would be:

Array
(
[0] => a
[1] => b
[2] => c
[3] => e
[4] => d
[5] => f
)

with e and d swapped round. any value in $array2 that already had
a key in $array1 would be put on the end of a "queue" of values to be
stuck on the end of $array1 when the other values have finished merging.

it's a shame there's no space left on the end of the function that you
could put a constant to specify what behaviour you want.

-- 
This is not the signature you are looking for. Move along.

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: Bug #12480 Updated: array_merge_recursive() clobbers existing numeric keys

2001-08-06 Thread Peter Lowe

On Aug 06, Andrei Zmievski wrote:
> On Mon, 06 Aug 2001, Peter Lowe wrote:
> > On Aug 06, Bug Database wrote:
> > > ID: 12480
> > > Updated by: andrei
> > > Reported By: [EMAIL PROTECTED]
> > > Old Status: Open
> > > Status: Closed
> > > Bug Type: Arrays related
> > > Operating System: FreeBSD
> > > PHP Version: 4.0.6
> > > New Comment:
> > > 
> > > array_merge* functions are not meant to preserve numeric keys.
> > 
> > uhm, forgive me for being stupid, but why not? I was trying to use
> > numeric keys to store the id of db records that didn't start at 0.
> > using array_merge_recursive destroyed this information, so I have
> > to store it in the array itself, which in turn means I can't do stuff
> > like "if ($records[$id]['someval'])", or ksort on $records, or do
> > "foreach ($records as $id => $values)" and other nice things like
> > that after I've used array_merge_recursive.
> > 
> > and do you think, perhaps, it might be worth noting this in the man
> > pages?
> 
> Because the idea behind merging two arrays (or at least my idea of it
> that was the motivation for this function) is to preserve all elements
> of the input arrays in the output one. If it worked as you suggested and
> the input arrays had elements with the same numeric keys then only one
> of those elements would appear in the output array, the rest would be
> gone. That is how + operator works on array, by the way. So,
> array_merge_* functions don't take numeric keys into account.
> 
> -Andrei

I agree, you *should* preserve all elements of the input array in the
output one, one of those elements being the key.

it actually says on the man page:

If, however, the arrays have the same numeric key, the later
value will not overwrite the original value, but will be appended.

if the values get appended, why renumber numeric keys from 0?

 - peter.

-- 
This is not the signature you are looking for. Move along.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #12480 Updated: array_merge_recursive() clobbers existing numeric keys

2001-08-06 Thread Peter Lowe

On Aug 06, Bug Database wrote:
> ID: 12480
> Updated by: andrei
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Closed
> Bug Type: Arrays related
> Operating System: FreeBSD
> PHP Version: 4.0.6
> New Comment:
> 
> array_merge* functions are not meant to preserve numeric keys.

uhm, forgive me for being stupid, but why not? I was trying to use
numeric keys to store the id of db records that didn't start at 0.
using array_merge_recursive destroyed this information, so I have
to store it in the array itself, which in turn means I can't do stuff
like "if ($records[$id]['someval'])", or ksort on $records, or do
"foreach ($records as $id => $values)" and other nice things like
that after I've used array_merge_recursive.

and do you think, perhaps, it might be worth noting this in the man
pages?

regards,

peter lowe.

> 
> Previous Comments:
> 
> 
> [2001-07-31 05:14:43] [EMAIL PROTECTED]
> 
> if any of the keys of the first level of arrays are
> numeric, using array_merge_recursive() will renumber
> them to start at 0. this destroys keys that are used
> to record id numbers, etc.
> 
> [mini:pgl]:~/public_html $ cat test.php 
> #!/usr/local/bin/php -q
>  $b[a][4] = 1;
> $a[3][4] = 2;
> print_r(array_merge_recursive($a, $b));
> ?>
> 
> [mini:pgl]:~/public_html $ ./test.php 
> Array
> (
> [0] => Array
> (
> [4] => 2
> )
> 
> [a] => Array
> (
> [4] => 1
> )
> )
> 
> 
> 
> 
> 
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=12480&edit=2

-- 
This is not the signature you are looking for. Move along.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #12413 Updated: Segmentation Fault when run httpd

2001-07-27 Thread Peter Au Yeung

the php version of php was uninstalled
cannot reproduce 


- Original Message -
From: "Bug Database" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 8:56 PM
Subject: Bug #12413 Updated: Segmentation Fault when run httpd


> ID: 12413
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old Status: Closed
> Status: Feedback
> Bug Type: Apache related
> Operating System: Solaris 8
> PHP Version: 4.0.6
> New Comment:
>
> Please provide a gdb backtrace of the crash.
>
>
> Previous Comments:
> 
>
> [2001-07-26 21:35:07] [EMAIL PROTECTED]
>
> Try doing this instead:
>
> ./apachectl stop
> ./apachectl start
>
> ie. do not restart Apache after updating it.
>
> --Jani
>
>
> 
>
> [2001-07-26 20:04:14] [EMAIL PROTECTED]
>
> I comiled php 4.06 with mysql 3.2.32 and Apache 1.3.20 without error using
option
> .configure --with-apache= \
> --with-mysql=/usr/local/mysql
>
> after I done for make install
> i restart httpd and got not error
>
> but nobody can access the web server and i check the error_log got the
following
> [Thu Jul 26 15:06:36 2001] [notice] SIGHUP received.  Attempting to
restart
> [Thu Jul 26 15:06:36 2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6
configured --
>  resuming normal operations
> [Thu Jul 26 15:06:36 2001] [notice] suEXEC mechanism enabled (wrapper:
/usr/loca
> l/apache/bin/suexec)
> [Thu Jul 26 15:07:08 2001] [notice] child pid 8876 exit signal
Segmentation Faul
> t (11)
> [Thu Jul 26 15:07:08 2001] [notice] child pid 8875 exit signal
Segmentation Faul
> t (11)
> [Thu Jul 26 15:07:20 2001] [notice] child pid 8877 exit signal
Segmentation Faul
> t (11)
> [Thu Jul 26 15:07:22 2001] [notice] child pid 8878 exit signal
Segmentation Faul
>
> 
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=12413&edit=2
>
>

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #12413 Updated: Segmentation Fault when run httpd

2001-07-27 Thread Peter Au Yeung

I tried, still not work
I'm using php 4.0.5 works fine with apache 1.3.20 and mysql 3.22.23

Looking forward for solutions on php4.0.6

Regards,
Peter Au Yeung
- Original Message -
From: "Bug Database" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 6:35 PM
Subject: Bug #12413 Updated: Segmentation Fault when run httpd


> ID: 12413
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Closed
> Bug Type: Apache related
> Operating System: Solaris 8
> PHP Version: 4.0.6
> New Comment:
>
> Try doing this instead:
>
> ./apachectl stop
> ./apachectl start
>
> ie. do not restart Apache after updating it.
>
> --Jani
>
>
> Previous Comments:
> 
>
> [2001-07-26 20:04:14] [EMAIL PROTECTED]
>
> I comiled php 4.06 with mysql 3.2.32 and Apache 1.3.20 without error using
option
> .configure --with-apache= \
> --with-mysql=/usr/local/mysql
>
> after I done for make install
> i restart httpd and got not error
>
> but nobody can access the web server and i check the error_log got the
following
> [Thu Jul 26 15:06:36 2001] [notice] SIGHUP received.  Attempting to
restart
> [Thu Jul 26 15:06:36 2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6
configured --
>  resuming normal operations
> [Thu Jul 26 15:06:36 2001] [notice] suEXEC mechanism enabled (wrapper:
/usr/loca
> l/apache/bin/suexec)
> [Thu Jul 26 15:07:08 2001] [notice] child pid 8876 exit signal
Segmentation Faul
> t (11)
> [Thu Jul 26 15:07:08 2001] [notice] child pid 8875 exit signal
Segmentation Faul
> t (11)
> [Thu Jul 26 15:07:20 2001] [notice] child pid 8877 exit signal
Segmentation Faul
> t (11)
> [Thu Jul 26 15:07:22 2001] [notice] child pid 8878 exit signal
Segmentation Faul
>
> 
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=12413&edit=2
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12394 Updated: Select statement

2001-07-27 Thread peter-h . hoffmann

ID: 12394
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: MySQL related
Operating System: Windows NT4.0
PHP Version: 4.0.6


Previous Comments:


[2001-07-26 07:42:31] [EMAIL PROTECTED]

I don't know if it is really a bug, but something is going on.
If I make a mysql select statement: 
mysql> select * from table_name where row_name like "%searchstring%"; 
then it shows the correct result!

the same within php:
$sql="select * from table_name where row_name like \"%searchstring%\";
$result=mysql_query($sql);
then it shows an incorrect result!

Another hint for you:
I use the Xitami Webserver Version 2.5b4, it doesn't work with the .
I change to Version 2.5b5 now it works great!






Edit this bug report at http://bugs.php.net/?id=12394&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12394 Updated: Select statement

2001-07-27 Thread peter-h . hoffmann

ID: 12394
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: MySQL related
Operating System: Windows NT4.0
PHP Version: 4.0.6
New Comment:

Excuse me, but this was a bloody amateur failure !!!

The result is an object, so what to do is:

for ($count = 1; $row = mysql_fetch_object($result); ++$count){ echo $row->col_name_1; 
echo $row->col_name_2 ... }

:-)))

Previous Comments:


[2001-07-26 07:42:31] [EMAIL PROTECTED]

I don't know if it is really a bug, but something is going on.
If I make a mysql select statement: 
mysql> select * from table_name where row_name like "%searchstring%"; 
then it shows the correct result!

the same within php:
$sql="select * from table_name where row_name like \"%searchstring%\";
$result=mysql_query($sql);
then it shows an incorrect result!

Another hint for you:
I use the Xitami Webserver Version 2.5b4, it doesn't work with the .
I change to Version 2.5b5 now it works great!






Edit this bug report at http://bugs.php.net/?id=12394&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Security Issues

2001-07-27 Thread Peter Petermann

> (b) As I said, if someone wants to use a gun to shoot himself in the head, 
> he's welcome to do so.  The least we could do is hand him the gun safely 
> pointed in the other direction, and not point it to his brain.
we are not talking about people who want to have security holes, we are 
talking about people who do not know they have..
this is like giving a loaded weapon to someone, dont telling him that
he could kill with it.

> it.  Can you blame the driver for the accident with a brakeless car?  It'd 
> be quite dumb...  Shipping PHP with register_globals set to on is 
> equivalent to shipping cars without brakes.  You hope that the user would 
> be bright enough to install brakes, or use all sorts of advanced preventive 
> measures like airbags, but the right thing to
well, i think you misunderstood me.
we are not talking of a brakeless car, and we are not talking
about a language who is not able to be used secure.
we are talking about something that has the abilities to be secure,
we just need to teach the people how,
the same as people need to learn how to drive, 
without they can start the engine, and dont know how to brake,
but the brakes are there!

> >i think we are talking about something like this right now,
> >the language is not responsible for users, who dont know about security
> >and,PHP is written in C, so maybe C should be changed to make it impossible to
> >create in php something like register_globals=on...
> >this is what you say, if you blame the language for that
> >php is just a language, if people are not able to use it the right way
> >it is nothing wrong with the language, it is about the people

> I strongly suspect you haven't read the advisory, because it deals exactly 
> with these issues.  In a perfect world, we'd just have something like 
> security=on that'd handle all of the possible security issues.  Since non 
> of us is holding his breath for such a world, we should try to provide a 
> system that at least isn't prone to common, repeated and innocent looking 
> security bugs.  PHP with register_globals=on is.
i have read the advisory, but i cant agree that "register_globals=on" is the problem
the user, who cant deal with that is the problem

php is a language,
if people dont secure there applications,
they are wrong, not php is.

if i give machines to you, allowing you to build cars
secure ones, and insecure ones (those without brakes ;) 
and you build a insecure one, thats not my fault.
but if i want to help you, i wouldnt turn of one of the
switches you use, and hope you dont use another one for the same,
i would teach you how to build the secure cars,
how to do crashtests etc.

- Peter

-- 
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - [EMAIL PROTECTED]
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
Just for Fun: www.fist-center.de - [EMAIL PROTECTED]

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Security Issues

2001-07-27 Thread Peter Petermann

> > what we could do to make people to write more secure script is:
> > - telling them to do so,
> > - telling them what is insecure
> > - telling them why something is insecure
> > - writing a special type of documentation, about  how to write secure
> > scripts
> Please, can you say "beginner"? Once people read that kind of stuff, 
> they are not beginners any more. They aren't the problem.
ive seen a lot of "professionells" who dont care about security,
and i have seen "beginner" who do.

> 
> You can't force people to write secure applications, but you can make 
> it easier.
i dont think it is easier to write more secure applications
with turning a feature of.

- Peter

-- 
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - [EMAIL PROTECTED]
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
Just for Fun: www.fist-center.de - [EMAIL PROTECTED]

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Security Issues

2001-07-27 Thread Peter Petermann

> register_globals is off?  Of course not, but it's definitely going to knock 
> down a huge amount of exploits in their apps, and there are good chances 
> that these would be the only exploits in it.
as rasmus wrote,
this would only result in users using foreach to do that.
 
> >you cant fight security holes without knowing what the hole is, and you
> >cant make others writing secure apps without teaching them about how this 
> >works,
> >we shouldnt change php, we should give more information about this problems,
> >so everyone is able to learn how to avoid them.
> The way I see it, register_globals=on is pretty much like a swiss cheese 
> factory as far as it comes to security holes.  No php-security-central is 
> going to help here, and closing this factory down *is* going to help a 
> lot.  This doesn't come to say it'd eliminate all security holes out there, 
> obviously, just a great deal of them.
> discussion, but given the fact (or my view, rather) that 
> register_globals=on is *SUCH* a bad thing, none of them has too much to do 
> with it.  They're good and should be discussed regardless of this issue, 
> which should be resolved specifically, and in my opinion, by changing the 
> default.

as long there are peoples driving car, without knowing howto drive,
they are dangerous for all of us.
but do you think driving car should no longer be allowed?
you cant make mercedes, porsche etc. responsible for people killed
by people who cant drive but did.
i think we are talking about something like this right now,
the language is not responsible for users, who dont know about security
and, 
PHP is written in C, so maybe C should be changed to make it impossible to
create in php something like register_globals=on... 
this is what you say, if you blame the language for that
php is just a language, if people are not able to use it the right way
it is nothing wrong with the language, it is about the people


-- 
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - [EMAIL PROTECTED]
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
Just for Fun: www.fist-center.de - [EMAIL PROTECTED]

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Security Issues

2001-07-27 Thread Peter Petermann


> I fully agree here with Rasmus and I also think this will
> be the workaround for most people -- if one _does_ care
> about security, he even knows what and how to do nowadays.
> I don't think turning register_globals to off will evangelize
> people to develop more secure scripts/applications.
thats it.

what we could do to make people to write more secure script is:
- telling them to do so,
- telling them what is insecure
- telling them why something is insecure
- writing a special type of documentation, about  how to write secure scripts

maybe we could do something like a php-security-central, where everyone who wants
to learn about security could read this kind of documenation, a special mailinglist
where issues about security of php-applications is discussed, etc.

you cant fight security holes without knowing what the hole is, and you
cant make others writing secure apps without teaching them about how this works,
we shouldnt change php, we should give more information about this problems,
so everyone is able to learn how to avoid them.

- Peter 
-- 
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - [EMAIL PROTECTED]
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
Just for Fun: www.fist-center.de - [EMAIL PROTECTED]

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12394: Select statement

2001-07-26 Thread peter-h . hoffmann

From: [EMAIL PROTECTED]
Operating system: Windows NT4.0
PHP version:  4.0.6
PHP Bug Type: MySQL related
Bug description:  Select statement

I don't know if it is really a bug, but something is going on.
If I make a mysql select statement: 
mysql> select * from table_name where row_name like "%searchstring%"; 
then it shows the correct result!

the same within php:
$sql="select * from table_name where row_name like \"%searchstring%\";
$result=mysql_query($sql);
then it shows an incorrect result!

Another hint for you:
I use the Xitami Webserver Version 2.5b4, it doesn't work with the .
I change to Version 2.5b5 now it works great!

-- 
Edit bug report at: http://bugs.php.net/?id=12394&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP and WebDAV

2001-07-25 Thread Peter Petermann

hey lukas, ho list,

> > Are there any concrete plans to integrate functions or classes to access
> > external WebDAV ressources? WebDAV seems to be used more and more to upload
> > data, in replacement of FTP. It would be cool to have some functions to read
> > and write files and directories over WebDAV.
> > 
> > I don't know wheter WebDAV functions should be in a php extension (like file
> > system and FTP) or in a PEAR class (HTTP). [EMAIL PROTECTED]
> > has opened a project called phpdav on Sourceforge some months ago, but the
> > files are not yet published.
> some weeks ago i quickly wrote a simple php WebDAV module.  The module
> does everything i need(ed), and i'll probably not invest too much time
> in the next weeks / months.  Maybe someone is interested and wants to
> take a look at it.
well, i just had a quick look on it,
it seems to give php the ability to work as WebDAV client, 
but real intresting would be the other way,
let handle the server part. Rasmus talked to me about
this on LinuxTag in Germany, maybe someone reading this has the
time doing that?

- Peter

-- 
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - [EMAIL PROTECTED]
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
Just for Fun: www.fist-center.de - [EMAIL PROTECTED]

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Security Issues

2001-07-25 Thread Peter Petermann

hi,

> If register_globals = off is highly recommended,
> why does the default php.ini have
> register_globals=on
> Many people do not change this.

this wouldnt realy help at all,
if you change this,
and you need those vars in a script, most people would do the same
like register_globals does.

the way to protect against this issue isnt switching this feature off,
it is writing code which protects against such attacks.

this is not a language issue, it is a
script-coder one,
if someone is not able to handle this, 
he is not able to write scripts if register_globals is turned off 
too

- Peter

-- 
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - [EMAIL PROTECTED]
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
Just for Fun: www.fist-center.de - [EMAIL PROTECTED]

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] File uploads: some filetypes work, some don't

2001-07-20 Thread Peter Vruggink

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.16-22 (RedHat 7.0)
PHP version:  4.0.6
PHP Bug Type: HTTP related
Bug description:  File uploads: some filetypes work, some don't

I have a problem with file uploads on my PHP configuration. Some filetypes
get uploaded (e.g. BMP, GIF, TXT), while others don't get uploaded (for
example: MSWORD, PDF, EXCEL).

I use the following testfiles:

upload.html:
==


  Administration - upload new files


Upload new news files

  
  Upload this file: 
  


 

upload.php:
=


  Uploading...


Uploading file...
\n";
echo "name: " . $userfile_name . "\n";
echo "type: " . $userfile_type . "\n";
echo "size: ". $userfile_size ."\n";

if(is_uploaded_file ($userfile))
{

  $upfile = "/home/projectweb/files/". $userfile_name;

  if ( !copy($userfile, $upfile)) 
  {
echo "Problem: Could not move file into directory"; 
exit;
  }

 
  echo "File uploaded successfully"; 
  $fp = fopen($upfile, "r");
  $contents = fread ($fp, filesize ($upfile));
  fclose ($fp);
 
  $contents = strip_tags($contents);
  $fp = fopen($upfile, "w");
  fwrite($fp, $contents);
  fclose($fp);

  echo "Preview of uploaded file
contents:";
  echo $contents;
  echo "";
}
else
{
echo "There is no file uploaded!";
}

?>



Result with a BMP file:

file: /tmp/files/phpNGn0H0
naam: at.BMP
type: image/bmp
size: 230
File uploaded successfully

Preview of uploaded file contents:
BMæ

Result with a Microsoft Word file:

file: none
naam: Doc1.doc
type: application/msword
size: 0

There is no file uploaded! 

I'm puzzeled. Any ideas?


--
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Moving output.c from ext/standard to main/

2001-07-20 Thread Peter Petermann

> On Fri, 20 Jul 2001, Zeev Suraski wrote:
> > I'm thinking about moving the file in CVS, and in addition to fixing the 
> > HEAD branch, fix also the 4.0.6 branch, so that we at least can check out 
> > one version back.  What do you guys think?
> +1 on this
+1 =)

Peter
-- 
*ZIMT - where PHP meets needs*
Homepage: www.cyberfly.net - [EMAIL PROTECTED]
PHP Usergroups: www.phpug.de - [EMAIL PROTECTED]
Just for Fun: www.fist-center.de - [EMAIL PROTECTED]

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] offering beer to zeev...

2001-07-09 Thread Peter \"[DiSAStA]\" Petermann

> and dring this beer together
mh... i think i wanted to write drink


regards,
Peter Petermann ("[DiSAStA]");

--
*ZIMT - where PHP meets needs*
www.cyberfly.net - [EMAIL PROTECTED]
www.fist-center.de - [EMAIL PROTECTED]
www.phpug.de - [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] offering beer to zeev...

2001-07-09 Thread Peter \"[DiSAStA]\" Petermann

... and sascha
i offer to spend one beer for sascha, and one for zeev,
on php-conference in november, but only, if they stop this discussion till
tomorrow 12:00 Middle European Time,
and dring this beer together

regards,

Peter "[DiSAStA]" Petermann
--
*ZIMT - where PHP meets needs*
www.cyberfly.net - [EMAIL PROTECTED]
www.fist-center.de - [EMAIL PROTECTED]
www.phpug.de - [EMAIL PROTECTED]


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11903 Updated: xpath_eval does not work with default namespace.

2001-07-06 Thread peter

ID: 11903
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating system: FreeBSD 4.3
PHP Version: 4.0.6
Description: xpath_eval does not work with default namespace.

I forgot again

libxml version: 2.3.10
iconv version: 2.0

Previous Comments:
---

[2001-07-05 08:51:13] [EMAIL PROTECTED]

I forgot.

This namespace decleration will also work with xpath_eval
http://www.w3.org/1999/xhtml";>

---

[2001-07-05 08:44:09] [EMAIL PROTECTED]

Hi, When using default namespace in the XML (XHTML) source 
xpath_eval will not return any result except with the request "//*" whereby it will 
return the whole XML source.
When making another namespace than "xmlns" everything works fine.

// The xpaht_eval() will NOT work with this line
$xhtml = 'http://www.w3.org/1999/xhtml";>hu..';

// The xpaht_eval() will work with this line
$xhtml = 'http://www.w3.org/1999/xhtml";>hu..';

   
$doc = xmldoc($xhtml);
$ctx = xpath_new_context($doc); 
$node = xpath_eval_expression($ctx,"//title");
var_dump($node->nodeset);

---


Full Bug description available at: http://bugs.php.net/?id=11903


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11903 Updated: xpath_eval does not work with default namespace.

2001-07-05 Thread peter

ID: 11903
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating system: FreeBSD 4.3
PHP Version: 4.0.6
Description: xpath_eval does not work with default namespace.

I forgot.

This namespace decleration will also work with xpath_eval
http://www.w3.org/1999/xhtml";>

Previous Comments:
---

[2001-07-05 08:44:09] [EMAIL PROTECTED]

Hi, When using default namespace in the XML (XHTML) source 
xpath_eval will not return any result except with the request "//*" whereby it will 
return the whole XML source.
When making another namespace than "xmlns" everything works fine.

// The xpaht_eval() will NOT work with this line
$xhtml = 'http://www.w3.org/1999/xhtml";>hu..';

// The xpaht_eval() will work with this line
$xhtml = 'http://www.w3.org/1999/xhtml";>hu..';

   
$doc = xmldoc($xhtml);
$ctx = xpath_new_context($doc); 
$node = xpath_eval_expression($ctx,"//title");
var_dump($node->nodeset);

---


Full Bug description available at: http://bugs.php.net/?id=11903


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11903: xpath_eval does not work with default namespace.

2001-07-05 Thread peter

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3
PHP version:  4.0.6
PHP Bug Type: DOM XML related
Bug description:  xpath_eval does not work with default namespace.

Hi, When using default namespace in the XML (XHTML) source 
xpath_eval will not return any result except with the request "//*" whereby it will 
return the whole XML source.
When making another namespace than "xmlns" everything works fine.

// The xpaht_eval() will NOT work with this line
$xhtml = 'http://www.w3.org/1999/xhtml";>hu..';
// The xpaht_eval() will work with this line
$xhtml = 'http://www.w3.org/1999/xhtml";>hu..';
   
$doc = xmldoc($xhtml);
$ctx = xpath_new_context($doc); 
$node = xpath_eval_expression($ctx,"//title");
var_dump($node->nodeset);


-- 
Edit Bug report at: http://bugs.php.net/?id=11903&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11171 Updated: Faulty MSSQL-queries locks PHP

2001-07-02 Thread peter

ID: 11171
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Sybase (dblib) related
Operating system: FreeBSD
PHP Version: 4.0.5
Description: Faulty MSSQL-queries locks PHP

But the Sybase-library is used for MSSQL anyhow, so what's the difference? It still 
doesn't work.

Previous Comments:
---

[2001-06-30 15:11:33] [EMAIL PROTECTED]

This is not related to the mssql extension. You are using the sybase extension.

---

[2001-05-29 11:15:03] [EMAIL PROTECTED]

Bug #7881, as posted by [EMAIL PROTECTED] and bug #9244 is still present in PHP4.0.5.
Setup: FreeBSD 3.4-STABLE, Apache 1.3.20, PHP4.0.5, newest SybaseOpenClient for 
FreeBSD (not sure of version, older doesn't work either), SQLServer 7.0SP3 on WinNT.
Sending a valid query, using mssql_query() works fine, sending an invalid query (for a
table that does not exist for example), hangs the script. PHP does not timeout, the 
browser
does eventually.
For more details, see bug #7881.

This is very important for me to get fixed, would be happy for some information on why 
this happens?

Thanks!
Peter

---


Full Bug description available at: http://bugs.php.net/?id=11171


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11613: cannot compile apache+php+snmp

2001-06-22 Thread peter . hudak

From: [EMAIL PROTECTED]
Operating system: RH7.1, kernel 2.4.5, apache 13.20
PHP version:  4.0.5
PHP Bug Type: SNMP related
Bug description:  cannot compile apache+php+snmp

I cannot compile apache+php+snmp (statically linked).
this is my configure command for PHP:

./configure --with-pgsql --with-apache=../apache_1.3.20 \ --enable-track-vars \
--with-gd  --with-snmp --enable-calendar


this is my configure command for apache:

./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a

PHP compiles and installs without problem.

and this comes out from making of apache: 

Configuring for Apache, Version 1.3.20
 + using installation path layout: Apache (config.layout)
 + activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..; gcc  -DLINUX=22 -I/soft/php-4.0.5 -I/soft/php-4.0.5/main -I/soft/php-4.0.5/main 
-I/soft/php-4.0.5/Zend -I/soft/php-4.0.5/Zend -I/soft/php-4.0.5/TSRM 
-I/soft/php-4.0.5/TSRM -I/soft/php-4.0.5 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED 
`./apaci` -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/usr/local/pgsql/lib  
-rdynamic -L/usr/local/pgsql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 
-lmodphp4   -ldl -lsnmp -lpq -lttf -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -lnsl  
-lresolv   -lm -lcrypt
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`EVP_DigestInit'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`EVP_DigestFinal'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`EVP_md5'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`HMAC'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`EVP_sha1'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`des_cbc_encrypt'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`des_key_sched'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`EVP_DigestUpdate'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libsnmp.so: undefined reference to 
`RAND_bytes'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
o php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc. 

 Error Output for sanity check 
= End of Error Report =

 Aborting!



-- 
Edit Bug report at: http://bugs.php.net/?id=11613&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11453: textdomain() requires parameter

2001-06-19 Thread peter

From: [EMAIL PROTECTED]
Operating system: NT 4.0
PHP version:  4.0 Latest CVS (2001-06-12)
PHP Bug Type: Gettext related
Bug description:  textdomain() requires parameter

Release:
php4win.de: php-4.0.7-dev-20010611.exe
Documentation:
Call textdomain() with no parameters to get the current setting without changing it. 
Code:
print("Text domain: " . textdomain());
Result:
Warning: Wrong parameter count for textdomain()


-- 
Edit Bug report at: http://bugs.php.net/?id=11453&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >