[PHP-DEV] Re[2]: #24037 [Opn-Csd]: Compile Failure with mnoGoSearch 3.2.10(Development)

2003-06-06 Thread Sergey Kartashoff
Hi!

 Php-4.3.2 contains old mnogosearch extension.
 Please use cvs sources or download latest mnogosearch-php-extension
 from mnogosearch site.

DR Is the new extension in the PHP 5 HEAD branch?

Yes.

-- 
Regards, Sergey aka gluke.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] PHP

2003-06-06 Thread José António Rodrigues
Hi!

I'm a program developer and i use php to develop lots of things to the web!
The thing is that another day a was installing the new version of php on my 
school pc (M$ Windows 2000) and i notest that you don't have the script to 
automatically configure php with apache!I had no problems finding how to's 
in the net but all my school mates wanted to install php in home and they 
were always asking how to, how to and i developed a litle program to 
automatically configure it!
The program is very simple and if you want i can give to you so you can 
include in your windows versions!If fyou want i'll send it to you and make 
some improvements to fit your needs!

jose rodrigues

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c

2003-06-06 Thread Sebastian Bergmann
Zeev Suraski wrote:
 It does look like a voodoo fix.  What's crashing exactly?

  Zeev,

  Stanislav already looked into this and the segfault related to
  GLOBAL_CONSTANTS_TABLE not beeing malloc()ed in ZTS mode is now gone.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

 http://www.professionelle-softwareentwicklung-mit-php5.de/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] php4isapi

2003-06-06 Thread john
This may be the wrong place to post this, so if it is, point me in the
right direction.

I'm writing an application that will use the php4isapi interface to run an
application in Windows 2000, and I'm running into a couple of problems. 
First, php4isapi doesn't ask the hosting server for PATH_INFO, nor does it
try to figure it out.  I realize that IIS doesn't do it right, but
shouldn't we still give it a little bit of credit and ask?  I fixed it
myself, just added PATH_INFO to the isapi_server_variable_names array,
but I'm sure that there's probably a better way to fix it.

Second, I'm having trouble with sessions.  IIS using the same php4isapi
module that I'm using seems to do fine, but when my interface uses the php
module, the sessions are created, and on the first request, all the
correct things are registered, but the next request cannot modify the
session.  The modified date on the file is changed, but any new variables
that should have been registered or midification are not saved.

For more information on what I'm doing, I'm writing an application that
would let a php application be run on the desktop without a webserver. 
I'm using an IE activex control to display the pages generated by php, and
I'm writing a mini SAPI implementation to interface with php.  Thanks for
the hard work.

John LeSueur



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Quick question...

2003-06-06 Thread Sterling Hughes
Yep.

-Sterling

On Thu, 2003-06-05 at 17:01, Lars Torben Wilson wrote:
 Just wanted to check that I'm reading this right before committing
 to the docs: does print() return 1, always? The following seems to
 indicate so:
 
 case ZEND_PRINT:
   zend_print_variable(get_zval_ptr(EX(opline)-op1, EX(Ts), 
 EG(free_op1), BP_VAR_R));
   EX(Ts)[EX(opline)-result.u.var].tmp_var.value.lval = 1;
   EX(Ts)[EX(opline)-result.u.var].tmp_var.type = IS_LONG;
   FREE_OP(EX(Ts), EX(opline)-op1, EG(free_op1));
   NEXT_OPCODE();
 
 
 Thanks,
 
 Torben
 
 -- 
  Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
  http://www.thebuttlesschaps.com  http://www.inflatableeye.com
  http://www.hybrid17.com  http://www.themainonmain.com
  - Boycott Starbucks!  http://www.haidabuckscafe.com -
 
-- 
Whether you think you can or think you can't -- you are right. 
- Henry Ford

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] [PATCH] upload progress metter

2003-06-06 Thread Doru Petrescu

Hi,

 To make a long story short, I needed an upload progress metter, so the
users will something while their huge files are uploaded to the server. I
searched the net but only found for ASP, so I wrote one.
 Unfortunatly PHP needs a little patch to be willing to do this ...

 Here is how it works:
