[PHP-DEV] [PATCH] to get mbstring.c to compile

2002-04-30 Thread Preston L. Bannister
)/sizeof(enum mbfl_no_encoding); -- Preston L. Bannister [EMAIL PROTECTED] pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] to temporary file open

2002-04-30 Thread Preston L. Bannister
) { +return fp; +} +return 0; } /* }}} */ -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] to locate php.ini on Win32 with executable

2002-04-30 Thread Preston L. Bannister
sprintf(php_ini_search_path, .%c%s, ZEND_PATHS_SEPARATOR, default_location); } } - if (free_default_location) { - efree(default_location); - } } PG(safe_mode) = 0; -- Preston L. Bannister http

[PHP-DEV] [PATCH] to not require cgi.force_redirect= 0 under IIS on Win32

2002-04-30 Thread Preston L. Bannister
(cgi.redirect_status_env, redirect_status_env) == FAILURE) { -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] to reflect installation values unknown at build time on Win32

2002-04-30 Thread Preston L. Bannister
is built-in */ +/* #ifdef PHP_PROG_SENDMAIL #undef PHP_PROG_SENDMAIL #define PHP_PROG_SENDMAIL Built in mailer #endif +*/ -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit

RE: [PHP-DEV] [PATCH] to get mbstring.c to compile

2002-04-30 Thread Preston L. Bannister
(php_mbstr_default_identify_list[0]); static unsigned char third_and_rest_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE_REST }; static unsigned char second_args_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE }; -Original Message- From: Preston L. Bannister [mailto:[EMAIL PROTECTED]] Sent

[PHP-DEV] CVS account request?

2002-04-30 Thread Preston L. Bannister
version of PHP :). -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] config.w32.h

2002-05-01 Thread Preston L. Bannister
of PHP in our application, with a local php.ini file. Instead I'd suggest that the settings stay in php.ini, but that PHP look for php.ini first local to the installation of php.exe. I posted a (tested!) patch a few days back to do exactly this. -- Preston L. Bannister http://members.cox.net

RE: [PHP-DEV] config.w32.h

2002-05-01 Thread Preston L. Bannister
it :) this isn't going to be a big task, i'll put it onto my todo. From: Sebastian Bergmann [mailto:[EMAIL PROTECTED]] Preston L. Bannister wrote: Instead I'd suggest that the settings stay in php.ini, but that PHP look for php.ini first local to the installation of php.exe. The settings

RE: [PHP-DEV] Win32: config.w32.h.in - config.w32.h

2002-05-02 Thread Preston L. Bannister
From: Sebastian Bergmann [mailto:[EMAIL PROTECTED]] I now changed the MSVC project files in order to generate config.w32.h from config.w32.h.in during the build, if config.w32.h does not already exist. However, as I of course found out only after committing, MSVC deletes

[PHP-DEV] A better strlcat()

2002-05-02 Thread Preston L. Bannister
; printf(xxx_strlcat() copied %1.0f characters in %ld ticks\n,(double)nTotal,(long)dt); return 0; } - -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http

RE: [PHP-DEV] config.w32.h...registry configuration

2002-05-02 Thread Preston L. Bannister
From: Zeev Suraski [mailto:[EMAIL PROTECTED]] At 15:09 02/05/2002, [EMAIL PROTECTED] wrote: Ok then, perhaps we should have an .ini setting for it? :) So you want to add an .ini setting where the .ini file could be found? That just doesn't make sense to me :) That was a joke..

RE: [PHP-DEV] config.w32.h...registry configuration

2002-05-02 Thread Preston L. Bannister
From: Andi Gutmans [mailto:[EMAIL PROTECTED]] At 14:44 02/05/2002 +0300, Zeev Suraski wrote: At 14:00 02/05/2002, [EMAIL PROTECTED] wrote: On Thu, 2 May 2002, Zeev Suraski wrote: At 13:36 02/05/2002, [EMAIL PROTECTED] wrote: Some hosters use this feature to have different settigns

RE: [PHP-DEV] A better strlcat()

