[PHP-DEV] Re: #18412 [Com]: PRINTER_ORIENTATION

2002-08-26 Thread Derick Rethans
Hello Tanes, would it be possible for you to make a patch to this function? regards, Derick On 26 Aug 2002 [EMAIL PROTECTED] wrote: ID: 18412 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Unknown/Other

[PHP-DEV] Shopping Cart

2002-08-26 Thread [W]
i got a script for a shopping cart, like this : ?php /* Basket class for e-commerce purpose Version : 0.4 Type:Class Category:Shopping Carts License: GNU General Public License Description: This class provides methods for add, remove, update and remove all items from a basket. The basket works

[PHP-DEV] Re: #18412 [Com]: PRINTER_ORIENTATION

2002-08-26 Thread Derick Rethans
Tanes, On Mon, 26 Aug 2002, Tanes Sriviroolchai wrote: If you point me out where I can get latest sources in php4/ext/printer, I would love to provide a patch for this problem. I don't know why source codes of this module (printer) is not included in php distribution source code. It

Re: [PHP-DEV] UTF-8 encoding

2002-08-26 Thread Stefan Esser
On Sun, Aug 25, 2002 at 09:21:01PM +0200, Stig Venaas wrote: Great, I've been wondering why UTF-8 wasn't defined like that in the first place. Could you please give me a pointer to the addition? It is defined in RFC 2279. Regards, Stefan -- PHP Development Mailing List http://www.php.net/

[PHP-DEV] JOIN for FREE ... Learn and Earn

2002-08-26 Thread Charles Cedeno
Hello: My name is Charles Cedeno. I am now focusing in one online opportunity.I have tried several of these opportunities full of hype promising us thousands of dollars every month. I would get all excited and run to my family and friends with another Great Money Maker . It is a sad

[PHP-DEV] Re: #18412 [Com]: PRINTER_ORIENTATION

2002-08-26 Thread Tanes Sriviroolchai
Derick, If you point me out where I can get latest sources in php4/ext/printer, I would love to provide a patch for this problem. I don't know why source codes of this module (printer) is not included in php distribution source code. Regards, Tanes Sriviroolchai From: Derick Rethans

[PHP-DEV] Re: Transparent SID support

2002-08-26 Thread Giancarlo Pinerolo
There is a flagrant bug there that allows anyone to chose a session ID of his choice, instead of relying on the random device. I think this breaks some POSIX-MIT-RFC somewhere and can be the cause of easy exploits. I would then say hat for a bugfix release it should be reasonabe to fix it,. I

[PHP-DEV] Re: #18412 [Com]: PRINTER_ORIENTATION

2002-08-26 Thread Tanes Sriviroolchai
Derick, Here are the patch files (printer.c.patch to be applied on printer.c and printer.php.patch to be applied on printer.php). In order to make settings effect, the printer_set_option($handle,PRINTER_SET_OPTIONS,0) should be called after send a series of settings. The third parameter in

[PHP-DEV] [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Lukas Schroeder
hi, here's another shot of the current apache_hooks code. there are some issues with startup and cleanup currently. and the patch messes a bit with php's startup procedure. still missing is access to array_header (think headers_in, headers_out, headers_err) and table slot in request_rec, as is

Re: [PHP-DEV] Re: #18412 [Com]: PRINTER_ORIENTATION

2002-08-26 Thread Wez Furlong
Hi Tanes, I think it would make sense to bring that PRINTER_SET_OPTIONS code within printer_start_doc() so that this problem is fixed more transparently, as it seems like something that will always be called, so why force the user to have an extra line of code? --Wez. -- PHP Development

RE: [PHP-DEV] imap_mail_compose() for 4.2.3?

2002-08-26 Thread Lukas Smith
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jani Taskinen Sent: Monday, August 26, 2002 3:59 AM On Sun, 25 Aug 2002, Lukas Smith wrote: Anyways with the current version of php we have some problems with the imap support. Mainly with imap_mail_compose(). Those issues

Re: [PHP-DEV] Re: #18412 [Com]: PRINTER_ORIENTATION

2002-08-26 Thread Tanes Sriviroolchai
From: Wez Furlong [EMAIL PROTECTED] I think it would make sense to bring that PRINTER_SET_OPTIONS code within printer_start_doc() so that this problem is fixed more transparently, as it seems like something that will always be called, so why force the user to have an extra line of code?

[PHP-DEV] Reading PDF

2002-08-26 Thread Yuri Generalov
Hi, Is it possible to read the contents of PDF files from PHP? Yuri Generalov http://bookle.com/ http://cactus-books.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] error_log() and output buffering

2002-08-26 Thread Sebastian Bergmann
Sebastian Bergmann wrote: Marcus Boerger wrote: To have ob_start() working again i first allowed array(object,method). Thanks, XML_Transformer works again with HEAD. With HEAD, the server offers me the script's result as a download in both Mozilla 1.0.0 and MSIE 6 when XML_Transformer

Re: [PHP-DEV] error_log() and output buffering

2002-08-26 Thread Marcus Börger
At 17:16 26.08.2002, Sebastian Bergmann wrote: Sebastian Bergmann wrote: Marcus Boerger wrote: To have ob_start() working again i first allowed array(object,method). Thanks, XML_Transformer works again with HEAD. With HEAD, the server offers me the script's result as a download in

Re: [PHP-DEV] error_log() and output buffering

2002-08-26 Thread Sebastian Bergmann
Marcus Börger wrote: Which SAPI do you use mod_apache or cgi? CGI -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List

[PHP-DEV] ISAPI Crash Debugging Notes

2002-08-26 Thread Michael Sisolak
I've been doing some debugging of the crashes when running PHP under the ISAPI sapi. Is anybody else currently looking at this? If you are let's talk - here are my notes so far. I can make my install of PHP (4.2.1, a debug build) throw an exception on the first load after an IISReset 90% of

Re: [PHP-DEV] error_log() and output buffering

2002-08-26 Thread Marcus Börger
At 17:16 26.08.2002, Sebastian Bergmann wrote: Sebastian Bergmann wrote: Marcus Boerger wrote: To have ob_start() working again i first allowed array(object,method). Thanks, XML_Transformer works again with HEAD. With HEAD, the server offers me the script's result as a download in

[PHP-DEV] error_log()

2002-08-26 Thread Marcus Boerger
During analysis of error_log i remembered it's lack to be integrated in php_error() mechanism. We could implement behaviour 5 and emit an E_USER_xxx message with the name of the user function being executed. Any comments? marcus -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] error_log() and output buffering

2002-08-26 Thread Sebastian Bergmann
Marcus Börger wrote: In cgi this simply maps fprintf(stderr,...). I must see if this can cause the problem. Just tested it with the Apache 2.0 Filter SAPI and it works fine. I guess this answers the question of whether or not it's sapi/cgi related. -- Sebastian Bergmann

[PHP-DEV] Apache 2.0 Filter SAPI and error_log()

2002-08-26 Thread Sebastian Bergmann
I just noticed that when using error_log() in a Apache 2.0 Filter environment error.log entries are not prefixed with a stamp like [Mon Aug 26 18:33:13 2002] [error] [client 192.168.0.1] ... text ... -- Sebastian Bergmann http://sebastian-bergmann.de/

[PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
Here's an incremental patch on Lukas' patch which tries to address a couple issues: o The startup sequence has been changed to allow for post-data to make it through if any hooks before full post-data is read are called o works under register_globals Off ($request is now available in the

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Rasmus Lerdorf
I say commit it. This stuff is very experimental as it is and lives in its own branch. You are not going to destabilize anything. (I just made sure you had enough karma for the commit) -Rasmus On Mon, 26 Aug 2002, George Schlossnagle wrote: Here's an incremental patch on Lukas' patch which

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
All of this work was off HEAD. Should a new_apache_hooks branch be tagged? Rasmus Lerdorf wrote: I say commit it. This stuff is very experimental as it is and lives in its own branch. You are not going to destabilize anything. (I just made sure you had enough karma for the commit) -Rasmus

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Rasmus Lerdorf
I think if we put this in 4.3 we are going to delay 4.3 even further. Although, I suppose if we are careful and make sure we #ifdef it nicely and only turn it on with a configure option, we can put it in HEAD. So, is your patch my apache_hooks stuff + Lukas's work and then your stuff on top? On

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
I wasn't proposing putting it in HEAD, just that the work was done against HEAD not against your apache_hooks. Lukas redid all the php-apache request object work fresh off of head, and I made changes off of that, so it contains nothing from your apache_hooks branch. Rasmus Lerdorf wrote: I

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Rasmus Lerdorf
Well, the problem with doing it on a branch, the way I did, and as Lukas found out, is that it goes rather stale after a while. So I guess that I am actually proposing putting it in HEAD but #ifdef'ed out and perhaps not even providing a user-visible config option for it yet. You'd need to set

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread derick
On Mon, 26 Aug 2002, Rasmus Lerdorf wrote: Yeah, but the point, at least for now is that the code really isn't meant to even be used by QA folks yet. It is work targeted for PHP 5. hmm... starting with a PHP5 branch would be a little early now don't you think? Well, after 4.3.0 is branched

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Rasmus Lerdorf
On Mon, 26 Aug 2002, Rasmus Lerdorf wrote: Yeah, but the point, at least for now is that the code really isn't meant to even be used by QA folks yet. It is work targeted for PHP 5. hmm... starting with a PHP5 branch would be a little early now don't you think? Yup - hence the confusion

[PHP-DEV] Username change or alias

2002-08-26 Thread Erica Douglass
Hi, I signed up as SlashChick to join the php-doc team. I didn't realize that this would result in a [EMAIL PROTECTED] email forward! I'd like to request a username change to Erica, since that's my real name. Thus, I would like the forward to be [EMAIL PROTECTED] and my login name to be erica

Re: [PHP-DEV] Username change or alias

2002-08-26 Thread Rasmus Lerdorf
Submit a new request through www.php.net/cvs-php.php and I will remove the old one. On Mon, 26 Aug 2002, Erica Douglass wrote: Hi, I signed up as SlashChick to join the php-doc team. I didn't realize that this would result in a [EMAIL PROTECTED] email forward! I'd like to request a

[PHP-DEV] CVS Account Request: erica

2002-08-26 Thread Erica Douglass
Duplicate -- please remove SlashChick -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Thread safety failure in EG(function_table)?

2002-08-26 Thread Michael Sisolak
I believe that I can reproduce a thread safety failure in init_executor (as called from the ISAPI sapi). I have a PHP script page that loads the stylesheet as a PHP page - thus causing two almost simultaneous page loads. I assume that if in init_executor() directly after EG(function_table) =

Re: [PHP-DEV] apache 2.40

2002-08-26 Thread Rasmus Lerdorf
Is it now safe to set up apache 2 with php in a production server? Nope When will it be safe? Depends which Apache2 MPM you use. Hopefully by PHP 4.3 it should be safe for the prefork MPM. For any other MPM, perhaps never. We should be able to get the threaded ones stable with a limited

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Lukas Schroeder
On Mon, Aug 26, 2002 at 11:18:38AM -0700, Rasmus Lerdorf wrote: Well, after 4.3.0 is branched I guess the next release would be PHP 5 so it's not that far away. If only Stig would start with the branch :) Anyway, I'm more in favor of having this nice hook stuff in a seperate branch

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Rasmus Lerdorf
i offer to do the ugly work. i put it into the branch for now, so i dont even have to think i tiny bit about breaking anything. and if time comes, i'll prepare the necessary patch sets to merge into the php5 branch, without having to use the dreaded cvs merge branch 'feature'. would that

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Lukas Schroeder
On Mon, Aug 26, 2002 at 02:59:01PM -0400, George Schlossnagle wrote: I actually just made a 'new_apache_hooks' branch and am about to commit it all there argh. so, what now? i don't like having two branches for this. -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
If you want to pull everything into the apche_hooks branch, I can do that as well. But if we do that, it would probably wise to update everything in that branch to HEAD. George Schlossnagle wrote: I haven't committed anything yet. It seems like the benefit of starting with a fresh copy

RE: [PHP-DEV] apache 2.40

2002-08-26 Thread Preston L. Bannister
Might depend on their usage. Using Apache 2 with PHP through CGI or FastCGI should be OK. PHP as an Apache 2 module you'd expect to take a bit longer to settle down - especially if threading is involved. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Monday,

Re: [PHP-DEV] apache 2.40

2002-08-26 Thread Aaron Bannert
On Mon, Aug 26, 2002 at 12:27:34PM -0700, Preston L. Bannister wrote: Might depend on their usage. Using Apache 2 with PHP through CGI or FastCGI should be OK. PHP as an Apache 2 module you'd expect to take a bit longer to settle down - especially if threading is involved. It most

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread George Schlossnagle
Ok, this has all been added to the apache_hooks branch, which is now up-to-date. George Schlossnagle wrote: If you want to pull everything into the apche_hooks branch, I can do that as well. But if we do that, it would probably wise to update everything in that branch to HEAD. George

Re: [PHP-DEV] Re: [rfc] apache_hooks update (yet incomplete)

2002-08-26 Thread Edin Kadribasic
Ok, this has all been added to the apache_hooks branch, which is now up-to-date. Very nice. IMHO this should be merged into HEAD as soon as PHP_4_3_0 is branched off. Edin -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] New config.m4 for ext/xmlrpc

2002-08-26 Thread Brian France
I tried to build xmlrpc as a shared extension (phpize, ./configure, make), but when it builds it didn't have dependences for libexpat and libiconv, but the expat, libiconv and XMLRPC_ functions are undefined. While trying to fix this I rewrote the config.m4 to handle all the following build

[PHP-DEV] sort() broken on some platforms in 4.2.3RC1

2002-08-26 Thread Edin Kadribasic
Detailed description in http://bugs.php.net/bug.php?id=17449 According to this bug report, merging changes in Zend/zend_qsort.c from head fixes the problem. Could someone with Zend karma do that please? Edin http://cvs.php.net/diff.php/Zend/zend_qsort.c?r1=1.4r2=1.5ty=u -- PHP Development

[PHP-DEV] UltraEdit

2002-08-26 Thread Marcus Boerger
Anybody working with UltraEdit may like the following function detection: /Function String = ^{PHPAPI[ ^t]+^}^{^}^(PHP[A-Z_]+FUNCTION([a-zA-Z0-9_]+)^) It detects all PHP__FUNCTION with the names of the defined functions. Today i found having this VERY usefull :-) marcus -- PHP

Re: [PHP-DEV] ISAPI Crash Debugging Notes

2002-08-26 Thread Zeev Suraski
First off, can you try using http://www.php.net/~zeev/php-4.2.3RC1.tar.gz and see if you experience the same problems? I've made some thread-safety related fixes there, even though none should lead to a hard crash... If it doesn't solve the problem, can you send me as much information about

Re: [PHP-DEV] Thread safety failure in EG(function_table)?

2002-08-26 Thread Michael Sisolak
I believe that I can reproduce a thread safety failure in init_executor (as called from the ISAPI sapi). I have a PHP script page that loads the stylesheet as a PHP page - thus causing two almost simultaneous page loads. I assume that if in init_executor() directly after EG(function_table)