1. apply patch to php and recompile php (and apache if needed)
2. add something like this to http.conf

 #for php-upload-progress-bar
 Directory /www/htdocs/upload
 php_value upload_metter 1
 php_value upload_metter_dir /tmp/uploadbar
 /Directory

  - This will activate the progress metter for /upload
  - And will tell it to write progress informations to /tmp/uploadbar

3. mkdir /tmp/uploadbar; chmod 777 /tmp/uploadbar
   I have to say that 0777 and /tmp are not the best choises from a
   security point of view. you should find a better place!

4. copy the demo scripts to /upload directory
5. point your browser to the index.php script. upload some files. enjoy!


 Here is how it really works:
1. index.php will generate and uniq ID for each upload. This ID will be
used to track the progress and report it.
2. a special field named 'UPLOAD_METTER_ID' is used to store this ID. make
sure this field is BEFORE any 'file' fields. put it at the begining of the
form!
3. onSubmit()-ing the form a small window will open where the progress.php
will display the actual progress bar.
4. php will check the value of 'upload_metter' and 'upload_metter_dir'
configuration options and the presence and value of 'UPLOAD_METTER_ID'
field
5. the progress file is stored in the directory named by 'upload_metter_dir'
   and the vlaue of UPLOAD_METTER_ID field is used as the name of the file
6. progress information is updated once a second by the php engine
7. script progress.php will use the ID field which it receives as a
parameter to locate the associated progress-file and read progress
information from it. then generate the little proggress bar
8. the progress bar will 'refresh' about once a second, depending on how
fast the network is going
9. when upload is completed, the progress.php script will remove the
progress file, and close the pop-up window.


NOTE: there is a good chance that this progress files will not be deleted
from various reasons (client don't have JS activated, or it closes the
popup while data is still uploaded, etc...), so there is a need to
periodically cleanup the directory of old files.


What the PATCH does:
- adding 2 new cinfiguration options to PHP: upload_metter and upload_metter_dir
- in rfc1867.c: changes rfc1867_post_handler() to make some calls to a
newly defined function that will update the progress metter:
update_progress_metter()
- in turn it calls update_progress_metter_file(), trying its best not to
update the file more than once a second.

I have tested it with php-4.2.3 and 4.3.2. atch for php-4.3.2 is attached.
a patch for 4.2.3 is also available. basically is the same thing.

the rest of the files and a live demo can be found here: http://pdoru.from.ro/


Please let me know if you have any problems/suggestions :-)


Best regards,
Doru Petrescu
Senior Software Engineer
Astral Telecom Bucuresti




---
diff -rubB orig/php-4.3.2/main/main.c php-4.3.2/main/main.c
--- orig/php-4.3.2/main/main.c  Thu May 22 01:54:38 2003
+++ php-4.3.2/main/main.c   Thu Jun  5 22:58:46 2003
@@ -345,7 +345,9 @@
STD_PHP_INI_BOOLEAN(file_uploads, 1,
PHP_INI_SYSTEM, OnUpdateBool,   file_uploads,  
 php_core_globals,   core_globals)
STD_PHP_INI_ENTRY(upload_max_filesize,2M,   
PHP_INI_SYSTEM|PHP_INI_PERDIR,  OnUpdateInt,
upload_max_filesize,php_core_globals,   core_globals)
STD_PHP_INI_ENTRY(post_max_size,  8M,   
PHP_INI_SYSTEM|PHP_INI_PERDIR,  OnUpdateInt,post_max_size, 
 sapi_globals_struct,sapi_globals)
-   STD_PHP_INI_ENTRY(upload_tmp_dir, NULL,   
PHP_INI_SYSTEM, OnUpdateStringUnempty,  upload_tmp_dir, 
php_core_globals,   core_globals)
+   STD_PHP_INI_ENTRY(upload_tmp_dir, NULL,   
PHP_INI_ALL,OnUpdateStringUnempty,  upload_tmp_dir,
 php_core_globals,   core_globals)
+   STD_PHP_INI_ENTRY(upload_metter,  0,
PHP_INI_ALL,OnUpdateBool,   upload_metter, 
 php_core_globals,   core_globals)
