Re: [PHP-DEV] exec_dir only in safe mode

2002-06-20 Thread C. McCohy
On Thu, 20 Jun 2002, C. McCohy wrote: > it's going about the safe_mode_exec_dir configuration directive, which > allows php script to execute an external command, which is located in > specified directory only. This is able only in safe mode, not in "normal > mode" .. > > What do you think, w

Re: [PHP-DEV] singleton

2002-06-20 Thread Sebastian Bergmann
Purushotham Komaravolu wrote: > Is there any way to create a singleton in Php4? Yes, but this is the wrong list to ask such questions. Anyhow: PHP 4 PHP 5 -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I he

[PHP-DEV] PHP, Java integration failed: Red Hat 7.1, JDK 1.4, Apache 1.3x

2002-06-20 Thread William John Burns
All: None of the many online user posts in setting up Java connectivity from within PHP have worked. RPM or tarball. Do you know of anyone who has an RPM of PHP, with the standard MySQL, GD, Postgres, WDDX, etc...but also libphp_java.so correctly set-up? The Windows PHP has Java support right

Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring mbstring.c

2002-06-20 Thread Markus Fischer
On Fri, Jun 21, 2002 at 08:44:39AM +0900, Yasuo Ohgaki wrote : > IMO, removing mbstring from PHP is ok as long as user > knows what they are doing. We can remove other internal > modules, such as session module also. I'm +1 on removing ext/session too, it's a pretty good idea. We can do

[PHP-DEV] Seeking Comments - Regarding header()

2002-06-20 Thread Chris Shiflett
A topic was brought up on PHP general that the "Location" header should change the HTTP response code to 304 rather than 302. Rasmus suggested that this person submit a patch, and that it would be considered. I decided to look into this a bit more. A 302 response code seems more appropriate as

[PHP-DEV] Re: Suggestion about native DB support.

2002-06-20 Thread Yasuo Ohgaki
Garland Foster wrote: > I have a strong feeling that it would be a very good idea to ship PHP (*nix and Win) >with some native, BUNDLED > support for some DBM-files format. It can be very nice to have a native set of >DBM-like functions available in PHP > no matter the operating system or how PH

Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring mbstring.c

2002-06-20 Thread Marcus Börger
At 01:44 21.06.2002, Yasuo Ohgaki wrote: >Brian France wrote: >>Ok, what does exif need from mbstring, code wise? Taking a look at it I >>don't see any references to mbstring in the code. > >exif needs mbstring to handle multibyte chars. Correct ext/exif will work without ext/mbstring but the u

Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring mbstring.c

2002-06-20 Thread Brian France
I was just using the ability to remove mbstring from ext as a selling point to get the patch into PHP. Stays or goes is up to you guys. :-) What I am doing for work is setting up a bare PHP that can be installed on all server and then who ever needs mbstring, xml, xslt or what ever extension c

[PHP-DEV] Re: $HTTP_*_VARS deprecation status request

2002-06-20 Thread Yasuo Ohgaki
Philip Olson wrote: > Hello, > > Any idea if/when these variables won't be > created by PHP? > > Regards, > Philip Olson > $HTTP_*_VARS could waste a lot of memory when input conversion is needed. I would like to remove $HTTP_*_VARS, but I think it won't be depreciated anytime soon. PHP7? ma

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
Well, I kept playing with and got it to work. I changed the sizeof(AUTOGLOBAL_G(global_vars))-1 to strlen(AUTOGLOBAL_G(global_vars)). Any reason not to use this. Brian. - Original Message - From: "Brian Moon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 20, 2002 6:3

Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring mbstring.c

