Re: [PHP-DEV] Bi-Directional Process Pipe

2002-03-29 Thread Wez Furlong
Hi, I mentioned this a week or so ago, but had no response. I have in mind a function that can work something like this: $options = array( 0 = array(pipe, r) // Stdin for new proc will be a pipe 1 = array(pipe, w) // Stdout for new proc will be a pipe 2 = null, // Stderr will

[PHP-DEV] file upload issue in HEAD

2002-03-29 Thread Rasmus Lerdorf
I don't think it is a good idea to drop all form data from an enctype=multipart/form-data POST when file uploads are turned off. I think it makes more sense only to drop the uploaded file. A simple test script: form action=form.php enctype=multipart/form-data method=POST input type=text

[PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
Hi, I have problems with logging events in PHP. When some user write example script from PHP.NET: $fd = fopen (/tmp/nonexists.txt, r); while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo $buffer; } fclose ($fd); And when the file not exists, it run 30 seconds and the ended, but my

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Markus Fischer
Your code is simply broken. You have to make sure $fd is a proper file handle before you try to use it: if ($fd = @fopen($filename, 'r')) { while(!feof($fd)) { ... } fclose($fd); } Btw, next time please ask on php-general@ - Markus On Fri, Mar

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
I know it, but we're freewebhosting with 10.000 users... and when do users it? Sorry, I will write to general! JP - Original Message - From: Markus Fischer [EMAIL PROTECTED] To: Jan Pavlík [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 10:18 AM Subject: Re:

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Markus Fischer
On Fri, Mar 29, 2002 at 10:30:18AM +0100, Jan Pavlík wrote : I know it, but we're freewebhosting with 10.000 users... and when do users it? That's a general problem of vhosting and allowing user to write/execute arbitrary code if any kind of language. (I *have* a reason not being

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
That not help to me ;) I will rewrite PHP to log only ONE error when the next errors are the same. But I ask only, PHP developers think, that will be better make it as standart. I will send the patch here for PHP 4.1.2... JP Markus Fischer [EMAIL PROTECTED] píse v diskusním príspevku [EMAIL

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Markus Fischer
On Fri, Mar 29, 2002 at 10:43:17AM +0100, Jan Pavlík wrote : That not help to me ;) I will rewrite PHP to log only ONE error when the next errors are the same. But I ask only, PHP developers think, that will be better make it as standart. I will send the patch here for PHP 4.1.2...

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
Sure :) JP Markus Fischer [EMAIL PROTECTED] píse v diskusním príspevku [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, Mar 29, 2002 at 10:43:17AM +0100, Jan Pavlík wrote : That not help to me ;) I will rewrite PHP to log only ONE error when the next errors are the same. But I ask

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Stefan Roehrich
On 2002-03-29 10:43:17, Jan Pavlík wrote: I will rewrite PHP to log only ONE error when the next errors are the same. Maybe you can try logging errors to syslog, not to a file. Many syslog daemons seem to have some logic to detect repeating messages and only log something like last message

Re: [PHP-DEV] ZendEngine 2

2002-03-29 Thread Andi Gutmans
As in the Engine 2 overloaded classes don't necessarily have a class entry we have to check out what needs to be done here. I haven't had time to look at the code but I'll check it out when I get back from vacation. Andi At 23:47 26/03/2002 +0100, Emmanuel FAIVRE wrote: Hi all, i'm currently

[PHP-DEV] Re: [Zend Engine 2] Suggestion/request for error handling

2002-03-29 Thread Derick Rethans
On Thu, 28 Mar 2002, Andi Gutmans wrote: At 14:40 28/03/2002 +0100, Alexander Wirtz wrote: Ok, this is maybe neither exactly the right place nor very important, but I've noticed a topic that I find wanting in PHP: Error handling in classes. When you have a class, that is used in different

[PHP-DEV] DB Abstraction

2002-03-29 Thread Daniel Lorch
Hi, I'm a bit confused about the ongoing projects aiming towards a standard for database abstraction in PHP. There is DBA [ http://php.net/dba ], PEAR DB and a project by l0t3k (and many, many more). So what is going to be the standard in PHP's future? I think l0t3k is working on a C based

Re: [PHP-DEV] DB Abstraction