+   STD_PHP_INI_ENTRY(upload_metter_dir,  NULL,   
PHP_INI_ALL,OnUpdateStringUnempty,  upload_metter_dir, 
 php_core_globals,   core_globals)

STD_PHP_INI_ENTRY(user_dir,   NULL,   
PHP_INI_SYSTEM, 

Re: [PHP-DEV] cvs: php4/etc/dom

2003-06-06 Thread Rob Richards
We are working on getting the xml based extensions to interoperate. One of
the reason the technologies are broken out into seperate extensions. It is
meant to fit in with the plan that has been talked about.

Rob

From: Andrei Zmievski


 How does this relate to the unified XML handling issue we've been
 debating?

 -Andrei



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DEV] [PATCH] upload progress metter

2003-06-06 Thread David Enderson
I also developed upload status capability for my company that works very
similarly to yours.  I am currently working on integrating the changes I
made into a patch for 4.3.2 for members of this list to evaluate (I
originally made the upgrade to 4.1.2).

I see you came to the same conclusion I did, that the easiest way to
pass information seemed to be through the use of temporary files.  I was
hoping that once I submitted my patch that someone on this list might
have a better suggestion like direction on using shared memory or
something.

--David

-=+=-
David Enderson
Programmer
Digital IMS
402.437.0137
[EMAIL PROTECTED]


 Hi,
 
  To make a long story short, I needed an upload progress 
 metter, so the users will something while their huge files 
 are uploaded to the server. I searched the net but only found 
 for ASP, so I wrote one.  Unfortunatly PHP needs a little 
 patch to be willing to do this ...
 
  Here is how it works:
 1. apply patch to php and recompile php (and apache if 
 needed) 2. add something like this to http.conf
 
  #for php-upload-progress-bar
  Directory /www/htdocs/upload
  php_value upload_metter 1
  php_value upload_metter_dir /tmp/uploadbar
  /Directory
 
   - This will activate the progress metter for /upload
   - And will tell it to write progress informations to /tmp/uploadbar
 
 3. mkdir /tmp/uploadbar; chmod 777 /tmp/uploadbar
I have to say that 0777 and /tmp are not the best choises from a
security point of view. you should find a better place!
 
 4. copy the demo scripts to /upload directory
 5. point your browser to the index.php script. upload some 
 files. enjoy!
 
 
  Here is how it really works:
 1. index.php will generate and uniq ID for each upload. This 
 ID will be used to track the progress and report it. 2. a 
 special field named 'UPLOAD_METTER_ID' is used to store this 
 ID. make sure this field is BEFORE any 'file' fields. put it 
 at the begining of the form! 3. onSubmit()-ing the form a 
 small window will open where the progress.php will display 
 the actual progress bar. 4. php will check the value of 
 'upload_metter' and 'upload_metter_dir' configuration options 
 and the presence and value of 'UPLOAD_METTER_ID' field 5. the 
 progress file is stored in the directory named by 'upload_metter_dir'