2002-06-20 Thread Yasuo Ohgaki
Brian France wrote: > Ok, what does exif need from mbstring, code wise? Taking a look at it I > don't see any references to mbstring in the code. > exif needs mbstring to handle multibyte chars. IMO, removing mbstring from PHP is ok as long as user knows what they are doing. We can remove oth

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
Ok, now for some help. I have this: PHP_MINIT_FUNCTION(autoglobal) { ZEND_INIT_MODULE_GLOBALS(autoglobal, php_autoglobal_init_globals, NULL); REGISTER_INI_ENTRIES(); zend_register_auto_global("_TEST2", sizeof("_TEST2")-1 TSRMLS_CC); if(sizeof(AUTOGLOBAL_G(global_vars))>0){

[PHP-DEV] period_diff (months between 2 dates)

2002-06-20 Thread Dan Allen
Months are a rather significant exception to date differences than any other unit of time. This is why mysql made a function specifically for this purpose. I recently had to use it and noticed the number of users on php-general asking this question, so I wanted to post true implementation of it

Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring mbstring.c

2002-06-20 Thread Brian France
Ok, what does exif need from mbstring, code wise? Taking a look at it I don't see any references to mbstring in the code. Thanks, Brian At 8:27 PM +0200 6/20/02, Marcus Börger wrote: >You will break ext/exif when removing mbstrings current integration > >At 04:17 20.06.2002, you wrote: >>I am

Re: [PHP-DEV] Re: cvs: php4 /ext/mbstring mbstring.c

2002-06-20 Thread Marcus Börger
You will break ext/exif when removing mbstrings current integration At 04:17 20.06.2002, you wrote: >I am testing a patch that allows mbstring to be built as a shared >extension instead of static. This would allow removing any reference to >mbstring from the core PHP code and making mbstring m

[PHP-DEV] rename not working

2002-06-20 Thread Purushotham Komaravolu
/ fp = fopen(logFile."/log.txt", "a"); flock(fp, 2); $ren= rename(logFile."/log.txt", logFile.$time); flock($this->fp, 3); This code is making the system to hang( deadlock, since i am locking the file and then trying to rename the

[PHP-DEV] singleton

2002-06-20 Thread Purushotham Komaravolu
Hi All, Is there any way to create a singleton in Php4? I am trying to create a singleton clas for database connection pooling( so the class should be a singleton for the webserver instance and should be singleton across requests). Regards, Puru

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
big thanks. Brian. - Original Message - From: "Brad LaFountain" <[EMAIL PROTECTED]> To: "Brian Moon" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 20, 2002 3:32 PM Subject: Re: [PHP-DEV] Custom Extensions and Super Globals | I believe you are looking for | | zend_reg

[PHP-DEV] ZE2 'breaks' global?

2002-06-20 Thread Carl Drinkwater
Hi all, I was playing with 4.3.0+ZE2 (fresh out of CVS) this afternoon and came across this - I was just wondering if this is a intended feature of ZE2 or not ... Here is a script ... Employ(); } } } class Manager { function Employ() { echo "I'm employed!

Re: [PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brad LaFountain
I believe you are looking for zend_register_auto_global(); - Brad --- Brian Moon <[EMAIL PROTECTED]> wrote: > I was just thinking about some of our code on dealnews.com and thought it > would be cool if we could write our own extension that would, among other > things, make a couple of widely u

[PHP-DEV] Custom Extensions and Super Globals

2002-06-20 Thread Brian Moon
I was just thinking about some of our code on dealnews.com and thought it would be cool if we could write our own extension that would, among other things, make a couple of widely used variables on out site super globals like $_SERVER, etc. A) Can this be done. B) If so, can anybody give me a pu

[PHP-DEV] $HTTP_*_VARS deprecation status request

2002-06-20 Thread Philip Olson
Hello, Any idea if/when these variables won't be created by PHP? Regards, Philip Olson -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php 4.2.2

2002-06-20 Thread Ilia A.
On June 20, 2002 12:43 pm, [EMAIL PROTECTED] wrote: > On Thu, 20 Jun 2002, Ilia A. wrote: > > Would it be possible to include the fixes made by Andy to the > > zend_constants.c, which resolves at least 2 major bugs with constants? > > I think you have the karma to do that yourself, so please proce

Re: [PHP-DEV] php 4.2.2

2002-06-20 Thread Ilia A.
On June 20, 2002 12:51 pm, Markus Fischer wrote: > On Thu, Jun 20, 2002 at 06:43:07PM +0200, [EMAIL PROTECTED] wrote : > > On Thu, 20 Jun 2002, Ilia A. wrote: > > > Would it be possible to include the fixes made by Andy to the > > > zend_constants.c, which resolves at least 2 major bugs with const

Re: [PHP-DEV] php 4.2.2

2002-06-20 Thread derick
On Thu, 20 Jun 2002, Markus Fischer wrote: > On Thu, Jun 20, 2002 at 06:43:07PM +0200, [EMAIL PROTECTED] wrote : > > On Thu, 20 Jun 2002, Ilia A. wrote: > > > > > Would it be possible to include the fixes made by Andy to the > > > zend_constants.c, which resolves at least 2 major bugs with con

Re: [PHP-DEV] php 4.2.2

2002-06-20 Thread Markus Fischer
On Thu, Jun 20, 2002 at 06:43:07PM +0200, [EMAIL PROTECTED] wrote : > On Thu, 20 Jun 2002, Ilia A. wrote: > > > Would it be possible to include the fixes made by Andy to the > > zend_constants.c, which resolves at least 2 major bugs with constants? > > I think you have the karma to do that you

Re: [PHP-DEV] php 4.2.2

2002-06-20 Thread derick
On Thu, 20 Jun 2002, Ilia A. wrote: > Would it be possible to include the fixes made by Andy to the > zend_constants.c, which resolves at least 2 major bugs with constants? I think you have the karma to do that yourself, so please proceed. Derick --

[PHP-DEV] changing max size to upload

2002-06-20 Thread Anil Garg
hi, sory to post this here. How can i change the maximum size of the file being uploaded?? The line below does not seem to help me: Do i need to make some more changes?? php ver i am using is mod_php4-4.1.2 I dont have a php.ini file anywhere!! i just have a file php.ini-dist in /usr/local/et