2002-05-02 Thread Preston L. Bannister
sure it behaves *exactly* like the existing one? I stole the implementation from OpenBSD so it might be a good idea for you to send it to them. They are the best to shed light on this and see if it's exactly the same and faster. Andi At 09:00 02/05/2002 -0700, Preston L. Bannister wrote

RE: [PHP-DEV] config.w32.h...registry configuration

2002-05-03 Thread Preston L. Bannister
From: Zeev Suraski [mailto:[EMAIL PROTECTED]] IMHO, the enemy of the good is the better. We can implement the binary-dir solution in no time, and it covers 95% of the problems easily, but instead we'll be discussing perfect solutions and end up doing nothing :) Yes, please! :) Remember

RE: [PHP-DEV] config.w32.h...registry configuration

2002-05-03 Thread Preston L. Bannister
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Well, you are correct that the size of the executable is irrelevant, but having different instances of PHP means less shared pages when multiple copies are loaded. There is a definite advantage to having a single httpd binary that is the same

[PHP-DEV] Win32 testing and run-tests.php (was: PHP 4 Bug Summary Report)

2002-05-04 Thread Preston L. Bannister
' : return code '0xff' Stop. Error executing nmake. __test_run_complete__ - 5 error(s), 0 warning(s) -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Win32 testing and run-tests.php (was: PHP 4 Bug Summary Report)

2002-05-05 Thread Preston L. Bannister
: Saturday, May 04, 2002 6:18 PM Yes, i'm working on getting tests working on all platforms... but not today, probably very soon. -Original Message- From: Preston L. Bannister [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 2:14 AM Is anyone working on getting the run

RE: [PHP-DEV] Win32 testing and run-tests.php (was: PHP 4 Bug Summary Report)

2002-05-05 Thread Preston L. Bannister
From: James Cox [mailto:[EMAIL PROTECTED]] My plan is to revamp the way that tests work, so it's more efficient. But, you are more than welcome to work on the current testing system, -- all the tests will be converted anyhow :) First iteration - regularize the output to allow easy

[PHP-DEV] CVS Account Request: pbannister

2002-05-05 Thread Preston L. Bannister
Smoothing out the rough spots in the Win32 version of PHP. Help to get running and add to the unit tests for PHP - particularly on Win32. If you want to know what I've done in the past, you can get a hint from Google:

[PHP-DEV] Updated run-tests.php

2002-05-17 Thread Preston L. Bannister
Updated run-tests.php to work well on Win32. The changes *should* work on Unix as well, and I'll do some testing once I finish getting my newer Linux box set up :). Added some tricks I've found useful in writing unit tests: * Require a specific explicit path to the PHP executable. * Require

RE: [PHP-DEV] Updated run-tests.php

2002-05-17 Thread Preston L. Bannister
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] testing right away on Linux :) I've some comments: [root@kossu php-4.3.0dev]# php run-tests.php FAIL environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable! Nice message, but I think it would be a good idea to

RE: [PHP-DEV] Command line compilation under win32

2002-05-17 Thread Preston L. Bannister
and no possibility of human error. -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Tip of the day: embedding php code in scripts

2002-05-20 Thread Preston L. Bannister
From: Stig S. Bakken [mailto:[EMAIL PROTECTED]] Did anyone come up with this one before or do I have a first post? :-) #!/bin/sh exec php -d output_buffering=1 $0 $@ ?php ob_end_clean(); print Hello World!\n; ? Or the shorter (and faster) version: #!/usr/local/bin/php -d

RE: [PHP-DEV] ActiveScript sapi now in CVS

2002-05-20 Thread Preston L. Bannister
It might be of help when migrating from ASP to PHP. If you can pass values(?) between ASP and PHP then you might be able to convert incrementally from ASP to PHP. For applications that have too much code to convert (and test!) in one release cycle, this could be a significant advantage. You

RE: [PHP-DEV] Re: I need your support: Reinstatement of msession

2002-05-26 Thread Preston L. Bannister
seperately can be have a much larger impact. In this case you want to think about building in all the often used extensions. -- Preston L. Bannister http://members.cox.net/preston.bannister/ pbannister on Yahoo Messenger -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit

