[PHP-DEV] Re: MySQL Dump
use phpMyAdmin ;-). On Tue, 18 Feb 2003 23:31:20 +0100 [EMAIL PROTECTED] (Matteo Settenvini) wrote: Will new versions of php include a function to automatically dump a MySQL database into a file? It would be very useful to make regular and automatic backups of your dbs. I know you could just use exec() with the traditional mysqldump program. But this is useful just if you have the right permissions on the server... and not everybody owns the workstation where your site is stored. If an appropriate function already exist, please tell me! Elsehow... what about a mysql_db_dump(database) function? ;) Thank you very much, Matteo -- Thomas Seifert mailto:[EMAIL PROTECTED] http://www.MyPhorum.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Session problem on windows
You should use the php-general-group. php-dev is for development OF php, not WITH php. Thomas On Tue, 18 Feb 2003 21:53:59 -0500 [EMAIL PROTECTED] (Fcannata) wrote: Hey group, I'm running PHP 4, Apache 2.0 and MySQL on Windows XP and everything works great (wishing it was UNIX). Anyway my problem is when I start a session it creates the file in the temp directory, but the session is completely empty. When I upload the file to my LINUX server the session works fine. My configuration in PHP for the session seems to be configured correctly and from what the documentation says, is configured correctly. Got any idea's?? here is my session config: [Session] session.save_handler = files session.save_path = c:\php\tmp session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = c:\php\tmp session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_maxlifetime = 1440 session.referer_check = session.entropy_length = 0 session.entropy_file = session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 url_rewriter.tags = a=href,area=href,frame=src,input=src,form=fakeentry here is my (dreamweavers) session code i'm using: // *** Start the session session_start(); // *** Validate request to log in to this site. $FF_LoginAction = $PHP_SELF; if (isset($QUERY_STRING) $QUERY_STRING!=) $FF_LoginAction .= ?.$QUERY_STRING; if (isset($username)) { $FF_valUsername=$username; $FF_fldUserAuthorization=; $FF_redirectLoginSuccess=iDAM_UI.php; $FF_redirectLoginFailed=index.php; $FF_rsUser_Source=SELECT email_address, password ; if ($FF_fldUserAuthorization != ) $FF_rsUser_Source .= , . $FF_fldUserAuthorization; $FF_rsUser_Source .= FROM owner WHERE email_address=' . $FF_valUsername . ' AND password=' . $password . '; mysql_select_db($database_iDAM, $iDAM); $FF_rsUser=mysql_query($FF_rsUser_Source, $iDAM) or die(mysql_error()); $row_FF_rsUser = mysql_fetch_assoc($FF_rsUser); if(mysql_num_rows($FF_rsUser) 0) { // username and password match - this is a valid user $MM_Username=$FF_valUsername; session_register(MM_Username); if ($FF_fldUserAuthorization != ) { $MM_UserAuthorization=$row_FF_rsUser[$FF_fldUserAuthorization]; } else { $MM_UserAuthorization=; } session_register(MM_UserAuthorization); if (isset($accessdenied) false) { $FF_redirectLoginSuccess = $accessdenied; } mysql_free_result($FF_rsUser); session_register(FF_login_failed); $FF_login_failed = false; header (Location: $FF_redirectLoginSuccess); exit; } mysql_free_result($FF_rsUser); session_register(FF_login_failed); $FF_login_failed = true; header (Location: $FF_redirectLoginFailed); exit; } -- Sincerely, Franklin Cannata DPCI 1560 Broadway, Suite 810 New York, NY 10036 212.575.5609 main 516.526.3744 mobile 212.575.5653 fax AIM: theoracle991 Yahoo: fcannata2001 Reach Your Audience, Anywhere. http://www.databasepublish.com This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. -- Thomas Seifert mailto:[EMAIL PROTECTED] http://www.MyPhorum.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] a critical bug since 4.2.3 still open?
Hi folks, as some people here just asked about it I found that bug report http://bugs.php.net/bug.php?id=19292 about open_basedir-problems which is what happens here. Did anyone have time to look at it or even fix it? Can't believe that this critical bug hasn't ever been seriously worked out. TIA, -- Thomas Seifert mailto:[EMAIL PROTECTED] http://www.MyPhorum.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Question on bug list
On Fri, 31 Jan 2003 02:49:01 + [EMAIL PROTECTED] (Daniel Lorch) wrote: hi, Wouldn't it be nice if one could attach himself to a bug and receive an email on every new message to that bug? And then how am i informed about new bugs? Is there a mailing list for that? Currently i read the bug-summary-list.. [EMAIL PROTECTED] Empty mail to [EMAIL PROTECTED] should do it. This will send you EVERY message about any bug. What Marcus meant was to subscribe to ONE bug I think. Thomas -- Thomas Seifert mailto:[EMAIL PROTECTED] http://www.MyPhorum.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: CVS Account Request: pathic
On 31 Jan 2003 09:25:58 - [EMAIL PROTECTED] (Ahmad Fathani) wrote: how to learn it you don't need a cvs-account for that. -- Thomas Seifert mailto:[EMAIL PROTECTED] http://www.MyPhorum.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Reading php.ini
Vinod Panicker wrote: Hi, Could someone pls point me to some documentation on how to access values from php.ini in my php extension? Tx, Vinod. http://zend.com/apidoc/zend.ini-file-support.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Unsupported Operand Types
this should be put in php-general. You should try disabling ZendOptimizer to get on the problem. Thomas On Sat, 18 Jan 2003 03:27:44 -0700 [EMAIL PROTECTED] (Brian T. Allen) wrote: Hi, I've just spent the night upgrading my RedHat 6.2 server to: Apache1.3.27 PHP4.3.0 MySQL3.23.54a Mod_SSL2.8.12 OpenSSL0.9.7 ZendOptimizer2.1.0 Now I'm getting (inconsistently): PHP Fatal error: Unsupported operand types in /web/domain/html/includes/item.inc on line 35 That line contains: $variable1 = $variable2 - 1; Both variables may be unassigned prior to this line, or may have numeric values. In a related piece of weirdness, I have this included at the bottom of every file: ?php if(mysql_error()) { $MYSQL_ERROR = mysql_error(); $MYSQL_ERROR_NO = mysql_errno(); $date = (date(l F d, Yg:i A)); mail([EMAIL PROTECTED], Database Error, Errors: $MYSQL_ERROR_NO:$MYSQL_ERROR Query: $query_log Page: $PHP_SELF Date: $date ,From: Webmaster [EMAIL PROTECTED]); ? Which normally returns something like: - Errors: 1062:Duplicate entry '[EMAIL PROTECTED]' for key 1 Query: Page: /account/new.html Date: Friday January 17, 200312:42 PM But now it returns: Errors: Saturday January 18, 20033:18 AM:Saturday January 18, 20033:18 AM Query: Array Page: /community/newsletter.html Date: Array - How can $date be an array, when it gets assigned right above where it gets called? What am I missing in this new version of PHP that is making my scripts seemingly incompatible? Thanks, Brian Allen -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Another question on PHP building on Linux.
built it as a shared module, i.e. later via the apxs-way. Thomas On Thu, 02 Jan 2003 07:35:17 -0700 [EMAIL PROTECTED] (Ananth Kesari) wrote: Hi, We have another question on building PHP on Linux: When building for Apache, we don't get, on Linux, the core PHP part as a separate binary from the Apache module. This is what the hacked up build scripts produced. Thus, instead of having a single core part which can be used by Apache 1.3 module, Apache 2.x module, command line interface program etc, the whole PHP core is bound statically into each of these! We would like to know whether there is a way to do the way we want it to be done by some configure option OR do we need to modify the input files to the autotools to enable this? Thanks, Ananth. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: mysql 4.0.6 gamma and php 4.3.0 .... ?
oh thanks, didn't notice its only related to windows. Thomas On Fri, 20 Dec 2002 22:52:51 +0100 (CET) [EMAIL PROTECTED] (Derick Rethans) wrote: On Fri, 20 Dec 2002, Thomas Seifert wrote: what's the exact problem with the php/mysql4-interaction? I'm using mysql-4.0.5 and php-4.2.3 in production without any problems. Ok, I'm not using any special features of mysql4 ;-). Nothing, just that the mysql extension in the Windows build is linked against the bundled mysql which is of version 3.23.53, and not to an external library with a version 4 library. Derick On Fri, 20 Dec 2002 21:28:44 - [EMAIL PROTECTED] (Tijn) wrote: I had a conversation with derick over email - here is a summary for those struggeling with the same issue: 4.3 will not include the new mysql client compatible with mysql 4 This will be included in php 4.4 / 5 4.4/5 will include an extension which is much more compatible with mysql 4 The current CVS of php 4.4 does not yet include this new extension Hope this helps others tijn -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: mysql 4.0.6 gamma and php 4.3.0 .... ?
what's the exact problem with the php/mysql4-interaction? I'm using mysql-4.0.5 and php-4.2.3 in production without any problems. Ok, I'm not using any special features of mysql4 ;-). Regards, Thomas On Fri, 20 Dec 2002 21:28:44 - [EMAIL PROTECTED] (Tijn) wrote: I had a conversation with derick over email - here is a summary for those struggeling with the same issue: 4.3 will not include the new mysql client compatible with mysql 4 This will be included in php 4.4 / 5 4.4/5 will include an extension which is much more compatible with mysql 4 The current CVS of php 4.4 does not yet include this new extension Hope this helps others tijn -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: turbano
I want to translate PHP manual to portuguese language, please, let me do this : ). -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP extension initialisation
Hi Tom, Did you ever get this problem solved? I'm fighting the same issue - and if no better solution present it self, I'm going to do it by accessing a file of my choise. If the file doesn't exist - create it and we know we are in the first call. If it does exist - delete it, and we know this is the second call. This is obviously an ugly hack, so I really hope you've come up with something cleaner. TIA Thomas On Wed, 21 Aug 2002, you wrote: I had already assumed what Pete said was happening was happening, but I still don't know how to tell whether I'm in the first one (apache test) or the second (real init). Any ideas? Tom On Wed, 21 Aug 2002, you wrote: Hi, I asked about this a few weeks ago with apache on windows. The best answer I got was from George Schlossnagle: quoteI believe this is because when apache does it's intial configtest run as part of start (to validate it's config), it has to do a complete startup (otherwise it wouldn't know about conf params used by modules loaded as DSOs. So you see a startup; shutdown; startup./quote that's exactly what I saw happen so seeing as shutdown occurs as well it wasn't a problem in my case. Pete -- Tom Oram [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 15 Aug 2002, you wrote: --- Tom Oram [EMAIL PROTECTED] wrote: Hi, Can someone please answer my question? When running a PHP extension when PHP is running as an apache module on linux it's module init function (PHP_MINIT_FUNCTION) gets called twice, once before apache forks then once after, is there any way of finding out which init you are in. I can't keep a global variable because it get losted in between init calls, and environment vars/file locks/shared mem/semephores are not options. Are you on Windows IIS? I believe someone recently just asked about that same thing. There was a valid explination for it. No linux, I did say ;), but thanks anyway. The question still stands open, anyone? One other quicky, is there a way to find out inside the extension if it is being run from with an apache module or its it a standalone executable (or running under a different webserver as my module can only ever run with apache)? I believe you could #include SAPI.h if(!strcmp(sapi_module.name, cgi) || strcmp(sapi_module.name, cli)) { printf(compiled as a command line executable); } This is probably what I need thanks Thanks for your time, Tom -- *** Tom Oram SCL Computer Services URL http://www.scl.co.uk/ *** -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- *** Tom Oram SCL Computer Services URL http://www.scl.co.uk/ *** -- *** Tom Oram SCL Computer Services URL http://www.scl.co.uk/ *** -- *** Tom Oram SCL Computer Services URL http://www.scl.co.uk/ *** -- 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] Macros for global startup/shutdown functions
Hi! How come there are no macros for global startup and shutdown functions? The Zend API documentation refers to such terms and even instructs that one should use STANDARD_MODULE_PROPERTIES_EX instead of STANDARD_MODULE_PROPERTIES if global functions are to be used. I have even found references to ZEND_GINIT/GSHUTDOWN on the web, but... Admittedly, I haven't checked newer versions, but as I am using 4.1.2 and these terms have been used dating back to the 4.0 release this doesn't seem to be the issue. Regards Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Macros for global startup/shutdown functions
Thanks, Derick! Does this also mean, that I can't hardcode this functionality? (ie. adding to functions to the zend_module_entry struct) As it is I actually have a use for this, and have succesfully compiled my extension with references to such hardcoded functions - allthough they don't seem to get called at this point! /Thomas Derick Rethans wrote: On Tue, 10 Dec 2002, Thomas Wentzel wrote: Hi! How come there are no macros for global startup and shutdown functions? The Zend API documentation refers to such terms and even instructs that one should use STANDARD_MODULE_PROPERTIES_EX instead of STANDARD_MODULE_PROPERTIES if global functions are to be used. I have even found references to ZEND_GINIT/GSHUTDOWN on the web, but... Admittedly, I haven't checked newer versions, but as I am using 4.1.2 and these terms have been used dating back to the 4.0 release this doesn't seem to be the issue. GINIT and GSHUTDOWN where removed about a year ago because they weren't really used anyway, and had no real purpose anyway for them. *sigh* it just shows that the docs are quite outdated; I'll have a look at it now. Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Macros for global startup/shutdown functions
Derick Rethans wrote: They are indeed not called anymore, as we just removed the functionality, but it still compiles of course. However, where did you see this documented? It's neither in phpdoc or the ZendAPI docs. Derick Well.. a quick glimpse revealed the following two pages (don't know if there are more) http://www.zend.com/apidoc/zend.structure.module-block.php The cell explaining Remaining structure elements clearly insinuates that the GINIT/GSHUTDOWN be present (not to mention fig. 8-4 :) http://www.zend.com/apidoc/zend.startup-and-shutdown.php The first line of the second paragraph also speaks of these... Would it be too much a pain if I were to modify the code to call my global functions? Do you recall in which version this functionality was removed? /Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Macros for global startup/shutdown functions
Derick Rethans wrote: Just move them to module startup/shutdown; it doesn't make any difference anyway. That's what I have been doing so far You are probably right, guess it's a matter of rethinking my code again ;) Do you recall in which version this functionality was removed? no, I really dont recall, try lxr.php.net :) Yeah, of course! Sorry forgot about that one! :) Derick -- - Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ - Thanks for your assitance. I would have spent a lot of time digging in to this if it weren't for you! Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] MINIT RINIT et al
Ok! My last postings were about the lack of global init/shutdown functions. Derick was kind enough to tell me, that these were deprecated and that I should use MINIT for my initalisations. Well.. this was what I had been doing until it just didn't seem adequate for my needs. I decided to give it another go but my attempts have given rise to some issues I need explained. As I'm compiling my modules into php I understand and have verified that MINIT is called whenever I start apache. (and MSHUTDOWN when I stop apache) RINIT/RSHUTDOWN continue to baffle me though. Why do RINIT get called when I start apache? (after MINIT). Shouldn't that happen only if I had compiled my extension as a dynamic extension, that required dl'ing? In fact RINIT/RSHUTDOWN only gets called once (when starting/stopping apache). As I read the documentation RINIT should be called whenever I direct my browser to a page which requires php, and RSHUTDOWN when that request has ended. Am I getting this all backwards? TIA Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: sapi/milter
Hey that looks good, I believe it won't be in 4.3, isn't it? Thomas On Sun, 1 Dec 2002 21:42:29 +0100 [EMAIL PROTECTED] (Harald Radi) wrote: hi guys, a few minutes ago i checked in the first more or less working version of sapi/milter. once compiled the binary can be used as a sendmail milter plugin and you can process all mails in php. you can even change the script without having to restart the milter (except the milter_init() function will not be called a second time). an example showing all the possible callbacks provided by the sapi is here http://cvs.php.net/co.php/php4/sapi/milter/milter.php more info on milter and the api functions to process or reject mails can be found here (all api functions are mapped to php userspace) http://www.sendmail.com/partner/resources/development/milter_api/ regards, Harald Radi -- nme - we can heal you http://www.nme.at Ortner Radi Schwenk GnbR Tumpenweg 528 5084 Grossgmain, Salzburg Austria -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] SIGPIPE
Hi! I have a problem with an extension that I wrote for communicating with an old version of raima (a database). The problem is that whenever a SIGPIPE occurs, the database acts up! Well - I am hoping someone could give me a poitner as how - or rather where - to handle the SIGPIPE. a search in the php source shows, that SIGPIPE is only handle in ext/mysql and sapi. Should I do a SIG_IGN in my extension or should I mess with the source of raima (which I have available)? TIA Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PATCH: debug_backtrace() function for 4.3-dev/ZE1
Zeev makes a very very good point here.. What is the point of backporting everything into 4.3, There is no real point. PHP needs to move forward with new and improved.. Not spending its time going no where, and trying to improve on going no where. With ZE2 being the current goal the only thing that should go into ZE1 would be security/bug's that require fixing.. The only goal for ZE1 should be keeping it stable/safe.. Not making it better. On Sun, 2002-08-18 at 12:46, Zeev Suraski wrote: At 20:29 18/08/2002, Rasmus Lerdorf wrote: I don't think we should stop people from tweaking ZE1. ZE2 is probably more than a year away from realistically being available to a lot of people. No, it's not. It's around 6 months away from being production-quality. That's exactly the misperception that we have to fight. I don't consider adding new features as tweaking - if PHP lived w/o that feature for 5 years, it can wait one more year, especially when you do have plug-in solutions that give you that functionality if you MUST have it. Zeev -- 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] Php and CGI
With the increased functionality of PHP as non-web based lang has anyone looked into the possibility of making a more compiled package that doesnt require a seperate php binary.. Before someone goes off on the If you want to do that use C bit... I don't know C although im sure I could learn it however I do 5-8 hours a day of PHP web development, Last thing I want to do is learn another lang. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RE: [PHP-QA] RE: [PHP-DEV] 4.2.3
Isnt this what a bug/change log is for... If its not in the change log it wasnt put in yet. Just add a small comment at the top. Not all changes currently in CVS may be in this release due to blah blah blah contraints On Sat, 2002-08-17 at 11:19, Liz wrote: there should be 'fixed in the next bug-fix release' or 'fixed in the next semi-major release'. How about Will be fixed in version major.minor.buildrelease ?? ie tell them which version it will be fixed in, no confusion at all then -- 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
Re: [PHP-DEV] Addition to the openssl ext
Wez Furlong: Just so you know who I am, I'm the openssl extension maintainer :-) :) So, I don't think we will integrate your patch as-is, but do think we can implement the same functionality using a function something like this: mixed openssl_cipher_encrypt(int cipher, string key, string plaindata); mixed openssl_cipher_decrypt(int cipher, string key, string cryptdata); Fair enough :) As long as I get the functionality I want, I'm happy :) Could you log your patch as a feature request using bugs.php.net so that I can find it when I get around to implementing this? I might make a patch that implements what you suggests over, if that's ok with you? -- Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Addition to the openssl ext
Hi! I've added blowfish cfb64 wrapper to the openssl-ext, patch is attached. Feel free to comment on the code, it's my first time coding in a php ext so I might have done some mistakes. Would be great if it got included in the std. php so I don't need to patch the release myself anymore :) -- Thomas --- openssl.c.orig Tue Jul 30 15:46:53 2002 +++ openssl.c Tue Jul 30 23:58:28 2002 @@ -41,6 +41,7 @@ #include openssl/conf.h #include openssl/e_os.h #include openssl/rand.h +#include openssl/blowfish.h #define DEFAULT_KEY_LENGTH 512 #define MIN_KEY_LENGTH 384 @@ -107,6 +108,10 @@ PHP_FE(openssl_public_encrypt, arg2_force_ref) PHP_FE(openssl_public_decrypt, arg2_force_ref) +/* blowfish funcs */ + PHP_FE(openssl_bf_cfb64_encrypt, NULL) + PHP_FE(openssl_bf_cfb64_decrypt, NULL) + PHP_FE(openssl_error_string, NULL) {NULL, NULL, NULL} }; @@ -605,6 +610,79 @@ return SUCCESS; } /* }}} */ + + + +/* {{{ Blowfish functions */ + +/* {{{ proto mixed openssl_bf_cfb64_encrypt(string plaindata, string key) + Encrypts with blowfish, cfb64, added by Thomas Langås, [EMAIL PROTECTED] */ +PHP_FUNCTION(openssl_bf_cfb64_encrypt) +{ + char *plaindata; + int plaindata_len; + char *key; + int key_len; + unsigned char *cryptdata; + + unsigned char ivec[8]; + BF_KEY bfkey; + int num = 0; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ss, plaindata, +plaindata_len, key, key_len) == FAILURE) + RETURN_FALSE; + + /* Compile the key, save in bfkey */ + BF_set_key(bfkey, key_len, key); + + /* Allocate enough for encrypted data, and reset it */ + cryptdata = (unsigned char *) malloc(plaindata_len * 2); + memset(cryptdata, 0, plaindata_len*2); + + /* Encrypt data, save in cryptdata */ + memset(ivec, 0, 8); + BF_cfb64_encrypt(plaindata, cryptdata, plaindata_len, bfkey, ivec, num, +BF_ENCRYPT); + + RETURN_STRING(cryptdata, 1); +} +/* }}} */ + +/* {{{ proto mixed openssl_bf_cfb64_decrypt(string cryptdata, string key) + Decrypts with blowfish, cfb64, added by Thomas Langås, [EMAIL PROTECTED] */ +PHP_FUNCTION(openssl_bf_cfb64_decrypt) +{ + char *cryptdata; + int cryptdata_len; + char *key; + int key_len; + unsigned char *plaindata; + + unsigned char ivec[8]; + BF_KEY bfkey; + int num = 0; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ss, cryptdata, +cryptdata_len, key, key_len) == FAILURE) + RETURN_FALSE; + + /* Compile the key, save in bfkey */ + BF_set_key(bfkey, key_len, key); + + /* Allocate enough for decrypted data, and reset it */ + plaindata = (unsigned char *) malloc(cryptdata_len+2); + memset(plaindata, 0, cryptdata_len+2); + + /* Decrypt data, save in plaindata */ + memset(ivec, 0, 8); + BF_cfb64_encrypt(cryptdata, plaindata, cryptdata_len, bfkey, ivec, num, +BF_DECRYPT); + + RETURN_STRING(plaindata, 1); +} +/* }}} */ + +/* }}} */ + + + /* {{{ x509 cert functions */ --- php_openssl.h.orig Tue Dec 11 16:30:02 2001 +++ php_openssl.h Tue Jul 30 19:36:59 2002 @@ -65,6 +65,9 @@ PHP_FUNCTION(openssl_csr_export_to_file); PHP_FUNCTION(openssl_csr_sign); +PHP_FUNCTION(openssl_bf_cfb64_encrypt); +PHP_FUNCTION(openssl_bf_cfb64_decrypt); + #else #define phpext_openssl_ptr NULL -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-QA] PHP 4.2.3RC1 ?
On Sun, 28 Jul 2002 19:59:31 +0200 [EMAIL PROTECTED] (Sebastian Nohn) wrote: Hi, we released 4.2.2 less than a week ago. If we release any new package within 2weeks to a month, i feel it'll just infuriate system admins more. People don't want to be installing new packages every week for the same product. We were running 4.0.4pl1 for more than one year, then we needed some new features and installed 4.1.2, 4.2.0, 4.2.1. No! We did'nt want to install 4.2.0 or 4.2.1 bescause we liked to, or we needed any new feature or our sysadmin wanted to install this, we simple wanted to get a running enviroment. It was pure hell and it is still! These releases were'nt even able to do the most simple things like sorting arrays, creating files directorys, diff'ing arrays and so on. I have used all these versions in production and didn't have any problems in the parts you are talking about. maybe you have certain circumstances which should be tested on QA? Never had a hell like you the one you are talking about with any release of php as the software has grown with the php-versions. Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Bug #18547 Updated: Remote attacker can cause SIGSEGV (fwd)
-- Forwarded message -- Date: Wed, 24 Jul 2002 16:12:06 -0400 (EDT) From: Dan Kalowsky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Bug #18547 Updated: Remote attacker can cause SIGSEGV Please send it to [EMAIL PROTECTED] (Okay, that's easy enough -- I posted this in the web form, but it wrapped all to hell. Thanks for the email address, Mr. Kalowsky) Hello. While working on an exploit for the multipart_buffer_headers() hole that you just fixed, and I found another problem that you might want to look into. It looks like a DoS only, but there might be a way to execute arbitrary code and I just haven't found it yet. Credit for the find goes to myself and members of the [0dd] 0-Day Digest. Thanks, Thomas Cannon --- [root@spoon]# /usr/local/www/bin/apachectl start /usr/local/www/bin/apachectl start: httpd started [root@spoon]# telnet 0 80 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. HEAD / HTTP/1.0 HTTP/1.1 200 OK Date: Wed, 24 Jul 2002 04:03:49 GMT Server: Apache/1.3.26 (Unix) PHP/4.2.2 X-Powered-By: PHP/4.2.2 Connection: close Content-Type: text/html Connection closed by foreign host. [root@spoon]# /usr/local/www/bin/httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_access.c mod_auth.c mod_setenvif.c mod_php4.c suexec: disabled; invalid wrapper /usr/local/www/bin/suexec [root@spoon]# /* change over to my remote machine, stereophonic */ [tcannon@stereophonic]$ ./header.pl | nc noops.org 80 [1] 90464 [tcannon@stereophonic]$ ./header.pl | nc noops.org 80 [2] 90466 [tcannon@stereophonic]$ ./header.pl | nc noops.org 80 [3] 90468 [tcannon@stereophonic]$ ./header.pl | nc noops.org 80 [4] 90470 [tcannon@stereophonic]$ ./header.pl | nc noops.org 80 [tcannon@stereophonic]$ more header.pl #!/usr/bin/perl headers(); sub headers { print POST /vuln/upload.php HTTP/1.0\n; print Referer: http://www.noops.org\n;; print Connection: Keep-Alive\n; print User-Agent: killer-loop.pl\n; print Host: www.noops.org\n; print Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*\n; print Accept-Encoding: gzip\n; print Accept-Language: en\n; print Accept-Charset: iso-8859-1,*,utf-8\n; print Content-type: multipart/form-data; boundary=xnyLAaB03X\n; print Content-length: 246\n\n\n\n; print --xnyLAaB03X\n; print Content-Disposition: form-data; name=.A x 100; } /* then back to spoon, the webserver... The 'reviewer' script is a little thing I whipped up to keep a note of where I last read the apache_log and error_log from, and it also weeds out the code red and nimda background noise -- you'd see this same output from 'tail' or a similar utility */ /* NOTE: 5 - 10 minutes need to pass to give apache time to segfault */ [root@spoon]# reviewer noops.org - - [23/Jul/2002:21:03:49 -0700] HEAD / HTTP/1.0 200 0 - - adsl-66-127-227-196.dsl.sntc01.pacbell.net - - [23/Jul/2002:21:10:15 -0700] POST /vuln/upload.php HTTP/1.0 200 - http://www.noops.org; killer-loop.pl adsl-66-127-227-196.dsl.sntc01.pacbell.net - - [23/Jul/2002:21:10:38 -0700] POST /vuln/upload.php HTTP/1.0 200 - http://www.noops.org; killer-loop.pl adsl-66-127-227-196.dsl.sntc01.pacbell.net - - [23/Jul/2002:21:10:38 -0700] POST /vuln/upload.php HTTP/1.0 200 - http://www.noops.org; killer-loop.pl adsl-66-127-227-196.dsl.sntc01.pacbell.net - - [23/Jul/2002:21:10:39 -0700] POST /vuln/upload.php HTTP/1.0 200 - http://www.noops.org; killer-loop.pl adsl-66-127-227-196.dsl.sntc01.pacbell.net - - [23/Jul/2002:21:10:39 -0700] POST /vuln/upload.php HTTP/1.0 200 - http://www.noops.org; killer-loop.pl Now it's the error log... [Tue Jul 23 21:03:40 2002] [notice] Apache/1.3.26 (Unix) PHP/4.2.2 configured -- resuming normal operations [Tue Jul 23 21:03:40 2002] [notice] Accept mutex: flock (Default: flock) [Tue Jul 23 21:10:15 2002] [notice] child pid 31780 exit signal Segmentation fault (11) [Tue Jul 23 21:10:38 2002] [notice] child pid 31781 exit signal Segmentation fault (11) [Tue Jul 23 21:10:39 2002] [notice] child pid 31782 exit signal Segmentation fault (11) [Tue Jul 23 21:10:39 2002] [notice] child pid 31779 exit signal Segmentation fault (11) [Tue Jul 23 21:10:40 2002] [notice] child pid 31871 exit signal Segmentation fault (11) [root@spoon]# gdb /usr/local/www/bin/httpd 32839 GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-unknown-freebsd... /usr/local/www/conf/32839: No such file or directory. Attaching to program: /usr/local/www/bin/httpd, process 32839
Re: [PHP-DEV] libphp4.so, Sun Solaris 8, relocation error
Thomas Langås: Output from ldd: dilbert:/usr/src/web/php-4.2.2# ldd -d /local/apache/libexec/libphp4.so libdl.so.1 =/lib/libdl.so.1 libpam.so.1 = /lib/libpam.so.1 libxmlrpc.so.0 =/local/lib/libxmlrpc.so.0 libexpat.so.0 = /local/lib/libexpat.so.0 libpdf.so.1 = /local/lib/libpdf.so.1 libz.so.1 = /lib/libz.so.1 libsched.so.1 = /lib/libsched.so.1 libgen.so.1 = /lib/libgen.so.1 libsocket.so.1 =/lib/libsocket.so.1 libnsl.so.1 = /lib/libnsl.so.1 libmysqlclient.so.10 = /local/lib/mysql/libmysqlclient.so.10 libldap.so.2 = /local/lib/libldap.so.2 liblber.so.2 = /local/lib/liblber.so.2 libintl.so.1 = /lib/libintl.so.1 libt1.so.1 =/local/lib/libt1.so.1 libm.so.1 = /lib/libm.so.1 libxml2.so.2 = /local/lib/libxml2.so.2 libgdbm.so.2 = /local/lib/libgdbm.so.2 libcrypt_i.so.1 = /lib/libcrypt_i.so.1 libresolv.so.2 =/lib/libresolv.so.2 libclntsh.so.8.0 = /local/oracle/lib/libclntsh.so.8.0 libc.so.1 = /lib/libc.so.1 libmp.so.2 =/lib/libmp.so.2 libwtc8.so =/local/oracle/lib/libwtc8.so libaio.so.1 = /lib/libaio.so.1 /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1 symbol not found: __floatdidf (/local/apache/libexec/libphp4.so) When I added LDFLAGS += -lgcc to the topdir-Makefile, this went away and everything seems to work now. Why isn't this included by default? -- Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: thomasgm
I want a CVS account because i want to translate de PHP manual to the portuguese language, if you can create this account for me. Thank you :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] libphp4.so, Sun Solaris 8, relocation error
OS: Sun Solaris 8 Problem: dilbert:/local/apache# bin/httpd Syntax error on line 244 of /local/apache/conf/httpd.conf: Cannot load /local/apache/libexec/libphp4.so into server: ld.so.1: bin/httpd: fatal: relocation error: file /local/apache/libexec/libphp4.so: symbol __floatdidf: referenced symbol not found Output from ldd: dilbert:/usr/src/web/php-4.2.2# ldd -d /local/apache/libexec/libphp4.so libdl.so.1 =/lib/libdl.so.1 libpam.so.1 = /lib/libpam.so.1 libxmlrpc.so.0 =/local/lib/libxmlrpc.so.0 libexpat.so.0 = /local/lib/libexpat.so.0 libpdf.so.1 = /local/lib/libpdf.so.1 libz.so.1 = /lib/libz.so.1 libsched.so.1 = /lib/libsched.so.1 libgen.so.1 = /lib/libgen.so.1 libsocket.so.1 =/lib/libsocket.so.1 libnsl.so.1 = /lib/libnsl.so.1 libmysqlclient.so.10 = /local/lib/mysql/libmysqlclient.so.10 libldap.so.2 = /local/lib/libldap.so.2 liblber.so.2 = /local/lib/liblber.so.2 libintl.so.1 = /lib/libintl.so.1 libt1.so.1 =/local/lib/libt1.so.1 libm.so.1 = /lib/libm.so.1 libxml2.so.2 = /local/lib/libxml2.so.2 libgdbm.so.2 = /local/lib/libgdbm.so.2 libcrypt_i.so.1 = /lib/libcrypt_i.so.1 libresolv.so.2 =/lib/libresolv.so.2 libclntsh.so.8.0 = /local/oracle/lib/libclntsh.so.8.0 libc.so.1 = /lib/libc.so.1 libmp.so.2 =/lib/libmp.so.2 libwtc8.so =/local/oracle/lib/libwtc8.so libaio.so.1 = /lib/libaio.so.1 /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1 symbol not found: __floatdidf (/local/apache/libexec/libphp4.so) symbol not found: ap_block_alarms (/local/apache/libexec/libphp4.so) symbol not found: ap_unblock_alarms (/local/apache/libexec/libphp4.so) symbol not found: ap_user_name (/local/apache/libexec/libphp4.so) symbol not found: ap_max_requests_per_child (/local/apache/libexec/libphp4.so) symbol not found: ap_server_root (/local/apache/libexec/libphp4.so) symbol not found: ap_user_id(/local/apache/libexec/libphp4.so) symbol not found: ap_group_id (/local/apache/libexec/libphp4.so) symbol not found: top_module(/local/apache/libexec/libphp4.so) Output from crle: dilbert:/usr/src/web/php-4.2.2# crle Configuration file [3]: /var/ld/ld.config Default Library Path (ELF): /local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib Trusted Directories (ELF): /local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib Command line: crle -c /var/ld/ld.config -l /local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib -s /local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib Configure-line used: ./configure --with-mysql=/local --with-oracle=/local/oracle --with-ldap=/local --with-gd=/local --with-zlib --with-exec-dir=/local/bin --with-versioning --with-gdbm=/local --with-mod_charset --with-dbase --with-filepro --with-xml=/local --with-ttf --with-t1lib=/local --without-snmp --enable-calendar --enable-pic --enable-inline-optimization --enable-magic-quotes --enable-track-vars --enable-safe-mode --enable-sysvsem --enable-sysvshm --enable-trans-sid --enable-yp --enable-ftp --with-apxs=/local/apache/bin/apxs --enable-static --with-sablot=/local --with-config-file-path=/local/apache/conf/php4 --with-pdflib=shared --enable-bcmath --with-sysvsem --with-iconv --with-gettext --enable-shared --with-xslt=sablot --with-curl=/local --with-xmlrpc=/local --with-dom=/local --enable-xlst=/local --with-openssl=/local --prefix=/local --with-pdflib=/local --with-expat-dir=/local --enable-sigchild A few environment vars: LD_LIBRARY_PATH=/local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib PATH=/bin:/usr/bin:/usr/ucb:/usr/bin/X11:/usr/local/bin:/store/bin:/usr/ccs/bin:/sbin:/usr/sbin Anyone around with a possible solution, or does anyone need more info to help solve the problem? I would be happy to provide more info, and I would be very gratefull for a solution to this problem. -- Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Help pls!! mail() function header problems
Hello all, I am trying to build a php driven mailing list where i can send an email to the whole list. Here is my code: ?php $to = Henning Tamas [EMAIL PROTECTED] . ,; $header = From: Test List [EMAIL PROTECTED]; include(pop3.php); $user=irc; $password=*; $apop=0; $pop3_connection=new pop3_class; $pop3_connection-hostname=localhost; if(($error=$pop3_connection-Open())==) { echo PREConnected to the POP3 server $pop3_connection-hostname/PRE\n; if(($error=$pop3_connection-Login($user,$password,$apop))==) { echo PREUser $user logged in./PRE\n; if(($error=$pop3_connection-RetrieveMessage(1,$headers,$body,2))==) { echo PREMessage 1:\n---Message headers starts below---/PRE\n; for($line=0;$linecount($headers);$line++) { echo PRE,HtmlSpecialChars($headers[$line]),/PRE\n; $fullheader=$fullheader.$headers[$line].\r\n; } echo PRE---Message headers ends above---\n---Message body starts below---/PRE\n; for($line=0;$linecount($body);$line++) { echo PRE,HtmlSpecialChars($body[$line]),/PRE\n; $fullbody = $fullbody . $body[$line]; } echo PRE---Message body ends above---/PRE\n; } } } if($error== ($error=$pop3_connection-Close())==) echo PREDisconnected from the POP3 server $pop3_connection-hostname/PRE\n; echo($error); $i1=strpos($fullheader,Subject:); $i2=strlen($fullheader)-$i1; $subject=substr($fullheader,$i1,$i2); $subject=substr($subject,9,strlen($subject)); $subject = [MediaSoft] . $subject; //mail($to, $subject, $body, $headers) or die(tet); mail($to, $subject, $fullbody, From: [EMAIL PROTECTED]); ? I got the pop3.php from www.weberdev.com its a class to download emails from a POP3 server. My problem is: When i send an email from a PHP emailer using mail() function to my mailing list Message Subject is test, Message body is test. I run my script and my message source looks like this: Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 30667 invoked by alias); 11 Jul 2002 13:04:08 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 30662 invoked by uid 99); 11 Jul 2002 13:04:08 - Date: 11 Jul 2002 13:04:08 - Message-ID: [EMAIL PROTECTED] To: Henning Tamas [EMAIL PROTECTED], Root [EMAIL PROTECTED], Subject: [MediaSoft] test //---Header ends here I added this line From: Test List [EMAIL PROTECTED] From: [EMAIL PROTECTED] test And as you see From: [EMAIL PROTECTED] is in the header section of the mail() function. What can I do to fix this problem? Thomas Henning -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: turbano
'I'm requesting this CVS account in order to help with the translation of the PHP manual to portuguese. I was referred to this form by the current coordinator Joao Prado Maia.' -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] a (maybe) feature-request ...
is there already support for the use of unix-messages? I wanted to try them for communication with a small daemon I wrote but I couldn't find any information about them. If there isn't already a module or a function for this ... how about adding these for later versions? Should be easy to add since there are relatively simple syscalls for these. Thanks a lot Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] PATH_INFO doesn't work
hi I've got a problem with the PATH_INFO environment variable on various servers. If I try to call a script named 'info.php' the following way '/info.php/xyz', the PATH_INFO variable should contain 'xyz', right? But it doesn't work in all cases. Seems like it's OK on servers with PHP compiled as Apache module. But if PHP is installed as CGI, on some servers it works, but in most cases I get an Error 500 or an Error 404. Can anybody tell me the reason for this behaviour? Perhaps a configuration issue? Thanks Tom -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: wentzel
Tanslating the documentation into danish -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] parse_str and session vars
Actually, yes it does $foo=foobar; instead of parse_str($QUERY_STRING); in file2php - then file3php echoes foo: foobar Obviously - otherwise there wasn't any point in having sessions And Markus - thanks, but I tried to subsitute parse_str($QUERY_STRING) with parse_str(foo=foobar) which also didn't set my session var, foo So that is not the problem either! /Thomas Rasmus Lerdorf wrote: But your problem has absolutely nothing to do with parse_str() Does it behave differently if you replace parse_str() with $foo=foobar; ? I bet it doesn't On Mon, 4 Mar 2002, Thomas Wentzel wrote: Sure, Rasmus! But I'm using parse_str because file2 in my example is supposed to be a generic handler for all other scripts on my site Offcourse I could use 15 million $HTTP_GET_VARS for each registered session variable (as I wouldn't know what to expect) The reason I did write to this list - is because there obviously is something wrong with the way parse_str works and how it is supposed to work Not because I don't know how to get around this obstacle And the reason I did submit to this list Rasmus Lerdorf wrote: You are posting to the wrong list And why are you using parse_str()? PHP automatically imports these variables for you Use $foo=$HTTP_GET_VARS['foo'] in that second script of yours Next time send your user-level question like this to php-general -Rasmus On Mon, 4 Mar 2002, Thomas Wentzel wrote: Hi, I have encountered an issue with parse_str, that I believe needs to be addressed - allthough I might be mistaken, and in that case feel free to ridicule me - and tell me to go to the general list :) Well I want to be able to do something like this: file1php: ? session_start(); session_register(foo); $foo=bar; ? form action=file2php?foo=foobar method=post input type=submit name=Go /form file2php: ? session_start(); $old=$foo; parse_str($QUERY_STRING); Header(Location: file3php?old=$oldfoo=$foo); ? file3php: ? session_start(); echo foo: $foobr; ? From the manual: (explanation for parse_str) Parses str as if it were the query string passed via an URL and sets variables in the current scope If the second parameter arr is present, variables are stored in this variable as an array elements instead I would expect that the script would result in file3php echoing, foo: foobar - but that's not the case, instead I get: foo: bar, but the url is: file3php?old=barfoo=foobar Doesn't session_start introduce all the registered vars into the current scope - and since parse_str sets varibles in the current scope why doesn't this scheme work? Thanks for listening Thomas -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP-DEV] parse_str and session vars
hehe Thanks - I needed that :) Rasmus Lerdorf wrote: It is I am looking at it now There may actually be a problem $foo is set to foobar, but the session stays at bar if $foo is set via parse_str() Something funky in the session code parse_str() is working just fine -Rasmus On Mon, 4 Mar 2002, Markus Fischer wrote: On Mon, Mar 04, 2002 at 09:21:26AM +0100, Thomas Wentzel wrote : And Markus - thanks, but I tried to subsitute parse_str($QUERY_STRING) with parse_str(foo=foobar) which also didn't set my session var, foo So that is not the problem either! Ah! I now see what you mean! Have you double checked that, after parse_str(), $foo is set to foobar ? -- Please always Cc to me when replying to me on the lists GnuPG Key: http://gurujosefineat/~mfischer/C2272BD0asc -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP-DEV] parse_str and session vars
OK! Thanks, Rasmus! That will allow me to keep working on my current model /Thomas Rasmus Lerdorf wrote: Use import_request_variables('g') instead of parse_str($QUERY_STRING) for now It does the same thing in your case in a more efficient manner I think the session code is holding a reference to the original data and php_treat_data() is not doing the right thing when overwriting existing vars Or something funky like that It is too late at night to figure this particular code out -Rasmus On Mon, 4 Mar 2002, Thomas Wentzel wrote: hehe Thanks - I needed that :) Rasmus Lerdorf wrote: It is I am looking at it now There may actually be a problem $foo is set to foobar, but the session stays at bar if $foo is set via parse_str() Something funky in the session code parse_str() is working just fine -Rasmus On Mon, 4 Mar 2002, Markus Fischer wrote: On Mon, Mar 04, 2002 at 09:21:26AM +0100, Thomas Wentzel wrote : And Markus - thanks, but I tried to subsitute parse_str($QUERY_STRING) with parse_str(foo=foobar) which also didn't set my session var, foo So that is not the problem either! Ah! I now see what you mean! Have you double checked that, after parse_str(), $foo is set to foobar ? -- Please always Cc to me when replying to me on the lists GnuPG Key: http://gurujosefineat/~mfischer/C2272BD0asc -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP-DEV] parse_str and session vars
I'm very sorry, but it seems - that the solution with import_request_variables is even worse I've tried import_request_variables with (g,f) and (g,foo) but now foo isn't even set in file2php (the url arg to file3 is now bar) Thomas Wentzel wrote: OK! Thanks, Rasmus! That will allow me to keep working on my current model /Thomas Rasmus Lerdorf wrote: Use import_request_variables('g') instead of parse_str($QUERY_STRING) for now It does the same thing in your case in a more efficient manner I think the session code is holding a reference to the original data and php_treat_data() is not doing the right thing when overwriting existing vars Or something funky like that It is too late at night to figure this particular code out -Rasmus -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP-DEV] parse_str and session vars
PHP 412 std no CVS Rasmus Lerdorf wrote: Which version of PHP? I tested your file123 thing here and it worked just fine On Mon, 4 Mar 2002, Thomas Wentzel wrote: I'm very sorry, but it seems - that the solution with import_request_variables is even worse I've tried import_request_variables with (g,f) and (g,foo) but now foo isn't even set in file2php (the url arg to file3 is now bar) Thomas Wentzel wrote: OK! Thanks, Rasmus! That will allow me to keep working on my current model /Thomas Rasmus Lerdorf wrote: Use import_request_variables('g') instead of parse_str($QUERY_STRING) for now It does the same thing in your case in a more efficient manner I think the session code is holding a reference to the original data and php_treat_data() is not doing the right thing when overwriting existing vars Or something funky like that It is too late at night to figure this particular code out -Rasmus -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp
[PHP-DEV] parse_str and session vars
Hi, I have encountered an issue with parse_str, that I believe needs to be addressed - allthough I might be mistaken, and in that case feel free to ridicule me - and tell me to go to the general list :) Well I want to be able to do something like this: file1php: ? session_start(); session_register(foo); $foo=bar; ? form action=file2php?foo=foobar method=post input type=submit name=Go /form file2php: ? session_start(); $old=$foo; parse_str($QUERY_STRING); Header(Location: file3php?old=$oldfoo=$foo); ? file3php: ? session_start(); echo foo: $foobr; ? From the manual: (explanation for parse_str) Parses str as if it were the query string passed via an URL and sets variables in the current scope If the second parameter arr is present, variables are stored in this variable as an array elements instead I would expect that the script would result in file3php echoing, foo: foobar - but that's not the case, instead I get: foo: bar, but the url is: file3php?old=barfoo=foobar Doesn't session_start introduce all the registered vars into the current scope - and since parse_str sets varibles in the current scope why doesn't this scheme work? Thanks for listening Thomas -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP-DEV] parse_str and session vars]
Sure, Rasmus! But I'm using parse_str because file2 in my example is supposed to be a generic handler for all other scripts on my site Offcourse I could use 15 million $HTTP_GET_VARS for each registered session variable (as I wouldn't know what to expect) The reason I did write to this list - is because there obviously is something wrong with the way parse_str works and how it is supposed to work Not because I don't know how to get around this obstacle Rasmus Lerdorf wrote: You are posting to the wrong list And why are you using parse_str()? PHP automatically imports these variables for you Use $foo=$HTTP_GET_VARS['foo'] in that second script of yours Next time send your user-level question like this to php-general -Rasmus On Mon, 4 Mar 2002, Thomas Wentzel wrote: Hi, I have encountered an issue with parse_str, that I believe needs to be addressed - allthough I might be mistaken, and in that case feel free to ridicule me - and tell me to go to the general list :) Well I want to be able to do something like this: file1php: ? session_start(); session_register(foo); $foo=bar; ? form action=file2php?foo=foobar method=post input type=submit name=Go /form file2php: ? session_start(); $old=$foo; parse_str($QUERY_STRING); Header(Location: file3php?old=$oldfoo=$foo); ? file3php: ? session_start(); echo foo: $foobr; ? From the manual: (explanation for parse_str) Parses str as if it were the query string passed via an URL and sets variables in the current scope If the second parameter arr is present, variables are stored in this variable as an array elements instead I would expect that the script would result in file3php echoing, foo: foobar - but that's not the case, instead I get: foo: bar, but the url is: file3php?old=barfoo=foobar Doesn't session_start introduce all the registered vars into the current scope - and since parse_str sets varibles in the current scope why doesn't this scheme work? Thanks for listening Thomas -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp -- PHP Development Mailing List http://wwwphpnet/ To unsubscribe, visit: http://wwwphpnet/unsubphp
[PHP-DEV] Memory usage with Apache
Hello, I'm using PHP 4.0.4pl1 with Apache 1.3.14. I have a PHP script that accumulates data for insertion into a database. This script runs in peices and unset()'s variables that contain the data periodically in hopes of freeing memory for the next batch of records. Apparently it's not working that way. When I run top and run my PHP script, the httpd process runs up to 125M of memory usage, and segfaults. Is there a parameter somewhere that says that httpd can't grow to over 128M of memory usage, or that PHP can't grow to more then this amount that I can change to prevent my web server from crashing? Or perhaps a garbage cleanup routine in PHP that actually frees memory that is no longer being used (these arrays hold max 5X25 of small 10 char strings). I unset these arrays after they are placed in the database (and I free the result for the database), but memory just climbs and climbs until the script ends (if I run it with arguments that yield smaller results). Thanks, Tom -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14380 Updated: AccessViolation: oci-Problem
ID: 14380 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: IIS related Operating System: Windows2000 PHP Version: 4.0.6 New Comment: We are waiting for some extension, which are not available for 4.1. yet (pdflib). As soon as pdflib is available we can finalise testing. In the meantime we use 4.0.6 Apache. As soon as I have any news on it, I will post it. Previous Comments: [2002-01-08 02:57:13] [EMAIL PROTECTED] Any luck with PHP 4.1? [2001-12-12 08:00:51] [EMAIL PROTECTED] We will try 4.1.0 and check whether the problem is still persistent. How can I attach a file to a bug report? [2001-12-07 11:51:03] [EMAIL PROTECTED] If you have a dump you can share, do please post it to the bug report. That will help in solving it quickly. [2001-12-07 11:14:34] [EMAIL PROTECTED] PHP4.06, Windows2000, IIS5-ISAPI, Oracle8.1.7. From time to time the Webserver crashes: ACCESS VIOLATION. We have no problems with IIS-CGI or with Apache. We are in contact with Microsoft to resolve the problem. They told us to install: cscript adplus.vbs ... in order to produce a memory dump. After analysing the dump Microsoft found that the oci8 caused the problem. Is it possible to send you the dump? Would this help to resolve the bug? If you name a contact person at your side, I could ask Microsoft to contact. Edit this bug report at http://bugs.php.net/?id=14380edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14380 Updated: AccessViolation: oci-Problem
ID: 14380 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: IIS related Operating System: Windows2000 PHP Version: 4.0.6 New Comment: we are using the pdflib from www.pdflib.com (Thomas Merz. The current version is 4.0.1 for PHP4.0.6. pdflib.com stated that they will release 4.0.2, which supports 4.1.x in January. The errors occure mainly when we do reporting (with pdflib), because the reporting-scripts are very complicated (output up to 100 pages) doing hundreds of Oracle-selects. The other (non-reporting) scripts do only a few Oracle-Sqls. Previous Comments: [2002-01-10 10:17:38] [EMAIL PROTECTED] pfdlib works fine and is available for 4.1.x, where did you get it is not available? Derick [2002-01-10 10:14:47] [EMAIL PROTECTED] We are waiting for some extension, which are not available for 4.1. yet (pdflib). As soon as pdflib is available we can finalise testing. In the meantime we use 4.0.6 Apache. As soon as I have any news on it, I will post it. [2002-01-08 02:57:13] [EMAIL PROTECTED] Any luck with PHP 4.1? [2001-12-12 08:00:51] [EMAIL PROTECTED] We will try 4.1.0 and check whether the problem is still persistent. How can I attach a file to a bug report? [2001-12-07 11:51:03] [EMAIL PROTECTED] If you have a dump you can share, do please post it to the bug report. That will help in solving it quickly. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=14380 Edit this bug report at http://bugs.php.net/?id=14380edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-WIN] MSSQL connect
?php $h = server adr; //don't forget 2 change this $u = user; //don't forget 2 chage this $p = passw; //don't forget 2 change this $b = db; //don't forget 2 change this $connexion = mssql_connect($h, $u, $p); Why do you uses quotes here? mssql_select_db($b); $sql_temp = select * from test; //. $result = mssql_query($sql_temp); // ^^ //?? mssql_close($connexion); ? Here is the problem $sql != $sql_temp so the $result = NULL; because mssql_query( ) has no query to send to the MsSQL server. This should work try it out!!! Thomas omega Henning -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-WIN] MSSQL connect
I don't know who's a moron that can;t even see straight B.A.T. Svensson [EMAIL PROTECTED] wrote in message 27E647E5629ED211BF78009027289C6302157DAB@mail1">news:27E647E5629ED211BF78009027289C6302157DAB@mail1... You must be an extremely intelligent person, almost literary quoting my answer, and then pinpointing down things I already pointed out! Moron... From: Thomas omega Henning Sent: Wednesday, December 26, 2001 8:50 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-WIN] MSSQL connect ?php $h = server adr; //don't forget 2 change this $u = user; //don't forget 2 chage this $p = passw; //don't forget 2 change this $b = db; //don't forget 2 change this $connexion = mssql_connect($h, $u, $p); Why do you uses quotes here? mssql_select_db($b); $sql_temp = select * from test; //. $result = mssql_query($sql_temp); // ^^ //?? mssql_close($connexion); ? Here is the problem $sql != $sql_temp so the $result = NULL; because mssql_query( ) has no query to send to the MsSQL server. This should work try it out!!! Thomas omega Henning -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14644: file_exists() generates warning on non existent files.
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.0 PHP Bug Type: Filesystem function related Bug description: file_exists() generates warning on non existent files. file_exists generates a stat failed.. warning when the file is nonexistant. This has been reported for is_file/dir/ and friends, and sure, it might be a decent thing to do warning on those, but for this function it's simply mindboggling, the whole idea is that i do not know if the file exists or not. And temporarily setting the report level to something that won't print this warning is not just my cup of tea. Guess I should start preceeding every command with @ (j/k) -- Edit bug report at: http://bugs.php.net/?id=14644edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14644 Updated: file_exists() generates warning on non existent files.
ID: 14644 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Filesystem function related Operating System: Linux PHP Version: 4.1.0 New Comment: Great. Thanks for prompt reply. Previous Comments: [2001-12-21 10:28:28] [EMAIL PROTECTED] This is fixed in 4.2.0dev and the upcoming 4.1.1. Derick [2001-12-21 10:25:40] [EMAIL PROTECTED] file_exists generates a stat failed.. warning when the file is nonexistant. This has been reported for is_file/dir/ and friends, and sure, it might be a decent thing to do warning on those, but for this function it's simply mindboggling, the whole idea is that i do not know if the file exists or not. And temporarily setting the report level to something that won't print this warning is not just my cup of tea. Guess I should start preceeding every command with @ (j/k) Edit this bug report at http://bugs.php.net/?id=14644edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug id #14474, Apache PHP Module cannot seem to handle large amounts of output
I can confirm this error on four WinXP pro computers/installations (apache 1.3.22/php4.1.0). Reinstalled w2k(sp2) on one of then and everything worked fine on that installation. It seems like that the faster access php gets to a file the probability of a buffer dropout increases. If i do a passthrogh(); on a mp3 file over my 10mb network it runs without buffer errors but if i passthrogh(); it from a local file there are severe errors in the output. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14380 Updated: AccessViolation: oci-Problem
ID: 14380 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: IIS related Operating System: Windows2000 PHP Version: 4.0.6 New Comment: We will try 4.1.0 and check whether the problem is still persistent. How can I attach a file to a bug report? Previous Comments: [2001-12-07 11:51:03] [EMAIL PROTECTED] If you have a dump you can share, do please post it to the bug report. That will help in solving it quickly. [2001-12-07 11:14:34] [EMAIL PROTECTED] PHP4.06, Windows2000, IIS5-ISAPI, Oracle8.1.7. From time to time the Webserver crashes: ACCESS VIOLATION. We have no problems with IIS-CGI or with Apache. We are in contact with Microsoft to resolve the problem. They told us to install: cscript adplus.vbs ... in order to produce a memory dump. After analysing the dump Microsoft found that the oci8 caused the problem. Is it possible to send you the dump? Would this help to resolve the bug? If you name a contact person at your side, I could ask Microsoft to contact. Edit this bug report at http://bugs.php.net/?id=14380edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14380: AccessViolation: oci-Problem
From: [EMAIL PROTECTED] Operating system: Windows2000 PHP version: 4.0.6 PHP Bug Type: IIS related Bug description: AccessViolation: oci-Problem PHP4.06, Windows2000, IIS5-ISAPI, Oracle8.1.7. From time to time the Webserver crashes: ACCESS VIOLATION. We have no problems with IIS-CGI or with Apache. We are in contact with Microsoft to resolve the problem. They told us to install: cscript adplus.vbs ... in order to produce a memory dump. After analysing the dump Microsoft found that the oci8 caused the problem. Is it possible to send you the dump? Would this help to resolve the bug? If you name a contact person at your side, I could ask Microsoft to contact. -- Edit bug report at: http://bugs.php.net/?id=14380edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14360: Script ends on
From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: Script ends on I'm using a generated Script of the PHAKT-Software on a Windows 2000 and Apache Server. The complete Script is: ?php // *** Restrict Access To Page: Grant or deny access to this page $KT_authorizedUsers= a; $KT_authFailedURL= ../ierraccess.php; $KT_grantAccess=0; session_start(); if (isset($HTTP_SESSION_VARS[KT_Username])) { if (false || !(isset($HTTP_SESSION_VARS[KT_UserAuthorization])) || $HTTP_SESSION_VARS[KT_UserAuthorization]== || strpos($KT_authorizedUsers, $HTTP_SESSION_VARS[KT_UserAuthorization])) { $KT_grantAccess = 1; } } if (!$KT_grantAccess) { $KT_qsChar = ?; if (strpos($KT_authFailedURL, ?)) $KT_qsChar = ; $KT_referrer = $PHP_SELF; if (strlen($QUERY_STRING) 0) $KT_referrer .= ? . $QUERY_STRING; $KT_authFailedURL = $KT_authFailedURL . $KT_qsChar . accessdenied= . urlencode($KT_referrer); header(Location: $KT_authFailedURL); exit; } ? On if (strlen($QUERY_STRING) 0) $KT_referrer .= ? . $QUERY_STRING; The PHP Engine ends after the . I think PHP interpretes the as end of the Scripting Section. I hope you could help me on this. Yours Tom -- Edit bug report at: http://bugs.php.net/?id=14360edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] V_OPEN and memory
What happened to V_OPEN/V_GETCWD/... I had them in 4.0.4pl1, but they are gone in 4.0.6 ??? /Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13841 Updated: new session ID with each session_start()
ID: 13841 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: Red Hat 6.1 PHP Version: 4.0.6 New Comment: I have two servers setup exactly the same (for the most part.) I don't know much about linux and this other company put it together but both installations have the same version of Red Hat on it and I use the same exact commands to install apache/PHP on both servers. This second server processes and works with Sessions perfectly fine. NO hitches. The problem is that the server is password protected so I cannot give access to my tests.I'll see if I can get a non-protected virtual server on there for you to see. It's got to be a server installation thing, I think. What could be some issues with an OS installation which could cause this problem? Previous Comments: [2001-10-26 17:43:49] [EMAIL PROTECTED] I am making a desperate cry. I seem to be the only one on the face of the planet who has this problem. Whenever I post to the PHP-general group the discussion goes on and then ends up with someone writing me saying, gee man, I don't know. I put in a bug report about this back at php 4.0.1pl2 and it was concluded that I was using the POST value instead of GET in the form. That bug is this: http://bugs.php.net/bug.php?id=5360 Now, in PHP 4.0.6 it still plagues me and there's a program I need to run on my server and it won't run because of my session problem. Okay, so this is the deal in a nutshell. With each subsequent call to 'session_start()' instead of picking up the existing session, it creates a new PHPID. This happens whether I have the sessionID in a cookie or passed via a variable (VIA THE QUERYSTRING). I have included code for two files that I use as a demonstration so you can check the code, and I can send you to a website where you can see it in action.. Code: filename: index.php -- ? error_reporting(E_ALL); session_start(); $var1 = My var 1; $var2 = My var 2; session_register(var1); session_register(var2); ?HTML HEAD TITLESession Page 1/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo session_id(); ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR FORM ACTION=index2.php METHOD=POST Passing sessid: INPUT TYPE=TEXT VALUE=? echo session_id(); ? SIZE=40 NAME=PHPSESSIDBR VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM BR A HREF=index2.php??=SID?Try this link/A /BODY /HTML -- filename: index2.php -- ? error_reporting(E_ALL); session_start();// start session session_register(var3); // register var 3 session variable $var3 = $myvar3; ?HTML HEAD TITLESession Page 2/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo session_id(); ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR VAR3: ? echo $var3; ?BR /BODY /HTML -- in action: http://www.fromtheduke.com/session/index.php I have noticed with other pages that I have tried this on this same server that the session_start() will create a new session ID three times, on the third one, it 'sticks' and stays with me the rest of the time. here is my php.ini file which shows my session variable options: [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start= 0 ; initialize session on request startup session.cookie_lifetime = 0; lifetime in seconds of cookie ; or if 0, until browser is restarted session.use_trans_sid = 1 session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 1440; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = 0
[PHP-DEV] Bug #13841 Updated: new session ID with each session_start()
ID: 13841 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: Red Hat 6.1 PHP Version: 4.0.6 New Comment: YOU CAN MARK AS SOLVED OR BOGUS (or use this as some way to improve the system?) My sessions are fixed. I compaired the two php.ini files from the server that works and the server that didn't work. Here's the two. notice the one difference (trans-id). Working server: [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start= 0 ; initialize session on request startup session.cookie_lifetime = 3600; lifetime in seconds of cookie ; or if 0, until browser is restarted session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 1440; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = ; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length= 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length= 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes Non-working Server: [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start= 0 ; initialize session on request startup session.cookie_lifetime = 0; lifetime in seconds of cookie ; or if 0, until browser is restarted session.use_trans_sid = 1 session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 1440; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = 0; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length= 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length= 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes -- I copied over the config and now it's working fine. Previous Comments: [2001-10-29 11:09:26] [EMAIL
[PHP-DEV] Bug #13841: new session ID with each session_start()
From: [EMAIL PROTECTED] Operating system: Red Hat 6.1 PHP version: 4.0.6 PHP Bug Type: Session related Bug description: new session ID with each session_start() I am making a desperate cry. I seem to be the only one on the face of the planet who has this problem. Whenever I post to the PHP-general group the discussion goes on and then ends up with someone writing me saying, gee man, I don't know. I put in a bug report about this back at php 4.0.1pl2 and it was concluded that I was using the POST value instead of GET in the form. That bug is this: http://bugs.php.net/bug.php?id=5360 Now, in PHP 4.0.6 it still plagues me and there's a program I need to run on my server and it won't run because of my session problem. Okay, so this is the deal in a nutshell. With each subsequent call to 'session_start()' instead of picking up the existing session, it creates a new PHPID. This happens whether I have the sessionID in a cookie or passed via a variable (VIA THE QUERYSTRING). I have included code for two files that I use as a demonstration so you can check the code, and I can send you to a website where you can see it in action.. Code: filename: index.php -- ? error_reporting(E_ALL); session_start(); $var1 = My var 1; $var2 = My var 2; session_register(var1); session_register(var2); ?HTML HEAD TITLESession Page 1/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo session_id(); ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR FORM ACTION=index2.php METHOD=POST Passing sessid: INPUT TYPE=TEXT VALUE=? echo session_id(); ? SIZE=40 NAME=PHPSESSIDBR VAR 3: INPUT TYPE=TEXT VALUE=My Var 3 NAME=myvar3 INPUT TYPE=SUBMIT VALUE=goBR /FORM BR A HREF=index2.php??=SID?Try this link/A /BODY /HTML -- filename: index2.php -- ? error_reporting(E_ALL); session_start();// start session session_register(var3); // register var 3 session variable $var3 = $myvar3; ?HTML HEAD TITLESession Page 2/TITLE /HEAD BODY BGCOLOR=#FF PHPSESSID: ? echo session_id(); ?BR Var1: ? echo $var1; ?BR Var2: ? echo $var2; ?BR VAR3: ? echo $var3; ?BR /BODY /HTML -- in action: http://www.fromtheduke.com/session/index.php I have noticed with other pages that I have tried this on this same server that the session_start() will create a new session ID three times, on the third one, it 'sticks' and stays with me the rest of the time. here is my php.ini file which shows my session variable options: [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start= 0 ; initialize session on request startup session.cookie_lifetime = 0; lifetime in seconds of cookie ; or if 0, until browser is restarted session.use_trans_sid = 1 session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 1440; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = 0; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length= 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length= 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes I am at my wit's end. I NEED HELP. Please please help me oh PHP programming gods. I have no where else to turn. This problem happens with Macintosh and Windows Browsers, Netscape or internet Explorer,
[PHP-DEV] Sybase Stored Procedures
hello, I would like to use sybase stored procedures and need to know, in what way they are supportet in PHP. In the manual, one can read that stored procedures are not yet fully supported. Does anybody have any newer information on what Sybase features can be used with PHP4? Thank you very much for your help. Yours Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] enable truetype string function in gd
I realized that just after posting my question... Though solving my configure problem I still can't get freetype to work... I had everything running under php-4.0.4 (including gd and freetype 1.x) However due to the patent issues it is necessary for me to use freetype2 which isn't too bad in itself ;) Well... I saw an old submission from Wez claiming that the problems I were experiencing wasn't a PHP problem, but rather a gd problem. I tried out the little C program he included and true enough - The problem was, that gd for some reason didn't include TrueType support (allthough everything suggested that it ought to)... Well after searching high and low - I found this excellent :) link, http://www.alt-php-faq.org/local/68/ , which says that gd-1.8.x doesn't support freetype2 - and how to successfully compile gd and freetype into PHP. I realize that this has little to do as such with the forum of this mailing list, but I also believe, that many get their first experience with gd end freetype when trying to compile it into php, which sort of justifies my entry ;) Ho hum... Now I have everything up and running - or so it would seem, but when I try to utilize the imagettfbbox og imagettftext functions I get an error saying Could not find/open font. In light of the troubles with gd and freetype - it would seem likely that this problem also stems from that and not PHP - but I'm asking here anyway - because it seems that this forum is much more active than the various gd and freetype forums. Another thing... I ran through the ext/gd sources and found some functions (not included in the manual pages) namely imageftbbox and imagefttext, but whenever I try to use these functions I get an error saying that freetype2 support wasn't included in the PHP build (??) Can anybody shed some light on this? Thomas Rasmus Lerdorf wrote: I try to get the above mentioned to work with the 4.0.6 release on Linux! But even though I provide the configure script with the --enable-gd-native-ttf switch, it reports that the feature is a no go There was a slight buglet in 4.0.6. Use --enable-gd-native-tt instead. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] enable truetype string function in gd
Okay! Apparently I have to supply the full path when using imagettfbbox and imagettftext - This definitely changed from gd-1.8.x to gd-2.x - might be a good idea to add this to the documentation??? But still - There's still an issue about the imageftbbox and imagefttext functions... Thomas Thomas Wentzel wrote: I realized that just after posting my question... Though solving my configure problem I still can't get freetype to work... I had everything running under php-4.0.4 (including gd and freetype 1.x) However due to the patent issues it is necessary for me to use freetype2 which isn't too bad in itself ;) Well... I saw an old submission from Wez claiming that the problems I were experiencing wasn't a PHP problem, but rather a gd problem. I tried out the little C program he included and true enough - The problem was, that gd for some reason didn't include TrueType support (allthough everything suggested that it ought to)... Well after searching high and low - I found this excellent :) link, http://www.alt-php-faq.org/local/68/ , which says that gd-1.8.x doesn't support freetype2 - and how to successfully compile gd and freetype into PHP. I realize that this has little to do as such with the forum of this mailing list, but I also believe, that many get their first experience with gd end freetype when trying to compile it into php, which sort of justifies my entry ;) Ho hum... Now I have everything up and running - or so it would seem, but when I try to utilize the imagettfbbox og imagettftext functions I get an error saying Could not find/open font. In light of the troubles with gd and freetype - it would seem likely that this problem also stems from that and not PHP - but I'm asking here anyway - because it seems that this forum is much more active than the various gd and freetype forums. Another thing... I ran through the ext/gd sources and found some functions (not included in the manual pages) namely imageftbbox and imagefttext, but whenever I try to use these functions I get an error saying that freetype2 support wasn't included in the PHP build (??) Can anybody shed some light on this? Thomas Rasmus Lerdorf wrote: I try to get the above mentioned to work with the 4.0.6 release on Linux! But even though I provide the configure script with the --enable-gd-native-ttf switch, it reports that the feature is a no go There was a slight buglet in 4.0.6. Use --enable-gd-native-tt instead. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] enable truetype string function in gd
Hi! I try to get the above mentioned to work with the 4.0.6 release on Linux! But even though I provide the configure script with the --enable-gd-native-ttf switch, it reports that the feature is a no go ./configure --enable-modules=so --without-mysql --with-pgsql=/usr/local \ --with-apxs=/usr/sbin/apxs --with-raima --with-gd=/usr/local \ --with-freetype-dir=/usr/local/include/freetype2 --enable-gd-native-ttf \ --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 --with-zlib-dir=/usr --with-png-dir=/usr : checking whether to include GD support... yes checking whether to enable truetype string function in gd... no - This really bugs me!! Never the less... We enable it anyway checking for the location of libjpeg... yes checking for jpeg_read_header in -ljpeg... (cached) yes checking for the location of libpng... yes checking for png_info_init in -lpng... (cached) yes checking for the location of libXpm... yes checking for XpmFreeXpmImage in -lXpm... (cached) yes checking for freetype(2)... yes checking whether to include include FreeType 1.x support... no checking whether to include T1lib support... no checking for gdImageString16 in -lgd... (cached) yes checking for gdImagePaletteCopy in -lgd... (cached) yes checking for gdImageCreateFromPng in -lgd... (cached) yes checking for gdImageCreateFromGif in -lgd... (cached) no checking for gdImageWBMP in -lgd... (cached) yes checking for gdImageCreateFromJpeg in -lgd... (cached) yes checking for gdImageCreateFromXpm in -lgd... (cached) yes checking for gdImageCreateTrueColor in -lgd... (cached) no checking for gdImageSetTile in -lgd... (cached) yes checking for gdImageSetBrush in -lgd... (cached) yes checking for gdImageStringFTEx in -lgd... (cached) no checking for gdImageColorClosestHWB in -lgd... (cached) yes checking for gdImageColorResolve in -lgd... (cached) yes checking for gdImageGifCtx in -lgd... (cached) no : The Never the less... line comes from me trying to force the definition of USE_GD_IMGSTRTTF in ext/gd/config.m4... And still it doesn't work CAAARP!!! (I simply altered = yes to != yes) Any thoughts?? /T. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] LIBSYMBOL??
Can anybody tell me what I'm supposed to do with the variable LIBSYMBOL in config.m4, when creating extensions (php-4.0.6). What does it refer to? regards Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] LIBSYMBOL??
Never mind!! Incredible what you can learn when reading the source :) Thomas Wentzel wrote: Can anybody tell me what I'm supposed to do with the variable LIBSYMBOL in config.m4, when creating extensions (php-4.0.6). What does it refer to? regards Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] ZTS and PHP-4.0.6
I just went from php-4.0.4 to php-4.0.6 (linux) and now my extension won't compile... A lot of bitching anywhere I use my thread safe globals.. Did anything change with respect to this between the two versions?? /Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] apache segfaults following script execution
Hi, I'm having a strange problem that I hope some of you can answer... I've been writing an extension which I use (obviously :-) The problem is that after the script is executed (in it's entirety - even PHP_RSHUTDOWN_FUNCTION is executed) apache segfaults... I used gdb and started apache in single-thread mode (using -X) - and this is what I get: --- output starts here --- (gdb) run Starting program: /usr/sbin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x400ed431 in _IO_vfprintf (s=0xb47c, format=0x4086cc80 %s(%d) : Actual location (location was relayed)\n, ap=0xb590) at vfprintf.c:1259 1259vfprintf.c: No such file or directory. --- output ends here --- I'm in no way blind to the fact that this probably has something to do with my extension, but exactly how has eluded me for some time Thanks Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] update: [PHP-DEV] apache segfaults following script execution
Hehe... Should have said, that I'm looking for pointers as to what can cause such an error... /Thomas Thomas Wentzel wrote: Hi, I'm having a strange problem that I hope some of you can answer... I've been writing an extension which I use (obviously :-) The problem is that after the script is executed (in it's entirety - even PHP_RSHUTDOWN_FUNCTION is executed) apache segfaults... I used gdb and started apache in single-thread mode (using -X) - and this is what I get: --- output starts here --- (gdb) run Starting program: /usr/sbin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x400ed431 in _IO_vfprintf (s=0xb47c, format=0x4086cc80 %s(%d) : Actual location (location was relayed)\n, ap=0xb590) at vfprintf.c:1259 1259vfprintf.c: No such file or directory. --- output ends here --- I'm in no way blind to the fact that this probably has something to do with my extension, but exactly how has eluded me for some time Thanks Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] associative arrays
Hi! I was wondering if someone would be so nice as to post a code snippet that returns an associative array... I'm writing an extension and am only able to return an ordinary array... Alternatively I would be very interested if someone could point me to some documentation on the zend_hash_xxx functions Thanx Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Newbie writing a PHP extension
Hi Chris! I suggest you go out and by the book Web Application Development with PHP 4.0 which contains the same documents you are referring to... /Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] associative arrays
That simple, huh? What can I say - You are the man! Thanx Rasmus Lerdorf wrote: Ah, ok. It's not much harder: pval *tmp_arr; array_init(return_value); MAKE_STD_ZVAL(tmp_arr); array_init(tmp_arr); add_assoc_string(tmp_arr, string index, foo, 1); zend_hash_index_update(Z_ARRVAL_P(return_value), 5, tmp_arr, sizeof(tmp_arr), NULL); This will create $whatever[5]['string index'] = 'foo' Or if you want a string index at the top level: zend_hash_update(Z_ARRVAL_P(return_value), bar, strlen(bar)+1, tmp_arr, sizeof(tmp_arr), NULL); This will create $whatever['bar']['string index'] = 'foo'; -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: Hello Jani, I've tried as recommended the PHP_EXIF.DLL and and there comes an error, too. PHP without any extensions works without no problems. The Line within PHP.INI looks like: ; Directory in which the loadable extensions (modules) reside. extension_dir = C:\PHP\extensions\ For me it looks like the PHP.EXE from the distribution IIS (without DLL's in the package) won't fit with the DLL's from the 2nd distribution for Apache. Both for Windows. Previous Comments: [2001-08-09 16:59:21] [EMAIL PROTECTED] Does PHP work if you disable every extension? If so, try enabling ONLY this extension: php_exif.dll (it definately doesn't need any extra libs) If it works, then try enabling php_oci8.dll too. btw. What is your extension_dir line in php.ini? --Jani [2001-08-09 07:11:30] [EMAIL PROTECTED] I'm not very familiar with the Dependency Walker. As far as I can see, there are no errors logged. But I can send you the DWI-File if you want to see the Image. [2001-08-09 06:02:27] [EMAIL PROTECTED] could you try opening php_oci8.dll in Dependency Walker (http://www.dependencywalker.com/)? does it report any problems? [2001-08-09 05:56:01] [EMAIL PROTECTED] The OCI.DLL is within C:\Oracle\Ora81\bin; which is in the PATH [2001-08-09 04:47:46] [EMAIL PROTECTED] which of the directories in your %PATH% contains oci.dll? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12642 Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Dynamic loading Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: Hello Jani, the DLL's are really in this Path and .phpinfo() shows Directive Local ValueMaster Value ... extension_dir E:\PHP\extensions\ E:\PHP\extensions\ Previous Comments: [2001-08-10 03:34:46] [EMAIL PROTECTED] And also, where are the extensions located? Are they in C:\php\extensions\ ??? [2001-08-10 03:33:58] [EMAIL PROTECTED] What does phpinfo() output for extension_dir ?? --Jani [2001-08-10 03:12:09] [EMAIL PROTECTED] Hello Jani, I've tried as recommended the PHP_EXIF.DLL and and there comes an error, too. PHP without any extensions works without no problems. The Line within PHP.INI looks like: ; Directory in which the loadable extensions (modules) reside. extension_dir = C:\PHP\extensions\ For me it looks like the PHP.EXE from the distribution IIS (without DLL's in the package) won't fit with the DLL's from the 2nd distribution for Apache. Both for Windows. [2001-08-09 16:59:21] [EMAIL PROTECTED] Does PHP work if you disable every extension? If so, try enabling ONLY this extension: php_exif.dll (it definately doesn't need any extra libs) If it works, then try enabling php_oci8.dll too. btw. What is your extension_dir line in php.ini? --Jani [2001-08-09 07:11:30] [EMAIL PROTECTED] I'm not very familiar with the Dependency Walker. As far as I can see, there are no errors logged. But I can send you the DWI-File if you want to see the Image. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12642 Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. Previous Comments: [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. [2001-08-09 02:04:48] [EMAIL PROTECTED] I'm sorry to say this, but I have a complete ORACLE-Installation (Client, Development, Administration), instead other Applications won't run and I have to administrate our ORACLE Installations. The Do's and Don'ts says nothing about missing PHP-Files like PHP_OCI8.DLL within the distribution of the WIndows Installer for IIS. This File won't come with ORACLE. After some looks I'm missing other PHP_*.DLL's within this distribution, too. Where can I get these files for the PHP.EXE in this distribution. As you can see below, the other DLL's (Windows Distribution CGI - Apache) won't work with this PHP.EXE [2001-08-08 13:03:54] [EMAIL PROTECTED] You need to have the oracle client installed on your system. And you need to read bugs-dos-and-donts BEFORE you submit any 'bug' reports. --Jani [2001-08-08 03:55:02] [EMAIL PROTECTED] I'm using PHP 4.0.6 on a Windows 2000 + IIS 5 Server. I've downloaded the Binary with the Installer for Windows with IIS. After Installation there are nor php_*.dll Files. Now I've downloaded the Windows/Apache Binary. There are php_*.dll's in the extensions directory. But when I try to use them (php.ini is setup up!!), I'll get an erro Message: Unable to load dynamic link library 'C:\Program Files\PHP\extensions\php_oci8.dll' The specified module could not be found. But the DLL is there. Where can I get the correct dll's for the Windows IIS-Binary which are not within the installer or what else can I do?? Thanks for your Support Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: The OCI.DLL is within C:\Oracle\Ora81\bin; which is in the PATH Previous Comments: [2001-08-09 04:47:46] [EMAIL PROTECTED] which of the directories in your %PATH% contains oci.dll? [2001-08-09 04:25:14] [EMAIL PROTECTED] But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. [2001-08-09 02:04:48] [EMAIL PROTECTED] I'm sorry to say this, but I have a complete ORACLE-Installation (Client, Development, Administration), instead other Applications won't run and I have to administrate our ORACLE Installations. The Do's and Don'ts says nothing about missing PHP-Files like PHP_OCI8.DLL within the distribution of the WIndows Installer for IIS. This File won't come with ORACLE. After some looks I'm missing other PHP_*.DLL's within this distribution, too. Where can I get these files for the PHP.EXE in this distribution. As you can see below, the other DLL's (Windows Distribution CGI - Apache) won't work with this PHP.EXE [2001-08-08 13:03:54] [EMAIL PROTECTED] You need to have the oracle client installed on your system. And you need to read bugs-dos-and-donts BEFORE you submit any 'bug' reports. --Jani The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12642 Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: I'm not very familiar with the Dependency Walker. As far as I can see, there are no errors logged. But I can send you the DWI-File if you want to see the Image. Previous Comments: [2001-08-09 06:02:27] [EMAIL PROTECTED] could you try opening php_oci8.dll in Dependency Walker (http://www.dependencywalker.com/)? does it report any problems? [2001-08-09 05:56:01] [EMAIL PROTECTED] The OCI.DLL is within C:\Oracle\Ora81\bin; which is in the PATH [2001-08-09 04:47:46] [EMAIL PROTECTED] which of the directories in your %PATH% contains oci.dll? [2001-08-09 04:25:14] [EMAIL PROTECTED] But why worls my other Applications whcih are using OCI, too. It seems more to be a compile/linking error. Because it happens on the first call of the DLL. Are there any differences between the both Binaries (IIS and CGI/Apache)? I saw, that thy have the same date, bit not the same time. And where are the DLL's for the IIS Shipment? There are no DLL's within the ZIP-File. (The File's only 738 K). I've tested the same with the other DLL's out of the CGI-Shipment together IIS PHP.EXE Here I have the same calling Problemm i.e. PHP_LDAP.DLL, PHP_MSSQL.DLL, PHP_PRINTER.DLL. I have a complete MS SQL-Workbench on my machine, too. I don't think it's a PATH-Problem Here's the complete PATH from my machine: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\COMMON~1\RandSync\TRANSL~1\LtNts4\;C:\Oracle\Ora81\orb\bin;C:\MYSQL\BIN;C:\PHP;C:\PHP\DLL;C:\PHP\EXTENSIONS; And the ORACLE-Settings are standard. [2001-08-09 02:33:26] [EMAIL PROTECTED] I'm sorry to say this, but if the dll is there as you say it is, and you still get that message, then that means your Oracle install isn't all that well. It requires some Oracle dlls in the %PATH%, and it's your responsibility to have them properly installed. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=12642 Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642: Loading php_oci8 fails
From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.0.6 PHP Bug Type: *Configuration Issues Bug description: Loading php_oci8 fails I'm using PHP 4.0.6 on a Windows 2000 + IIS 5 Server. I've downloaded the Binary with the Installer for Windows with IIS. After Installation there are nor php_*.dll Files. Now I've downloaded the Windows/Apache Binary. There are php_*.dll's in the extensions directory. But when I try to use them (php.ini is setup up!!), I'll get an erro Message: Unable to load dynamic link library 'C:\Program Files\PHP\extensions\php_oci8.dll' The specified module could not be found. But the DLL is there. Where can I get the correct dll's for the Windows IIS-Binary which are not within the installer or what else can I do?? Thanks for your Support -- Edit bug report at: http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12655: date-format problem
From: [EMAIL PROTECTED] Operating system: Win2k PHP version: 4.0.6 PHP Bug Type: MSSQL related Bug description: date-format problem webserver: IIS5 (Win2k) php-version: php4.0.6 (CGI) db-server: MS SQL Server 2000 I've run into problems when fetching fields of type datetime from the database. When using the MS SQL Query Analyzer I get the dates formated like this out of the database: 2001-06-08 08:14:40.000 When using php to send my queries (mssql_query) to the database I get the dates formated like this: 08 06 2001 8:14 In my application I'd need the same format as i get it in the Query-Analyzer. -- Edit bug report at: http://bugs.php.net/?id=12655edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12642 Updated: Loading php_oci8 fails
ID: 12642 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: I'm sorry to say this, but I have a complete ORACLE-Installation (Client, Development, Administration), instead other Applications won't run and I have to administrate our ORACLE Installations. The Do's and Don'ts says nothing about missing PHP-Files like PHP_OCI8.DLL within the distribution of the WIndows Installer for IIS. This File won't come with ORACLE. After some looks I'm missing other PHP_*.DLL's within this distribution, too. Where can I get these files for the PHP.EXE in this distribution. As you can see below, the other DLL's (Windows Distribution CGI - Apache) won't work with this PHP.EXE Previous Comments: [2001-08-08 13:03:54] [EMAIL PROTECTED] You need to have the oracle client installed on your system. And you need to read bugs-dos-and-donts BEFORE you submit any 'bug' reports. --Jani [2001-08-08 03:55:02] [EMAIL PROTECTED] I'm using PHP 4.0.6 on a Windows 2000 + IIS 5 Server. I've downloaded the Binary with the Installer for Windows with IIS. After Installation there are nor php_*.dll Files. Now I've downloaded the Windows/Apache Binary. There are php_*.dll's in the extensions directory. But when I try to use them (php.ini is setup up!!), I'll get an erro Message: Unable to load dynamic link library 'C:\Program Files\PHP\extensions\php_oci8.dll' The specified module could not be found. But the DLL is there. Where can I get the correct dll's for the Windows IIS-Binary which are not within the installer or what else can I do?? Thanks for your Support Edit this bug report at http://bugs.php.net/?id=12642edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: session_end/session_readonly
Hi, Daniel Gustafsson wrote: Maybe this have been discussed but I can't seem to find anything inthe archives or on the net. Related : - Post to -dev titled Re: session_readonly() documented but not implemented?! (22/07/2001) - Bug #12267 (and followups in -dev) According to the CVS logs, it's in progress : 2001-07-11 09:27 hholzgra * php_session.h, session.c: cleanup in preparation for session_readonly() Regards, -tom -- == Thomas.Morin @webmotion.comSysAdmin/RD == Phone: +1 613 731 4046 ext113 \Fax: +1 613 260 9545 == PGP/keyID: 8CEA233D == PGP/KeyFP: 503BF6CFD3AE8719377B832A02FB94E08CEA233D -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #12267 Updated: Session (concurrency ?) problem
Hello Sascha, Well... In the current case, even if it is not the cleanest solution, calling session_end before making the redirection would solve my problem in a acceptable manner. The model described in this function documentation is nice, and the existence of session_end and session_read_only function seems to be is really relevant in the case of concurrent access to the same session using the files session handler (useful for people using frames as mentionned). Do you know if you or somebody else plan to implement this function soon ? Thank you very much ! Regards, -tom -- == Thomas.Morin @webmotion.comSysAdmin/RD == Phone: +1 613 731 4046 ext113 \Fax: +1 613 260 9545 == PGP/keyID: 8CEA233D == PGP/KeyFP: 503BF6CFD3AE8719377B832A02FB94E08CEA233D -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12267 Updated: Session (concurrency ?) problem
ID: 12267 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: I would tend to think that : - make the file session handler race safe- make the mm session handler race safe - make the a MySQL session handler race safe - make the a PostgreSQL session handler race safe - make whatever other session handlers race safe - ... ...can become code functionnality duplication. No ? Solving the problem for all handlers by locking the session at a higher level would appear to me as the most reliable and elegant solution. But I have to admit I don't know the internals of php to know if it is possible or not. I'm really surprised, because when I saw the session_end and session_readonly documentation, I thought that proper locking was made (or at least would be made at some point) in sessions, but your are explaining to me that this is not the case... so I have to admit I don't really understand what I should do... Quote from http://www.ca.php.net/manual/en/function.session-end.php : [...]as session data is locked to prevent concurrent writes only one script may operate on a session at any time - For the mm handler, is a fix planned ? - Is there a session handler which would be race safe (files ?) ? Previous Comments: [2001-07-20 08:31:31] [EMAIL PROTECTED] Comments from Sascha Schumann on the php-dev list: The fact is a similar problem is happening with the mm module, but here I can't insert error_log to be sure... is this session handler race safe ? Nope. And I'm surprised that this concurrency issue has to be solved on a per handler basis : isn't it functionnality duplication ? isn't this a tricky trap for handler programmers ? is this mentionned in the documentation ? Locking a record in your database is not duplication of functionality. [2001-07-20 08:30:33] [EMAIL PROTECTED] Comments on the php-dev list, by Sascha Schumann: This solved the problem and I concluded the bug was only due to my fault : I should have locked my session table (or row...) to avoid race conditions and concurrency problems. That is right. The session storage handlers have to perform locking themselves, if they are supposed to be suited for concurrent accesses. [2001-07-19 16:57:40] [EMAIL PROTECTED] The fact is a similar problem is happening with the mm module, but here I can't insert error_log to be sure... is this session handler race safe ? And I'm surprised that this concurrency issue has to be solved on a per handler basis : isn't it functionnality duplication ? isn't this a tricky trap for handler programmers ? is this mentionned in the documentation ? [2001-07-19 15:49:12] [EMAIL PROTECTED] Sorry for the layout, my 2 columns are broken. I also changed the 'Type' of the bug to 'Session related'. [2001-07-19 15:47:46] [EMAIL PROTECTED] While testing a php apllication, I found that I had some trouble with session variables (php4 native sessions, not phplib's crappy ones), at this point I was using a custom MySQL session handler (with session_set_save_handler). After adding some error_log calls in my custom session handler functions, I managed to see that the problem was coming from the fact that a session was reopened before the current one was written to the database : (in chronological order) request Arequest B HTTP request A is made on page1.php session open by session_start: session variable A equals 0 request A is being treated: session variable A is set to 1 redirection is made with header() to page2.php -- request B is made on page2.phpA exit() session open by session _start session variable A equals 0 treatment made by my application: no change to make to variable A if variable A is 0 php saves the session = A is stored with value 1 exit() php saves the session = A is stored with value 0 And in the end, A ends up being 0, which is not what it should be. I found a way of making the bug go away (for a moment) : make a sleep(2) in my session 'open' handler. :))) This solved the problem and I concluded the bug was only
[PHP-DEV] Bug #12266: max execution time reached during session_start with mm session handler
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Session related Bug description: max execution time reached during session_start with mm session handler In have a bunch of those errors in my logs : PHP Fatal error: Maximum execution time of 30 seconds exceeded in [file] line 335 On line 335 of this file, I just have session_start(). This error happens only from time to time (a dozen times a day, for about 5000 requests), til today I found no way to reproduce it. I'm running php 4.0.6. with session.save_handler = mm.I'm using libmm1 version 1.1.3 Glibc version is 2.1.3 on a linux 2.2.20pre3 kernel running debian 2.2. -- Edit bug report at: http://bugs.php.net/?id=12266edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12267: Session (concurrency ?) problem
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.6 PHP Bug Type: Unknown/Other Function Bug description: Session (concurrency ?) problem While testing a php apllication, I found that I had some trouble with session variables (php4 native sessions, not phplib's crappy ones), at this point I was using a custom MySQL session handler (with session_set_save_handler). After adding some error_log calls in my custom session handler functions, I managed to see that the problem was coming from the fact that a session was reopened before the current one was written to the database : (in chronological order) request Arequest B HTTP request A is made on page1.php session open by session_start: session variable A equals 0 request A is being treated: session variable A is set to 1 redirection is made with header() to page2.php -- request B is made on page2.phpA exit() session open by session _start session variable A equals 0 treatment made by my application: no change to make to variable A if variable A is 0 php saves the session = A is stored with value 1 exit() php saves the session = A is stored with value 0 And in the end, A ends up being 0, which is not what it should be. I found a way of making the bug go away (for a moment) : make a sleep(2) in my session 'open' handler. :))) This solved the problem and I concluded the bug was only due to my fault : I should have locked my session table (or row...) to avoid race conditions and concurrency problems. Then I thought that such a locking should have been done by the php session layer itself, because this issue is common to all session handlers you can use or define. And I found in the online documentation session_end and session_readonly which seemingly were tackling with similar concurrency issue, and I concluded this was worked on and would probably be solved in some next release, but php 4.0.6 doesn't solve the problem, and the session_end and session_readonly functions - though they appear in the documentation - are not even appearing in the CVS code. So my question : is this really a known issue ? is a fix for this planned soon ? Thank you !! -- Edit bug report at: http://bugs.php.net/?id=12267edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12267 Updated: Session (concurrency ?) problem
ID: 12267 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Unknown/Other Function Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: Sorry for the layout, my 2 columns are broken. I also changed the 'Type' of the bug to 'Session related'. Previous Comments: [2001-07-19 15:47:46] [EMAIL PROTECTED] While testing a php apllication, I found that I had some trouble with session variables (php4 native sessions, not phplib's crappy ones), at this point I was using a custom MySQL session handler (with session_set_save_handler). After adding some error_log calls in my custom session handler functions, I managed to see that the problem was coming from the fact that a session was reopened before the current one was written to the database : (in chronological order) request Arequest B HTTP request A is made on page1.php session open by session_start: session variable A equals 0 request A is being treated: session variable A is set to 1 redirection is made with header() to page2.php -- request B is made on page2.phpA exit() session open by session _start session variable A equals 0 treatment made by my application: no change to make to variable A if variable A is 0 php saves the session = A is stored with value 1 exit() php saves the session = A is stored with value 0 And in the end, A ends up being 0, which is not what it should be. I found a way of making the bug go away (for a moment) : make a sleep(2) in my session 'open' handler. :))) This solved the problem and I concluded the bug was only due to my fault : I should have locked my session table (or row...) to avoid race conditions and concurrency problems. Then I thought that such a locking should have been done by the php session layer itself, because this issue is common to all session handlers you can use or define. And I found in the online documentation session_end and session_readonly which seemingly were tackling with similar concurrency issue, and I concluded this was worked on and would probably be solved in some next release, but php 4.0.6 doesn't solve the problem, and the session_end and session_readonly functions - though they appear in the documentation - are not even appearing in the CVS code. So my question : is this really a known issue ? is a fix for this planned soon ? Thank you !! Edit this bug report at http://bugs.php.net/?id=12267edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12267 Updated: Session (concurrency ?) problem
ID: 12267 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: The fact is a similar problem is happening with the mm module, but here I can't insert error_log to be sure... is this session handler race safe ? And I'm surprised that this concurrency issue has to be solved on a per handler basis : isn't it functionnality duplication ? isn't this a tricky trap for handler programmers ? is this mentionned in the documentation ? Previous Comments: [2001-07-19 15:49:12] [EMAIL PROTECTED] Sorry for the layout, my 2 columns are broken. I also changed the 'Type' of the bug to 'Session related'. [2001-07-19 15:47:46] [EMAIL PROTECTED] While testing a php apllication, I found that I had some trouble with session variables (php4 native sessions, not phplib's crappy ones), at this point I was using a custom MySQL session handler (with session_set_save_handler). After adding some error_log calls in my custom session handler functions, I managed to see that the problem was coming from the fact that a session was reopened before the current one was written to the database : (in chronological order) request Arequest B HTTP request A is made on page1.php session open by session_start: session variable A equals 0 request A is being treated: session variable A is set to 1 redirection is made with header() to page2.php -- request B is made on page2.phpA exit() session open by session _start session variable A equals 0 treatment made by my application: no change to make to variable A if variable A is 0 php saves the session = A is stored with value 1 exit() php saves the session = A is stored with value 0 And in the end, A ends up being 0, which is not what it should be. I found a way of making the bug go away (for a moment) : make a sleep(2) in my session 'open' handler. :))) This solved the problem and I concluded the bug was only due to my fault : I should have locked my session table (or row...) to avoid race conditions and concurrency problems. Then I thought that such a locking should have been done by the php session layer itself, because this issue is common to all session handlers you can use or define. And I found in the online documentation session_end and session_readonly which seemingly were tackling with similar concurrency issue, and I concluded this was worked on and would probably be solved in some next release, but php 4.0.6 doesn't solve the problem, and the session_end and session_readonly functions - though they appear in the documentation - are not even appearing in the CVS code. So my question : is this really a known issue ? is a fix for this planned soon ? Thank you !! Edit this bug report at http://bugs.php.net/?id=12267edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Bug #11304 Updated: memory leak
No, but it doesn't take much (I'm more of a C programmer than a PHP programmer). Just write a script that uses the same variable and keep assigning it new XML documents. You'll memory keeps getting bigger and bigger until the system falls apart. This is what happens when php runs under Apache. To test it in stand alone mode (which is how we debugged it) just put the assignment in a loop. It only took our system 10 seconds or so to break. PS. I forgot my password so I couldn't update the database. When I asked it to mail me my password it told me it was empty--but that doesn't work either. I'll have to wait until I get my Visor back to discover what the password is (if I set one--I don't remember). -- .tom -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Cannot use uniqueidentifier
From: [EMAIL PROTECTED] Operating system: WINNT4.0 PHP version: 4.0.6 PHP Bug Type: MSSQL related Bug description: Cannot use uniqueidentifier (Apache 1.3.20, PHP4.0.64.0.4,MSSQL70) Cannot work with the MSSQL-uniqueidentifier. e.g. I need to use following select in php: select newid() as id; normally I would get something like this id={874E725E-03A0-44C7-BB0B-E52C7EC74B9F} but the vars only get cryptical codes like äOEgøü?O²wEURÕ® What can I do? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] [Fwd: Memory leak in domxml?]
After opening the bug at php.net, I was expecting it might have shown-up here, but it may not have due to the news server being down. Just in case, here it is. -- .tom Path: spln!rex!extra.newsguy.com!newsp.newsguy.com!news2 From: Thomas Gagne [EMAIL PROTECTED] Newsgroups: alt.php Subject: Memory leak in domxml? Date: Sun, 03 Jun 2001 15:15:31 -0400 Organization: eFinNet, Corp. Message-ID: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] NNTP-Posting-Host: p-812.newsdawg.com Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en Xref: spln alt.php:16790 Has anyone noticed httpd children growing continuously with PHP scripts that use domxml? One of our programmers noticed this Friday. He's using the latest php (v *.5??). Maybe it's just us? -- .tom Path: spln!rex!extra.newsguy.com!newsp.newsguy.com!news2 From: Thomas Gagne [EMAIL PROTECTED] Newsgroups: alt.php Subject: Partial Fix: (was Re: Memory leak in domxml?) Date: Tue, 05 Jun 2001 20:19:50 -0400 Organization: eFinNet, Corp. Message-ID: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] NNTP-Posting-Host: p-905.newsdawg.com Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en Xref: spln alt.php:17061 I have a patch described in: http://www.php.net/bugs.php?id=11304 that fixes part of the memory leak. There's still another one in there but it doesn't leak nearly as bad. It's caused by the -children() function (php_if_domxml_children). -- .tom Path: spln!rex!extra.newsguy.com!newsp.newsguy.com!news1 From: Thomas Gagne [EMAIL PROTECTED] Newsgroups: alt.php Subject: Re: Another memory leak fixed Date: Fri, 08 Jun 2001 00:18:27 -0400 Organization: eFinNet, Corp. Message-ID: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] NNTP-Posting-Host: p-790.newsdawg.com Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en Xref: spln alt.php:17251 Another bug fixed. in php_domxml.c (4.0.5), PHP_FUNCTION(domxml_dumpmem), the memory allocated by xmlDocMemoryDump(), must be freed. Problem is, the RETURN_STRINGL macro defined in Zend/zend_API.h doesn't release the memory. We create another macro, identical to RETURN_STRINGL, except that it frees the memory pointer before returning. #define FREE_RETURN_STRINGL(s,l,duplicate) {\ char *__s=(s); int __l=l; \ return_value-value.str.len = __l; \ return_value-value.str.val = (duplicate?estrndup(__s,__l):__s);\ return_value-type = IS_STRING; \ free(s);\ return; \ } -- .tom -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11592: need for an a SIGALRM based timeout mecanism
From: [EMAIL PROTECTED] Operating system: irrelevant PHP version: 4.0.5 PHP Bug Type: Feature/Change Request Bug description: need for an a SIGALRM based timeout mecanism As mentionned in #9676, in #8595 and in comments in the set_time_limit function online manual page, set_time_limit seems to be not suitable to solve some problems like : - fopen on a url for which the distant server is not responding - exec an external program which hangs - trying to resolve some DNS name - sleep() - etc. The better solution I've read was a suggestion to use SOAP or XML-RPC to wrap such requests... this would be like using a hammer to kill a fly... :) It would be _great_ to have a mecanism (based on an alarm signal or similar for instance) to be able to define a timeout on all low-level functions (or at least some of them like fopen, fsockopen, exec, gethostby...). Such a missing feature can be a show stopper one for people needing to retrieve data from an (unreliable?) external datafeed for instance. -- Edit Bug report at: http://bugs.php.net/?id=11592edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11476 Updated: Weird random chars are generated in the script!
ID: 11476 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating system: Linux 2.4.2 PHP Version: 4.0.5 Description: Weird random chars are generated in the script! When I generate some hex-color code the outcome is fare from expected. The best way to explain it would be by an example: http://www.edimag.dk/bug/backup_index.php and the source: http://www.edimag.dk/bug/backup_index.phps My compile command: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr' '--enable-trans-sid' '--with-gd' '--with-pdflib=/usr/local' '--with-ttf' '--with-sybase=/usr/local/freetds/' '--with-jpeg' (Update 2001-06-14: I tried it on a Linux 2.2.5 with PHP 4.0.4pl1 installed with the same error) /watson Previous Comments: --- [2001-06-14 00:44:46] [EMAIL PROTECTED] Reproduced under 4.0.6RC3. I get segfault with this. --- [2001-06-13 19:35:23] [EMAIL PROTECTED] When I generate some hex-color code the outcome is fare from expected. The best way to explain it would be by an example: http://www.edimag.dk/bug/backup_index.php and the source: http://www.edimag.dk/bug/backup_index.phps My compile command: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr' '--enable-trans-sid' '--with-gd' '--with-pdflib=/usr/local' '--with-ttf' '--with-sybase=/usr/local/freetds/' '--with-jpeg' /watson --- Full Bug description available at: http://bugs.php.net/?id=11476 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11476: Weird random chars are generated in the script!
From: [EMAIL PROTECTED] Operating system: Linux 2.4.2 PHP version: 4.0.5 PHP Bug Type: Unknown/Other Function Bug description: Weird random chars are generated in the script! When I generate some hex-color code the outcome is fare from expected. The best way to explain it would be by an example: http://www.edimag.dk/bug/backup_index.php and the source: http://www.edimag.dk/bug/backup_index.phps My compile command: './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr' '--enable-trans-sid' '--with-gd' '--with-pdflib=/usr/local' '--with-ttf' '--with-sybase=/usr/local/freetds/' '--with-jpeg' /watson -- Edit Bug report at: http://bugs.php.net/?id=11476edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] copyright question for ext_skel generated source
hi, i want to build in php extension support into the kdevelop applikation wizards, to generate a basic source Makefile construct alike this generated by ext_skel. At the top of the .c and .h files is an header which showed an copyright of this generated source to the php group. if i use these generated source, and put in there my own stuff and modify them, then its not allowed to put these source under a different licence, isn't it? (normally is generated source licence free, so this confuse me a little bit) can i have the permission, to create these basefiles with the application wizard of kdevelop? regards, tf -- -- http://phporacleadmin.org http://tfromm.com http://inubit.com Go away or I will replace You with a small PHP script! -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10841 Updated: Only last(?) of multiple mysql_pconnect() connections get reused
ID: 10841 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: MySQL related Operating system: Linux 2.2.19 PHP Version: 4.0.4 Description: Only last(?) of multiple mysql_pconnect() connections get reused Ok, hang on 'till weekend (production site update neccessary :-/) Thomas Previous Comments: --- [2001-05-14 07:18:41] [EMAIL PROTECTED] Please try PHP 4.0.5 --Jani --- [2001-05-13 18:50:59] [EMAIL PROTECTED] After doing multiple (say 3) mysql_pconnect() from within one page, as suspected the number of mysql threads increases, but only the last connection made is being reused by subsequent calls to mysql_pconnect from other pages/requests. This is a bit unconfirmed, since I don't have the time and resources right now, but tests on a production site (which has crashed very often the last time) showed that the following code cut down the number of mysql threads at least tenfold: if (!@mysql_select_db (test)) { mysql_pconnect(db,user,pass) or die (No DB:.mysql_error()); mysql_select_db (test) or die (database does not exist: .mysql_error()); } --- Full Bug description available at: http://bugs.php.net/?id=10841 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10841: Only last(?) of multiple mysql_pconnect() connections get reused
From: [EMAIL PROTECTED] Operating system: Linux 2.2.19 PHP version: 4.0.4 PHP Bug Type: MySQL related Bug description: Only last(?) of multiple mysql_pconnect() connections get reused After doing multiple (say 3) mysql_pconnect() from within one page, as suspected the number of mysql threads increases, but only the last connection made is being reused by subsequent calls to mysql_pconnect from other pages/requests. This is a bit unconfirmed, since I don't have the time and resources right now, but tests on a production site (which has crashed very often the last time) showed that the following code cut down the number of mysql threads at least tenfold: if (!@mysql_select_db (test)) { mysql_pconnect(db,user,pass) or die (No DB:.mysql_error()); mysql_select_db (test) or die (database does not exist: .mysql_error()); } -- Edit Bug report at: http://bugs.php.net/?id=10841edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Bug #10676 Updated: sybase_connect
What version of the Sybase CT Libs are you using here? In Sybase Common-Library/11.1.1/P/Linux, the net_close symbol has been changed to syb_net_close. According to sybdb.h, 10.0.1... that would explain a few things. ^_^ Thanks. -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Shaun M. ThomasINN Database Programmer | | Phone: (309) 743-0812 Fax : (309) 743-0830| | Email: [EMAIL PROTECTED]AIM : trifthen | | Web : hamster.lee.net | | | | Most of our lives are about proving something, either to | | ourselves or to someone else. | | -- Anonymous | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Suggestion for in_array
Perhaps having in_array return the index for the element that contains the needle. That would be very useful. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10364: Exec and system always return -1
From: [EMAIL PROTECTED] Operating system: RedHat Linux 2.2.16 PHP version: 4.0.4pl1 PHP Bug Type: *General Issues Bug description: Exec and system always return -1 I believe my problem has been described earlier as bug #7324 but that bug has been closed, and I couldn't figure out how to follow-up on a closed bug ...so here comes: It seems like exec and system calls always return -1. Under 'User Contributed Notes' at http://www.php.net/manual/en/function.exec.php [EMAIL PROTECTED] writes: 'When I compiled php with "--enable-sigchild", all calls to exec set return_var to -1. When I recompiled without "--enable-sigchild", all calles to exec set return_var to the expected value.' My PHP is compiled with "--enable-sigchild". I haven't tried without it. I have put some test-code at http://intra.dipcard.com/people/tlk/return-values/. regards Thomas L. Kjeldsen -- Edit Bug report at: http://bugs.php.net/?id=10364edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Shared memory in extensions
Alexander! You're absolutely right - that was exactly what I had done! Hmm I guess that at his point I have noone fooled :) I'm totally new to all this shm stuff and PHP extensions or rather the intrinsic details of their 'inner' workings... I simply figured that if I allocate a shared memory segment in PHP_MINIT_FINCTION then it should be destroyed in PHP_MSHUTDOWN_FUNCTION. The error I did (I reckon) was to compile and replace the PHP-module before restarting apache. This way the new PHP_MSHUTDOWN_FUNCTION was called before PHP_MINIT_FUNCTION. Where can I find a good explanation as to what the differences are between MINIT, RINIT, MSHUTDOWN and RSHUTDOWN? hehe - how would one go about removing a shared memory segment manually?? Well thank you all (Alexander in particular) for your answers they helped alot Thomas Alexander Feldman wrote: Hi Thomas, I tried to create a shared segment of size 5 megabytes in the PHP_MINIT_FUNCTION and I had no problems. The situation you described seems as you have called shmctl with IPC_RMID but not everyone had detached from the segment. Then you tried to use shmget and it failed - remove manually the shared memory segment and try again. -- Alexander Feldman Zend Technologies Ltd. phone: +972 3 6139665 ext. 113, fax: +972 3 6139671 http://www.zend.com/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Shared memory in extensions
Hi Can anybody help me? I'm trying to allocate some shared memory in the PHP_MINIT_FUNCTION - but it fails everytime during the shmget function. I then did a little stand-alone C-prog, that did the same (tried to allocate 3,5M of mem) and it works fine - everytime! Is there some issued when using shared mem in php extensions? BR Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Shared memory in extensions
Linux! RedHat 6.2, Apache 1.3.14, PHP 4.0.4pl1 I forgot to mention that because shmget fails and that it does so in PHP_MINIT_FUNCTION, apache wil not start! Thomas I compile the module _into_ PHP due to the Alexander Feldman wrote: On Mon, 2 Apr 2001, Thomas Wentzel wrote: Hi Can anybody help me? I'm trying to allocate some shared memory in the PHP_MINIT_FUNCTION - but it fails everytime during the shmget function. I then did a little stand-alone C-prog, that did the same (tried to allocate 3,5M of mem) and it works fine - everytime! Is there some issued when using shared mem in php extensions? On what platform is this? BR Thomas -- Alex -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Shared memory in extensions
shmid=shmget((key_t)5346,sizeof(dbinfo),0666|IPC_CREAT); which returns -1 I just found something about a patch to apache, that should enable som shared memory pools across http session! Is this something I should use? It was a rather old patch (for apache 1.3.4/5)... Thanx Thomas Alexander Feldman wrote: On Mon, 2 Apr 2001, Thomas Wentzel wrote: Linux! RedHat 6.2, Apache 1.3.14, PHP 4.0.4pl1 I forgot to mention that because shmget fails and that it does so in PHP_MINIT_FUNCTION, apache wil not start! With what parameters are you calling shmget? What is the errno after this call? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Global variables in extensions
Hi! I have a problem that is driving me crazy. I need to allocate some memory that will be available throughout a session. Firstly a database connection is established, but at the same time I read all relevant information about the db (records, attributes, typedeclarations and such and such). This is a rather lengthy process so I am trying to store these information in memory for later retrieval. This is the part, that doesn't work. Whenever a new page is loaded the information is lost. I have tried using static (global) variables, and I have tried the ZEND_BEGIN/END_MODULE_GLOBALS. About the ZEND_BEGIN/END... approach: the std. skeleton defines these macros: #ifdef ZTS #define RAIMAG(v) (raima_globals-v) #define RAIMALS_FETCH() php_raima_globals *raima_globals=ts_resource(raima_globals_id) #else #define RAIMAG(v) (raima_globals.v) #define RAIMALS_FETCH() #endif How do I utilize ZTS? Where is raima_globals_id defined? I do set a variable in PHP_MINIT_FUNCTION that variable is always set! But any other variables from the ZEND_BEGIN/END_MODULE_GLOBALS section (phew) that is set later do not remember their value??? Why is that? Thanks Thomas -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]