and the vlaue of UPLOAD_METTER_ID field is used as the 
 name of the file 6. progress information is updated once a 
 second by the php engine 7. script progress.php will use the 
 ID field which it receives as a parameter to locate the 
 associated progress-file and read progress information from 
 it. then generate the little proggress bar 8. the progress 
 bar will 'refresh' about once a second, depending on how fast 
 the network is going 9. when upload is completed, the 
 progress.php script will remove the progress file, and close 
 the pop-up window.
 
 
 NOTE: there is a good chance that this progress files will 
 not be deleted from various reasons (client don't have JS 
 activated, or it closes the popup while data is still 
 uploaded, etc...), so there is a need to periodically cleanup 
 the directory of old files.
 
 
 What the PATCH does:
 - adding 2 new cinfiguration options to PHP: upload_metter 
 and upload_metter_dir
 - in rfc1867.c: changes rfc1867_post_handler() to make some 
 calls to a newly defined function that will update the 
 progress metter:
 update_progress_metter()
 - in turn it calls update_progress_metter_file(), trying its 
 best not to update the file more than once a second.
 
 I have tested it with php-4.2.3 and 4.3.2. atch for php-4.3.2 
 is attached. a patch for 4.2.3 is also available. basically 
 is the same thing.
 
 the rest of the files and a live demo can be found here: 
 http://pdoru.from.ro/
 
 
 Please let me know if you have any problems/suggestions :-)
 
 
 Best regards,
 Doru Petrescu
 Senior Software Engineer
 Astral Telecom Bucuresti
 
 
 
 
 --
 -
 diff -rubB orig/php-4.3.2/main/main.c php-4.3.2/main/main.c
 --- orig/php-4.3.2/main/main.cThu May 22 01:54:38 2003
 +++ php-4.3.2/main/main.c Thu Jun  5 22:58:46 2003
 @@ -345,7 +345,9 @@
   STD_PHP_INI_BOOLEAN(file_uploads, 
 1,  PHP_INI_SYSTEM, OnUpdateBool,   
   file_uploads,   php_core_globals,   
 core_globals)
   STD_PHP_INI_ENTRY(upload_max_filesize,2M,   
   PHP_INI_SYSTEM|PHP_INI_PERDIR,  OnUpdateInt,
   upload_max_filesize,php_core_globals,   
 core_globals)
   STD_PHP_INI_ENTRY(post_max_size,  
 8M, PHP_INI_SYSTEM|PHP_INI_PERDIR,  
 OnUpdateInt,  post_max_size,  
 sapi_globals_struct,sapi_globals)
 - STD_PHP_INI_ENTRY(upload_tmp_dir, 
 NULL, PHP_INI_SYSTEM, OnUpdateStringUnempty,  
 upload_tmp_dir,   

[PHP-DEV] CVS Account Request: jamuel

2003-06-06 Thread Jamuel P. Starkey
Extend SNMP capabilities/features.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: #24037 [Opn-Csd]: Compile Failure with mnoGoSearch3.2.10(Development)

2003-06-06 Thread Jani Taskinen
On Thu, 5 Jun 2003, Sergey Kartashoff wrote:

Hi!

Thursday, June 5, 2003, 5:30:55 PM, you wrote:

DR On Thu, 5 Jun 2003 [EMAIL PROTECTED] wrote:

 Php-4.3.2 contains old mnogosearch extension.
 Please use cvs sources or download latest mnogosearch-php-extension
 from mnogosearch site.

DR Is the new extension in the PHP 5 HEAD branch?

yes

Are you going to MFH it to PHP_4_3 branch???

--Jani



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP-DEV] Re: #24037 [Opn-Csd]: Compile Failure with mnoGoSearch 3.2.10(Development)

2003-06-06 Thread Sergey Kartashoff
Hi!

 Php-4.3.2 contains old mnogosearch extension.
 Please use cvs sources or download latest mnogosearch-php-extension
 from mnogosearch site.

DR Is the new extension in the PHP 5 HEAD branch?

yes

JT Are you going to MFH it to PHP_4_3 branch???

I could, but last time (about year ago) i asked core developers of
updating not the HEAD branch with the fixes and new mnogosearch features .
I received an answer that i should commit in releases branch the really small
bugfixes only. And they not granted me such commits.
So i always updating HEAD branch since that time.

-- 
Regards, Sergey aka gluke.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re[3]: [PHP-DEV] Re: #24037 [Opn-Csd]: Compile Failure with mnoGoSearch 3.2.10(Development)

2003-06-06 Thread Sergey Kartashoff
Hi!

JT You should move it to PECL. I really don't see much sense in
JT keeping it in php5/php4 since you already suggest people to download
JT the extension from your site anyway..

If you permit me to update 4.3 branch i will update it to compile with
latest versions of mnogosearch ;)

Okay, the second way is to use PECL, but i dont know anything about it
for a now. Could you please give me some tips of where i could read
about it (i mean detailed description, extension porting guide, usage
and etc ?).

May i leave mnogosearch extension in php source tree for a some time
and decide which way to choose in the future ? (i am planning to go at
vacation soon, and dont know how much time i will spend at PHP this
summer)

-- 
Regards, Sergey aka gluke.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Re: #24005 [Opn-Asn]: Distributions version of mnoGoSearch extension does not work with MySQL 4

