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

2002-05-17 Thread derick
On 17 May 2002, Den V. Tsopa wrote: I want to apply patch to mbstring extention module. I need access to php4/ext/mbstring. You can post your patch to [EMAIL PROTECTED] too, especially when this is your first patch, this will be appreciated. Derick

[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 derick
Hello, 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 default to the CLI if it exists, and otherwise

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

[PHP-DEV] [PATCH] add lchown as a third parameter to chown and chgrp

2002-05-17 Thread Daniel BODEA
No reaction the first time so this is a repost. Diffed against the stable 4.2.0 source tree. Adds an optional third bool to chown and chgrp that makes use of the lchown system call to change the owner and group of the symlink itself, and not the final target. The default behavior is unchanged.

Re: [PHP-DEV] Safe Mode

2002-05-17 Thread Zeev Suraski
At 04:38 PM 5/13/2002, Jason T. Greene wrote: I do, for two simple reasons: - Misperception about what it's supposed to do - it does NOT secure your environment, people expect it to. That's a 'marketing' issue, but we should realize that these kinds of issues are at least as important

[PHP-DEV] undocumented feature with php.ini?

2002-05-17 Thread Michael Virnstein
Hi... i recently found a msg in php.genereal about the ability to load my own php.ini file, although i'm hosted by a hosting company. I tried it out and yes, it worked. all i had to do was placing a file called php.ini in the document_root of my domain. if i create a file with phpinfo() in it, i

[PHP-DEV] Re: undocumented feature with php.ini?

2002-05-17 Thread Michael Virnstein
forgot the php version i tested it with: 4.0.6 and 4.1.2 Regards Michael Michael Virnstein [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi... i recently found a msg in php.genereal about the ability to load my own php.ini file, although i'm hosted by

[PHP-DEV] Command line compilation under win32

2002-05-17 Thread Wez Furlong
Hey, I'm in the process of getting a more permanent win32 build environment sorted out, and one of the things I'd like to do is avoid the VS IDE as much as possible, and automate builds so that I can test changes that I make under unix. (Perhaps even by rshing to my win32 box). I know it's

[PHP-DEV] CVS Account Request: deucalion

2002-05-17 Thread kwang hei Hur
TO study -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [PATCH] file.c, extended ftruncate

2002-05-17 Thread Faisal Nasim
Hi, I don't have access to a Linux machine at the moment so I tested it out only on Win32/XP. Could somebody please quickly check and commit it...? Addition: ftruncate() can take a string parameter as well... I have added the safe_mode check (actually borrowed from unlink). That {{{ proto

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

2002-05-17 Thread Zeev Suraski
Take a look at the attached script... At 03:58 PM 5/17/2002, Wez Furlong wrote: Hey, I'm in the process of getting a more permanent win32 build environment sorted out, and one of the things I'd like to do is avoid the VS IDE as much as possible, and automate builds so that I can test changes

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

2002-05-17 Thread Edin Kadribasic
I'm in the process of getting a more permanent win32 build environment sorted out, and one of the things I'd like to do is avoid the VS IDE as much as possible, and automate builds so that I can test changes that I make under unix. (Perhaps even by rshing to my win32 box). I know it's

Re: [PHP-DEV] [PATCH] file.c, extended ftruncate

2002-05-17 Thread Faisal Nasim
{{{ proto part updated... Faisal At 07:30 PM 5/17/2002, Faisal Nasim wrote: Hi, I don't have access to a Linux machine at the moment so I tested it out only on Win32/XP. Could somebody please quickly check and commit it...? Addition: ftruncate() can take a string parameter as well... I have

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

2002-05-17 Thread Dan Hardiker
TO study To study what? You are aware you dont need a CVS account to learn PHP, use PHP or do anything with PHP other than develop the core of PHP and edit directly (with an exception for the documentation). Thanks for your interest in PHP and may I suggest you goto http://www.php.net/ to study

[PHP-DEV] PHP 4.2.1 build problems on Solaris (plus fix)

2002-05-17 Thread Joerg Prante
Hi, I got into trouble building PHP 4.2.1 with the option '--with-openssl=[myopenssldir]' on Solaris 2.8. The 'configure' script failed with checking for OpenSSL version... configure failed: openssl 0.9.5 is required even if a correct version of openssl 0.9.6c exists. This is a bug because

Re: [PHP-DEV] PHP 4.2.1 build problems on Solaris (plus fix)

2002-05-17 Thread Edin Kadribasic
There is indeed a bug in autoconf 2.13, but autoconf 2.53 is even buggier. It broke many things for people trying to install 4.2.0. The easy solution for solaris users is to run: CC=gcc ./configure ... That should solve the problem. Edin - Original Message - From: Joerg Prante [EMAIL

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

2002-05-17 Thread Michael Virnstein
there's an anonymous cvs account so you can get your local copy of php. you also can access php cvs via web: http://cvs.php.net you only need an cvs account if you want to do editing, not for studying the php core code. for studying i'd suggest using the web site cvs.php.net or the anonymous cvs

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

2002-05-17 Thread Wez Furlong
Thanks Zeev and Edin; that's just what I needed! --Wez. -- 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/standard head.c

2002-05-17 Thread Rasmus Lerdorf
Modified files: /php4/ext/standardhead.c Log: Only the last cookie was getting set. (You can have more than one Set-Cookie: header, as indicated by http://wp.netscape.com/newsref/std/cookie_spec.html.) - return sapi_add_header(cookie, strlen(cookie), 0); +

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard head.c

2002-05-17 Thread Cliff Woolley
On Fri, 17 May 2002, Rasmus Lerdorf wrote: - return sapi_add_header(cookie, strlen(cookie), 0); + return sapi_add_header_ex(cookie, strlen(cookie), 0, 0 TSRMLS_CC); Yikes, what a suspicious looking patch! This has been wrong all along for all SAPI modules, but works, at least for the

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

2002-05-17 Thread Preston L. Bannister
From: Wez Furlong [mailto:[EMAIL PROTECTED]] I'm in the process of getting a more permanent win32 build environment sorted out, and one of the things I'd like to do is avoid the VS IDE as much as possible, and automate builds so that I can test changes that I make under unix. (Perhaps even by

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

2002-05-17 Thread Frank M. Kromann
Hi, I have been building php binaries for core and extension automaticaly for more than a year, without any problems. I have a set of scripts (.cmd files) that updates my cvs tree, builds core and extensions and then copies the files to my website. The scripts are run each morning a 4am by

[PHP-DEV] Garbage Collection!

2002-05-17 Thread Robert Cummings
Let's say I do: zval *newVar; MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( EG(symbol_table), varKey, newVar ); and then I do: MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( EG(symbol_table), varKey, newVar ); This will overwrite my orignal newVar, however, will the original newVar

Re: [PHP-DEV] Garbage Collection!

2002-05-17 Thread Zeev Suraski
At 08:53 PM 5/17/2002, Robert Cummings wrote: Let's say I do: zval *newVar; MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( EG(symbol_table), varKey, newVar ); and then I do: MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( EG(symbol_table), varKey, newVar ); This will overwrite

Re: [PHP-DEV] Garbage Collection!

2002-05-17 Thread Robert Cummings
Zeev Suraski wrote: At 08:53 PM 5/17/2002, Robert Cummings wrote: Let's say I do: zval *newVar; MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( EG(symbol_table), varKey, newVar ); and then I do: MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( EG(symbol_table), varKey,

Re: [PHP-DEV] Garbage Collection!

2002-05-17 Thread Zeev Suraski
At 09:04 PM 5/17/2002, Robert Cummings wrote: To be honest I'm passing the return_value into my recursion Not sure what you mean by that - return_value is handled by the engine as soon as you return from your function implementation, if that's what you're asking. If you're using it

Re: [PHP-DEV] Garbage Collection!

2002-05-17 Thread Robert Cummings
Zeev Suraski wrote: At 09:04 PM 5/17/2002, Robert Cummings wrote: To be honest I'm passing the return_value into my recursion Not sure what you mean by that - return_value is handled by the engine as soon as you return from your function implementation, if that's what you're asking. If

Re: [PHP-DEV] Garbage Collection!

2002-05-17 Thread Zeev Suraski
If you're adding elements to a hash you created using array_init(), and you're using the standard macros (which apparently you are) - then yes, the engine will take care of garbage collection for you. At 09:27 PM 5/17/2002, Robert Cummings wrote: Zeev Suraski wrote: At 09:04 PM 5/17/2002,

Re: [PHP-DEV] Garbage Collection!

2002-05-17 Thread Robert Cummings
Zeev Suraski wrote: If you're adding elements to a hash you created using array_init(), and you're using the standard macros (which apparently you are) - then yes, the engine will take care of garbage collection for you. Thanks a lot, this is what I needed to know, I guess somehow I have

Re: [PHP-DEV] [PATCH] add lchown as a third parameter to chown and chgrp

2002-05-17 Thread Andi Gutmans
Seems fine to me. Andi At 12:41 17/05/2002 +0200, Daniel BODEA wrote: No reaction the first time so this is a repost. Diffed against the stable 4.2.0 source tree. Adds an optional third bool to chown and chgrp that makes use of the lchown system call to change the owner and group of the

[PHP-DEV] cant compile 4.2.1 on FreeBSD with domxml support

2002-05-17 Thread Rob Richards
I am trying to install 4.2.1 on FreeBSD 4.4 STABLE. It continues to fail during make in domxml with the following: Making all in domxml /bin/sh /usr/ports/www/mod_php4/work/php-4.2.1/libtool --silent --mode=compile c -I. -I/usr/ports/www/mod_php4/work/php-4.2.1/ext/domxml -I/usr/ports/www/

Re: [PHP-DEV] cant compile 4.2.1 on FreeBSD with domxml support

2002-05-17 Thread Markus Fischer
What version of libxml2 ? Needs to be = 2.4.14 On Fri, May 17, 2002 at 06:11:42PM -0400, Rob Richards wrote : I am trying to install 4.2.1 on FreeBSD 4.4 STABLE. It continues to fail during make in domxml with the following: Making all in domxml /bin/sh

Re: [PHP-DEV] cant compile 4.2.1 on FreeBSD with domxml support

2002-05-17 Thread Rob Richards
Thanks, That was it. I was running 2.4.3 on the BSD machine. Just upgraded to 2.4.21 and it compiles fine. Appreciate the help Rob - Original Message - From: Markus Fischer [EMAIL PROTECTED] To: Rob Richards [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, May 17, 2002 6:17 PM

Re: [PHP-DEV] cant compile 4.2.1 on FreeBSD with domxml support

2002-05-17 Thread Christian Stocker
On Sat, 18 May 2002, Markus Fischer wrote: What version of libxml2 ? Needs to be = 2.4.14 yep. php 4.2.1 doesn't check for the right version (it only checks for 2.4.2, but it needs functions implemented since 2.4.14). this is fixed in CVS (HEAD and PHP_4_2_0 branch) chregu -- PHP