[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Ivan Ristic wrote: How is a persistent database connection handled then? e.g. in the mysql module? Apache 1.x pre-creates a number of server processes. Each process handles a certain number of requests (one at a time), and then dies. It is then replaced with an another server

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Maróy Ákos
Ivan Ristic wrote: From the web serving point of view it isn't. Since Apache usually interfaces to all kinds of modules and programs, the fact that processes die naturally from time to time helps remove cumulative errors. IMHO this is a last-resort safeguard to prevent a system from

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Ivan Ristic
From the PHP point of view, you can get problems with persistent database connections on a very high load site, that's true. But that's about the only problem. Sure, you can't build a persistent storage of information in the server but that's a minor issue. It's not a minor issue.

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Maróy Ákos
Ivan Ristic wrote: Right, but you can still use shared memory, or, you can store persistent objects onto the filesystem. We've done the later with satisfactory results. Point taken. But this only allows to share resources that can be copied into and from IPC shared memory. Some resources

Re: [PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Derick Rethans
On Thu, 5 Dec 2002, Maróy Ákos wrote: Ivan Ristic wrote: Right, but you can still use shared memory, or, you can store persistent objects onto the filesystem. We've done the later with satisfactory results. Point taken. But this only allows to share resources that can be copied

Re: [PHP-DEV] OCI patch

2002-12-05 Thread Abdul-Kareem Abo-Namous
ahem...yes i'd agree on that...i changed it to something more meaningful and attached a new patch..ah the switching between c and php programming..;) the patch is already being used for 2,5 months on an extremly big, extremly heavy-load 24x7 platform here at hp europe. basically all european hp

Re: [PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Maróy Ákos
Derick Rethans wrote: Have a look at www.vl-srm.net, and more even the article about it @ http://www.vl-srm.net/doc/articles/php-almanac-2002.php (the part about Bananas might be th emost relevant thing). Thanks for the info. Though I could implement a similar deamon in java, and call it

Re: [PHP-DEV] New SNMP function names

2002-12-05 Thread Derick Rethans
On Thu, 5 Dec 2002, Harrie Hazewinkel wrote: On Wednesday, December 4, 2002, at 02:49 PM, Derick Rethans wrote: Hello, while browsing the CVS I found that the following functions were added to the CVS recently: + PHP_FE(snmpv3get, NULL) + PHP_FE(snmpv3walk, NULL) +

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Ivan Ristic
There is a servlet which accepts requests and uses native code from libphp4.so to execute them. At the same time, the Java extension is used to provide access to Java objects from PHP itself. but the ext/java as it is would not be suitable, as it would spawn new JVMs every once in a

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Ivan Ristic wrote: No, I have been told (by someone, I do not remember) that if you use PHP as a servlet ext/java would use the same JVM. I haven't check to see whether that is correct. sound good, I'll take a look. Akos -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] New SNMP function names

2002-12-05 Thread Harrie Hazewinkel
On Thursday, December 5, 2002, at 12:17 PM, Derick Rethans wrote: On Thu, 5 Dec 2002, Harrie Hazewinkel wrote: On Wednesday, December 4, 2002, at 02:49 PM, Derick Rethans wrote: Hello, while browsing the CVS I found that the following functions were added to the CVS recently: +

[PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread John Coggeshall
Here's the patch (again, this makes all getimagesize() failures return false instead of some of them returning NULL, and turns off error reporting if the file fails to open. John --- image.org.c Thu Dec 5 06:06:48 2002 +++ image.c Wed Dec 4 22:54:16 2002 @@ -908,7 +908,7 @@

Re: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread Marcus Börger
The return false part is ok but why not showing the warnings from fopen? marcus At 13:16 05.12.2002, John Coggeshall wrote: Here's the patch (again, this makes all getimagesize() failures return false instead of some of them returning NULL, and turns off error reporting if the file fails to

RE: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread John Coggeshall
The return false part is ok but why not showing the warnings from fopen? Well, the issue here is in the bugreport... It's not an issue of PHP throwing a warning when a file doesn't exist and is attempted to be opened, but it was throwing the error if the filesize was zero.. I could see that

RE: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread Marcus Börger
At 13:34 05.12.2002, John Coggeshall wrote: The return false part is ok but why not showing the warnings from fopen? Well, the issue here is in the bugreport... It's not an issue of PHP throwing a warning when a file doesn't exist and is attempted to be opened, but it was throwing the error if

Re: [PHP-DEV] OCI patch

2002-12-05 Thread Thies C. Arntzen
On Thu, Dec 05, 2002 at 11:26:28AM +0100, Abdul-Kareem Abo-Namous wrote: ahem...yes i'd agree on that...i changed it to something more meaningful and attached a new patch..ah the switching between c and php programming..;) the patch is already being used for 2,5 months on an extremly big,

RE: [PHP-DEV] New SNMP function names

2002-12-05 Thread John Coggeshall
For what it's worth, I am in agreement with Derick... Consistency is important.. Besides... A rose is still a rose, even if it's called sweet_smelling_flower ;) OK, I will admit the '_' is then OK, but I rather do not use it in this case, since I would like to use that for a more session

Re: [PHP-DEV] New SNMP function names

2002-12-05 Thread Derick Rethans
On Thu, 5 Dec 2002, Harrie Hazewinkel wrote: [1] Function names for user-level functions should be enclosed with in the PHP_FUNCTION() macro. They should be in lowercase, with words underscore delimited, with care taken to minimize the letter count. OK, I will admit the '_' is

[PHP-DEV] CVS Account Request: abonamous

2002-12-05 Thread Abdul-Kareem Abo-Namous
ext/OCI8 patches -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: persistent java virtual machine under PHP

2002-12-05 Thread Akos Maroy
Ivan Ristic wrote: No, I have been told (by someone, I do not remember) that if you use PHP as a servlet ext/java would use the same JVM. I haven't check to see whether that is correct. My experiences: using php-4.2.3, calling plain php pages from Tomcat seem to be OK. But when calling

[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread Derick Rethans
On Thu, 5 Dec 2002, Tit Black Petric wrote: From my point of view accessing a file should result in an error if the file cannot be opened or in case of GetImageSize() a file operation cannot be executed. For example i would expect GetImageSize() to show an error if the information

[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread Marcus Börger
At 15:10 05.12.2002, Derick Rethans wrote: On Thu, 5 Dec 2002, Tit Black Petric wrote: From my point of view accessing a file should result in an error if the file cannot be opened or in case of GetImageSize() a file operation cannot be executed. For example i would expect

[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize()returning null instead of false

2002-12-05 Thread Derick Rethans
On Thu, 5 Dec 2002, Marcus Börger wrote: At 15:10 05.12.2002, Derick Rethans wrote: On Thu, 5 Dec 2002, Tit Black Petric wrote: From my point of view accessing a file should result in an error if the file cannot be opened or in case of GetImageSize() a file operation cannot be

[PHP-DEV] register_shutdown_function = register_offline_function

2002-12-05 Thread Brian Moon
Has the new function been created yet and if not when? We have just spent 2 weeks investigating why our pages started dragging to find out that register_shutdown_function is BROKE. I am a little discouraged from what I have read on this. It seems that BC is only a concern when the right person

RE: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread Mike Robinson
Marcus Börger wrote: From my point of view accessing a file should result in an error if the file cannot be opened or in case of GetImageSize() a file operation cannot be executed. For example i would expect GetImageSize() to show an error if the information cannot be retrieved due to

Re: [PHP-DEV] register_shutdown_function = register_offline_function

2002-12-05 Thread Brian Moon
Ok, I reopened the bug. It fails with latest CVS. [root@dealnews php4-200212051430]# ./sapi/cgi/php-cgi csv.php Content-type: text/html X-Powered-By: PHP/4.4.0-dev Array ( [0] = 6 [1] = 7 [2] = 8 [3] = line1 ) Segmentation fault Brian Moon dealnews.com - Original Message

Re: [PHP-DEV] register_shutdown_function = register_offline_function

2002-12-05 Thread Ilia A.
Known issue, the original patch for this problem had to be reveted since it broke the handling of mulit-line CVS fields that are quoted. I am now working on a more permanent fix. Ilia On December 5, 2002 11:39 am, Brian Moon wrote: Ok, I reopened the bug. It fails with latest CVS.

[PHP-DEV] fgetcsv problems was: register_shutdown_function = register_offline_function

2002-12-05 Thread Brian Moon
Well, this goes back to my original problem with fgetcsv then. I can not find another application that will accept a CSV file that will allow mutliline quoted fields. They stop at the newline regardless. Brian Moon dealnews.com - Original Message - From: Ilia A. [EMAIL PROTECTED] To:

[PHP-DEV] sapi/servlet configuration error

2002-12-05 Thread Ray Hunter
I am trying to configure php with the servlet and i am getting the following errors: /home/rhunter/src/php4/sapi/servlet/servlet.c: In function `Java_net_php_servlet_startup': /home/rhunter/src/php4/sapi/servlet/servlet.c:261: warning: passing arg 2 of `php_module_startup' from incompatible

Re: [PHP-DEV] Java extension fixes

2002-12-05 Thread Tony J. White
On Wed, 4 Dec 2002, Ray Hunter wrote: Will this fix the errors that occur with running PHP as a servlet in tomcat? Basically, if you were using ini_set() anywhere, or using .htaccess files to change any php settings, this patch should prevent errors/crashing. -Tony -- Ray On Wed,

Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-05 Thread Tony J. White
On Wed, 4 Dec 2002, [ISO-8859-2] Maróy Ákos wrote: What happens is that the function jvm_create() gets called regularly when requesting new pages using the Java extension, from the function java_call_function_handler(): if (!JG(jenv)) jvm_create(TSRMLS_C); Actually, the JVM is unloaded

Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-05 Thread Mary kos
Tony J. White wrote: Actually, the JVM is unloaded by php. In the latest CVS the code from destroy_jvm() has been removed that tried to dlclose() the JVM. This was done because it is impossible to dlclose() a JVM because DestroyJavaVM() is broken in all JNI implementations. I see. But if you

[PHP-DEV] Java Extension Build Method

2002-12-05 Thread Tony J. White
The /ext/java module is an odd duck compared to other php extentions in that it uses DL_LOAD() to load libjava instead of being linked and that it is always built as a module (.so) instead of being built static into php. I've spent some time over the past couple weeks investigating why this is

Re: [PHP-DEV] sapi/servlet configuration error

2002-12-05 Thread Tony J. White
On Thu, 5 Dec 2002, Ray Hunter wrote: make: *** No rule to make target `sapi/servlet/java.c', needed by `sapi/servlet/java.lo'. Stop. It looks like the sapi/servlet/Makefile.frag is not being added to your Makefile. Can you verify that there is no line in your main Makefile that starts with

Re: [PHP-DEV] sapi/servlet configuration error

2002-12-05 Thread Ray Hunter
This is the line in my Makefile: sapi/servlet/java.lo: sapi/servlet/java.c $(LIBTOOL) --mode=compile $(CC) -Isapi/servlet/ -I/home/rhunter/src/php4/sapi/servlet/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic -c sapi/servlet/java.c -o sapi/servlet/java.lo Is that correct?

Re: [PHP-DEV] sapi/servlet configuration error

2002-12-05 Thread Tony J. White
On Thu, 5 Dec 2002, Ray Hunter wrote: This is the line in my Makefile: sapi/servlet/java.lo: sapi/servlet/java.c $(LIBTOOL) --mode=compile $(CC) -Isapi/servlet/ -I/home/rhunter/src/php4/sapi/servlet/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic -c sapi/servlet/java.c

[PHP-DEV] Problem with commit

2002-12-05 Thread Marcus Börger
There seems to be a problem with CVS server: cvs -z3 -q commit -m php_error - php_error_docref xml.c Checking in xml.c; /repository/php4/ext/xml/xml.c,v -- xml.c new revision: 1.112; previous revision: 1.111 done Bad response from SMTP -- 553 (2002/12/04) Open Proxy: http(3128) Mailing the

Re: [PHP-DEV] Problem with commit

2002-12-05 Thread Sara Golemon
And it's not just Marcus, I got the same error commiting to phpdoc five minutes ago... The commit DID go through, just not the notification. -Pollita There seems to be a problem with CVS server: cvs -z3 -q commit -m php_error - php_error_docref xml.c Checking in xml.c;

RE: [PHP-DEV] Problem with commit

2002-12-05 Thread James Cox
um.. ok.. i'm looking into a few issues with cvs right now... could you send me the full content of any header etc you might have received, anything that suggests what triggered that error... -- james -Original Message- From: Marcus Borger [mailto:[EMAIL PROTECTED]] Sent: Thursday,

Re: [PHP-DEV] Problem with commit

2002-12-05 Thread Marcus Börger
At 23:20 05.12.2002, Sara Golemon wrote: And it's not just Marcus, I got the same error commiting to phpdoc five minutes ago... The commit DID go through, just not the notification. -Pollita Same for me. Commit is ok and simply no email. Nothing more to see. marcus There seems to be a

[PHP-DEV] test, please disregard.

2002-12-05 Thread James Cox
-- James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: sapi/fastcgi

2002-12-05 Thread Shane Caraveo
works fine for me without exiting, under mod_fastcgi on win32 and osx and my iis/fastcgi. There was a problem with exiting after each request on windows, but I fixed that a couple weeks ago. Shane Harald Radi wrote: i wasn't able to run it succesfully on windows. i can compile it and the

Re: [PHP-DEV] sapi/fastcgi

2002-12-05 Thread Shane Caraveo
sapi/fastcgi should be deprecated. Sebastian Bergmann wrote: What happens to sapi/fastcgi, now that we have FastCGI support in sapi/cgi? IMHO, it should be removed for PHP 4.3.0 already. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit:

Re: [PHP-DEV] fgetcsv problems was: register_shutdown_function = register_offline_function

2002-12-05 Thread Edin Kadribasic
Well, this goes back to my original problem with fgetcsv then. I can not find another application that will accept a CSV file that will allow mutliline quoted fields. They stop at the newline regardless. Now that's not true. Excel and other spreadsheet programs happily accept them. They also

[PHP-DEV] Core files from apache/PHP without -X

2002-12-05 Thread Steven Roussey
Hi all, I need someone's help. I am trying desperately to find a segfault bug in PHP's output compression. I can not make it happen on a test server as it is just me hitting the site and what I do doesn't cause a segfault. So running it in gdb doesn't work. And using the httpd -X option to create

Re: [PHP-DEV] Java Extension Build Method

2002-12-05 Thread Edin Kadribasic
Under the heading Build java module with -ljava you mention that there were crashing problems because libjava.so was linked agains pthread and apache wasn't. This is not uncommon problem for other libraries such as oci8. You can link apache with pthread which will prevent the segfaults. See oci8

Re: [PHP-DEV] RE: [PHP-DOC] #20822 [Com]: getimagesize() returning null instead of false

2002-12-05 Thread Rick Widmer
At 03:02 PM 12/5/02 +0100, Tit \Black\ Petric wrote: From my point of view accessing a file should result in an error if the file cannot be opened or in case of GetImageSize() a file operation cannot be executed. For example i would expect GetImageSize() to show an error if the

Re: [PHP-DEV] sapi/fastcgi

2002-12-05 Thread Sebastian Bergmann
Shane Caraveo wrote: sapi/fastcgi should be deprecated. Done, Sebastian -- 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

Re: [PHP-DEV] sapi/servlet configuration error

2002-12-05 Thread Sebastian Bergmann
Ray Hunter wrote: Does anyone have an idea about what i need to do to fix this? I just tested sapi/servlet with Tomcat 4.1.12 on Windows and the segfaults I experienced prior to the Tony's patch are still there: An unexpected exception has been detected in native code outside the VM.