2003-06-06 Thread Sergey Kartashoff
Hi!

Friday, June 6, 2003, 2:32:33 PM, you wrote:

spn [EMAIL PROTECTED] you have just been assigned to this bug by [EMAIL PROTECTED]

spn ./configure --with-mysql=/usr --with-gd --with-ttf --enable-track-vars
spn --with-apxs2=/usr/local/apache2/bin/apxs --with-mnogosearch
spn --with-jpeg-dir=/root/source/jpeg-6b/ 
spn --with-png-dir=/usr/local/lib/libpng.a
spn --with-zlib-dir=/usr/local/lib/zlib.a
spn --with-tiff-dir=/usr/local/lib/libtiff.a --with-mnogosearch 

spn It failed complaining about ext/mysql/phpmysql.c: undefined reference
spn to mysql_create_db. I downloaded the latest php-extension from
spn www.mnogosearch.org (mnogosearch-php-extension-1.7.3.tar.gz) and
spn replaced the contents of ext/mnogosearch with the files in this archive
spn and it all worked a treat (with a quick edit to remove the second
spn reference to -lmysqlclient in the EXTRA_LIBS line the PHP Makefile...
spn but I think that mnoGo's fault!)

spn Sergey, deal with this.

Could you please help me with this ?
Could it be because of twice --with-mnogosearch string in configure ?
I thought that error could be caused by buggy linker, since gcc does
support multiple references to the same library. The second reference
to libmysqlclient come from udmconfig script while configuring php.
It return compiler swithes that used to compile mnogosearch.
E.g. -lmysqlclient -L/usr. It worked for many users for years,
and i really dont understand how to fix this at now.

-- 
Regards, Sergey aka gluke.


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re[3]: [PHP-DEV] Re: #24037 [Opn-Csd]: Compile Failure withmnoGoSearch 3.2.10(Development)

2003-06-06 Thread Jani Taskinen
On Fri, 6 Jun 2003, Sergey Kartashoff wrote:

Hi!

JT You should move it to PECL. I really don't see much sense in
JT keeping it in php5/php4 since you already suggest people to download
JT the extension from your site anyway..

If you permit me to update 4.3 branch i will update it to compile with
latest versions of mnogosearch ;)
 
Feel free to do that. It can't really break anything, AFAICT.

Okay, the second way is to use PECL, but i dont know anything about it
for a now. Could you please give me some tips of where i could read
about it (i mean detailed description, extension porting guide, usage
and etc ?).

http://pear.php.net/manual/en/pecl.php

--Jani



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: #24005 [Opn-Asn]: Distributions version ofmnoGoSearch extension does not work with MySQL 4

2003-06-06 Thread Jani Taskinen
On Fri, 6 Jun 2003, Sergey Kartashoff wrote:

spn It failed complaining about ext/mysql/phpmysql.c: undefined reference
spn to mysql_create_db. I downloaded the latest php-extension from
spn www.mnogosearch.org (mnogosearch-php-extension-1.7.3.tar.gz) and
spn replaced the contents of ext/mnogosearch with the files in this archive
spn and it all worked a treat (with a quick edit to remove the second
spn reference to -lmysqlclient in the EXTRA_LIBS line the PHP Makefile...
spn but I think that mnoGo's fault!)

Could it be because of twice --with-mnogosearch string in configure ?

No.

 I thought that error could be
caused by buggy linker, since gcc does support multiple references to the
same library. The second reference to libmysqlclient come from udmconfig
script while configuring php. It return compiler swithes that used to
compile mnogosearch. E.g. -lmysqlclient -L/usr. It worked for many users

It should return the -L/path/to/dir where it thinks libmysqlclient is.
Doesn't it?

--Jani



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] CVS-ID change possible

2003-06-06 Thread Sebastian Picklum
Hello!

I suprisingly found out that my CVS-ID (spic) is a very rude American word
for spanish speaking people.
Due to my activities in the user-contributed-notes system, my CVS-ID is in
the subject-line
of many reject-messages (which may not amuse some of our
notes-contributors).

Is there any possibility to change my CVS-ID to sp?

Kind regards

Sebastian Picklum

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php