2002-03-29 Thread Daniel Lorch
Hi silly me, DBA [ http://php.net/dba ] [..] I meant DBX http://php.net/dbx Daniel -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] thread safety for binding issues

2002-03-29 Thread Markus Fischer
Hi, how much thread-safe is PHP on linux when compiled with --enable-experimental-zts ? When I a set up a callback handler for a 3rd library which uses threads and in this (C) callback I call call_user_function() (to provide custom callbacks) - bang , I get a segfault.

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Marcus Börger
At 10:43 29.03.2002, Jan Pavlík wrote: That not help to me ;) I will rewrite PHP to log only ONE error when the next errors are the same. But I ask only, PHP developers think, that will be better make it as standart. But please configureable with default to current behaviour. I host myself and

Re: [PHP-DEV] file upload issue in HEAD

2002-03-29 Thread Stefan Esser
By the way, this didn't work at all in 4.1.2. Any Sorry but I cannot reproduce this. The _REQUEST array is filled here. The only strange thing is that phpinfo doesn't show it... But var_dump and print_r do... Stefan -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Marcus Börger
At 13:17 29.03.2002, you wrote: Okay, I think for that... but one error message 1000times? :)) The difference between you and me is that i do the faults my own and can act directly. Whereas you have given users the possibility to code their own php and do stupid things. Therefor i like your idea

[PHP-DEV] LF function to read in a URL

2002-03-29 Thread Alan McKay
Folks, I'm new to PHP and am looking for a function that will allow me to pass it a URL, and it will return a string which is the HTML code found at the given URL. I want to write some plugins for Geeklog which will harvest stock data from financial websites. thanks, -alan -- PHP Development

[PHP-DEV] Session patch for ID created by handler

2002-03-29 Thread mlwmohawk
So have we discussed this enough, can I just apply it and be done with it? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] LF function to read in a URL

2002-03-29 Thread Jan Folkert Bethlehem
Alan McKay wrote: Folks, I'm new to PHP and am looking for a function that will allow me to pass it a URL, and it will return a string which is the HTML code found at the given URL. I want to write some plugins for Geeklog which will harvest stock data from financial websites. thanks,

Re: [PHP-DEV] Session patch for ID created by handler

2002-03-29 Thread derick
On Fri, 29 Mar 2002 [EMAIL PROTECTED] wrote: So have we discussed this enough, can I just apply it and be done with it? +1 Derick --- PHP: Scripting the Web - [EMAIL PROTECTED] All your

Re: [PHP-DEV] Session patch for ID created by handler

2002-03-29 Thread brad lafountain
--- [EMAIL PROTECTED] wrote: On Fri, 29 Mar 2002 [EMAIL PROTECTED] wrote: So have we discussed this enough, can I just apply it and be done with it? +1 +1 /* Brad */ __ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for

Re: [PHP-DEV] Session patch for ID created by handler

2002-03-29 Thread Stefan Esser
+ 3.14159 Stefan -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] file upload issue in HEAD

2002-03-29 Thread Rasmus Lerdorf
Did you turn off file_uploads in your php.ini before testing? I just double-checked in the 4.2 branch and turning off file_uploads makes the variable disappear for me. -R On Fri, 29 Mar 2002, Stefan Esser wrote: By the way, this didn't work at all in 4.1.2. Any Sorry but I cannot

Re: [PHP-DEV] file upload issue in HEAD