RE: [PHP-DEV] Performance of Apache 2.0 Filter

2002-06-06 Thread Preston L. Bannister
for a multi-threaded application may in fact not be much different from a tradition Unix application that uses multiple processes. I don't know how to verify this - dig out the physical memory usage and check the copy-on-write behavior - on Linux. -- Preston L. Bannister http://members.cox.net

RE: [PHP-DEV] oo != php

2002-06-07 Thread Preston L. Bannister
From: Ilker Cetinkaya [mailto:[EMAIL PROTECTED]] [snip] but after getting known of the ze2 features, I personally saw PHP finally growing out of that PHP, language for kiddies-image. IMHO PHP is a real good language for its target purpose, but it has potential to be much better. PHP is a

RE: [PHP-DEV] Moving away from ASP to PHP

2002-07-31 Thread Preston L. Bannister
By as many platforms as possible do you mean different web servers on Windows (in which case using ActiveX components is viable), or different operating systems (Linux? Apple's OS? Sun? z/OS?)? Which specific platforms do you have in mind? I would not ordinarily recommend writing code in C

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] [PATCH] include statement in php.ini file

2002-09-27 Thread Preston L. Bannister
I'd vote with Rasmus here. Adding an include statement (whatever it's called) looks to be very low risk for inclusion in the 4.3 release. I am a little uncomfortable with the auto-magic function to include all files in directory. I've been bitten more than a few times by magic that didn't do

RE: [PHP-DEV] [PATCH] ereg to pcre conversion

2002-11-02 Thread Preston L. Bannister
Unfortunately I have to agree with Markus on this. If we don't care very much about the risk of breaking backwards compatibility then altering calls to the ereg functions is a perfectly fine idea. If we *do* care about backwards compatibility then *before* committing the changes in any permanent

Re: [PHP-DEV] C++ extensions and ext_skel

2002-11-28 Thread Preston L. Bannister
There is nothing about using a C++ compiler that makes your code less efficient. The primary determinant is still overwhelmingly the programmer. C++ has *never* gotten in my way when writing extremely efficient programs, and in fact I find it a great help. The flip side is I've seen a lot of

RE: [PHP-DEV] useless config.w32.h and solutions

2002-12-01 Thread Preston L. Bannister
There is an impedence mismatch here between typical usage on Unix and typical usage on Windows. Some infomation that can typically be compiled-in on Unix must be determined at runtime on Windows. I don't believe the environment is really a good place to be expecting this information - not on

RE: [PHP-DEV] [PATCH] New changes to ext_skel for C++

2002-12-04 Thread Preston L. Bannister
That would be a big YES - as in practically all C++ compilers. It was a part of the draft ANSI standard for C++ for rather a long time (but not in the final standard?). -Original Message- From: Stig S. Bakken [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 1:23 AM Isn't

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Preston L. Bannister
Admittedly I didn't hear whatever discussion went on before, but I wonder why the need for two different executables? It seems that the presence of the CGI variables SERVER_NAME and SERVER_SOFTWARE are pretty big hints, so you could decide at runtime whether to act as CGI or CLI. For

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-09 Thread Preston L. Bannister
Thanks Hartmut, that added some much needed clarity. One comment I have to offer is the clutter you mention strongly suggests a refactoring was needed to lift from common code the CLI or CGI affected code. Including or omitting entire modules appropriate for each environment is also a pretty

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-11 Thread Preston L. Bannister
Just for the record, there is no fork() on Win32. I have little doubt Sterling meant the Win32 equivalent :). The only reason I felt this worth mentioning is that fork() on Unix is a relatively cheap operation, and an advantage unique to Unix. Some have posted here of service providers that

RE: [PHP-DEV] Make Windows PHP Fork

2003-02-06 Thread Preston L. Bannister
This requires some Win32 magic in the invoking Win32 program, not in the generic PHP executable - so your question is somewhat off-topic for this list (though this may not have been apparent). The hint: STARTUPINFO si; memset(si,0,sizeof(si)); si.cb = sizeof(si); si.dwFlags