2002-03-29 Thread Stefan Esser
Hi, Did you turn off file_uploads in your php.ini before testing? I just double-checked in the 4.2 branch and turning off file_uploads makes the variable disappear for me. Ahhh then I misunderstood your mail. I thought you mean in 4.1.2 if you do not upload a file (only fill the input

Re: [PHP-DEV] Patch for php.ini-* as mentioned in commit for /ext/crack/crack.dsp

2002-03-29 Thread Sander Roobol
Done. On 2002.03.28 19:55 Joseph Tate wrote: Here it is. Will someone with karma please commit it? Thanks, Joseph -- 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,

Re: [PHP-DEV] file upload issue in HEAD

2002-03-29 Thread Rasmus Lerdorf
Right, that is what I am seeing at least on the Debian package of 4.1.2, and in 4.2 and HEAD this is fixed but we still have the issue of dropping form fields when file uploads are turned off. I need to build another 4.1.2 to see if I can reproduce what I am seeing in the Debian build. -Rasmus

Re: [PHP-DEV] file upload issue in HEAD

2002-03-29 Thread Rasmus Lerdorf
Hrm, you are right, I can't repeat it in the current 4.1 branch. Am I seeing things on Debian? Anybody else have a Debian woody server with 4.1.2 from the Debian package running? If so, please test this script: form action=form.php enctype=multipart/form-data method=POST input type=text

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Shane Caraveo
Markus Fischer wrote: Hi, how much thread-safe is PHP on linux when compiled with --enable-experimental-zts ? When I a set up a callback handler for a 3rd library which uses threads and in this (C) callback I call call_user_function() (to provide custom callbacks)

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Markus Fischer
On Fri, Mar 29, 2002 at 09:14:46AM -0800, Shane Caraveo wrote : Markus Fischer wrote: Hi, how much thread-safe is PHP on linux when compiled with --enable-experimental-zts ? When I a set up a callback handler for a 3rd library which uses threads and in this (C)

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Shane Caraveo
Markus Fischer wrote: On Fri, Mar 29, 2002 at 09:14:46AM -0800, Shane Caraveo wrote : Markus Fischer wrote: Hi, how much thread-safe is PHP on linux when compiled with --enable-experimental-zts ? When I a set up a callback handler for a 3rd library which uses threads and in this

[PHP-DEV] Re: Session patch for ID created by handler

2002-03-29 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: So have we discussed this enough, can I just apply it and be done with it? +1 -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] strange string problem (was: LF function to read in a URL)

2002-03-29 Thread Alan McKay
function get_file($url) { return implode('', file($url)); } Have fun with it ;) It works great! But now I'm having a quirky problem with strings. I'm stripping stock prices from globeinvestor.com, and everything is going well except for this quirk. I pull down the web page with your

[PHP-DEV] Newbie question

2002-03-29 Thread Ernesto
Hi, I can see you pretty busy here, so I'll be brief: I'm trying toget inside the PHP source, but I'm not an expert in C. The flex.skl file states: #define YY_INPUT(buf,result,max_size) \ %% fread()/read() definition of YY_INPUT goes here unless we're doing C++ %+ C++ definition Note the

Re: [PHP-DEV] CLI and -f

2002-03-29 Thread Markus Fischer
On Fri, Mar 29, 2002 at 02:10:45AM +0100, Marcus Börger wrote : At 01:57 29.03.2002, Markus Fischer wrote: On Fri, Mar 29, 2002 at 01:39:52AM +0100, Marcus Börger wrote : At 01:33 29.03.2002, you wrote: On Fri, Mar 29, 2002 at 01:00:47AM +0100, Marcus Börger wrote : The difference to

Re: [PHP-DEV] thread safety for binding issues

2002-03-29 Thread Zeev Suraski
It should work, it's using exactly the same thread safe code as the one under Windows... Zeev At 14:14 29/03/2002, Markus Fischer wrote: Hi, how much thread-safe is PHP on linux when compiled with --enable-experimental-zts ? When I a set up a callback handler for a 3rd

[PHP-DEV] cvs: php4 /main/main.c [[Re: [PHP-DEV] ErrorLog problem]]

2002-03-29 Thread Jan Pavlík
rootshell Fri Mar 29 23:13:29 2002 CET Modified files: /php4/main/main.c Log: lot of same errors are logged as one, cleans errorlog Index: php4/main/main.c diff -u php4/main/main.c:1.404.2.5 php4/main/main.c:1.404.2.6 --- php4/main/main.c:1.404.2.5 Mon Dec 17 22:19:51 2001 +++

[PHP-DEV] Re: file upload issue in HEAD

2002-03-29 Thread Yasuo Ohgaki
Rasmus Lerdorf wrote: By the way, this didn't work at all in 4.1.2. Any I guess Jani fixed this in HEAD, doesn't? Or is this different issue? enctype=multipart/form-data form without an actual file uploaded at the same time would drop all the extra data fields. Probably serious enough to

[PHP-DEV] Mac OS X --with-apxs build now works!

2002-03-29 Thread Marko Karppinen
Ladies and gentlemen, as of today, the CVS HEAD version (4.3.0-dev) of PHP finally supports --with-apxs building out of the box on Mac OS X. This means that the canonical ./configure --with-apxs=/usr/sbin/apxs ; make ; make install installation method is now possible. We need as much eyes as