[PHP-DEV] Bug #15120 Updated: Netscape sessions contain no data
ID: 15120 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: What is the URL for downloading your cart? Does this happen with 4.1.1? Previous Comments: [2002-01-20 02:05:01] [EMAIL PROTECTED] I have been trying to implement some shopping cart software that uses a MySQL database and sessions to track the shopping carts. When you access the shop using IE and add an item to the cart, everything is fine. But when you access the shop using a Netscape browser (version 4.61) or an AOL or CompuServe browser, try to add an item to the cart, it comes back and tells you the cart is empty. This also happens when you try to login. The sessions are kept in a /tmp directory on my server. When I go in an look at the sessions, there are sessions created for both IE and Netscape, only the Netscape session contains no data. This software is Open Source software and I have gone into many other people's shops and not had this problem which leads me to believe that it may be server/php related. What do you folks think? Edit this bug report at http://bugs.php.net/?id=15120edit=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] TODO
'lo, I think we should start a TODO file in /php4 for PHP 5. The current situation is that we have TODO and TODO-4.2.txt, both containing stuff that has already been implemented in Zend Engine 2's CVS, like exceptions... -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List 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 #14698 Updated: pg_fetch_array() does not require row param
ID: 14698 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Old Status: Assigned Status: Closed Bug Type: Documentation problem Operating System: Linux PHP Version: 4.1.0 Assigned To: yohgaki New Comment: Note added to doc. Previous Comments: [2001-12-27 05:58:34] [EMAIL PROTECTED] Status - assigned [2001-12-26 02:31:01] [EMAIL PROTECTED] Sounds good. I think it would be silly to drop this change. - It does not appear to impact existing code (patch switches based on argument count) - The reason I discovered it because I was annoyed with what I thought the existing behavior was. Good luck with the new maintainership. [2001-12-26 02:26:39] [EMAIL PROTECTED] Thanks for checking the change :) I'm the new module maintainer, so I'm asking previous module maintainers about it. Since MySQL seems it does the same, I'll keep this behavior probably, but it is not a promise yet. ;) [2001-12-26 02:19:28] [EMAIL PROTECTED] Implemented 6 months ago by jon (1.112) pgsql.c. Looks reasonable. [2001-12-26 02:13:51] [EMAIL PROTECTED] Works wonderfully without the row. That's certainly a win convienence wise, especially for folks coming over from mysql where the loop syntax is trivial (while $row = fetch()) {} I'd prefer to see the docs change then the functionality. I'll take a look at the code itself but it is hard to see how this is a performance loss, most users end up keeping a counter anyways. Why do you prefer making the row required? It seems like a silly added restriction, especially when I bet 80% of the cases where the function is called don't need it. 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=14698 Edit this bug report at http://bugs.php.net/?id=14698edit=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: TODO
Sebastian Bergmann wrote: 'lo, I think we should start a TODO file in /php4 for PHP 5. The current situation is that we have TODO and TODO-4.2.txt, both containing stuff that has already been implemented in Zend Engine 2's CVS, like exceptions... +1 -- Yasuo Ohgaki -- 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 #15122: binary output
From: [EMAIL PROTECTED] Operating system: win xp pro corporate 2600 PHP version: 4.1.1 PHP Bug Type: Output Control Bug description: binary output my server is up and running well. i've installed phpMyChat, it works great for me. it works also great for a friend of mine. but for most others tried ip, i get either : - a DNS error (even with the trailing slash) - strange ascii chars : this is an exemple of lynx output : ^ Error: illegal character number 0 Error: illegal character number 0 Line 112 ...Line 112, column 50: 10... $I30|$I30A$I30A$I30A$I30A ... 30|$I30A$I30A$I30A$I ...^ i'm using a web redirector like virtualhost.redirector.com. plz send me any feedback via mail. thx, piem. -- Edit bug report at: http://bugs.php.net/?id=15122edit=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] CVS Account Request: yuval
I want to help Transltaing the manual to hebrew -- 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] RFC: Moving documents in source
From: Yasuo Ohgaki [EMAIL PROTECTED] Egon Schmid wrote: SNIP I have talked yesterday with Hartmut Holzgraefe and Georg Richter about the future of the PHP manual. I made the following suggestion, the PHP manual could or should be the main PHP User Manual. The documents and text file you mentioned should or could be collected in a new PHP Developers Guide. Gabo´s HowTo is IMHO the first step in the right direction. I'm glad to hear that :) Cool! There should be manual/how-to for developers and I was hoping someone start working the way you mentioned. Where can I find Goba's HOWTO? In phpdoc. Not all developers are confortable with docbook It might be better to have place for basic docs somewhere in source. We have discussed this also and I don´t know if it is helpfull for developers because most developers doesn´t read any documentation. -Egon -- 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] RFC: Moving documents in source
Just a little suggestion :) GETTING MORE INFO General documents are located under source root/docs/ directory. Develper's documents are located source root/docs/developer/. For more information, refer to following URLs. PHP: http://www.php.net/ PHP Manual: http://www.php.net/docs.php PHP Support: http://www.php.net/support.php PEAR:http://pear.php.net/(PHP Libraly) PHP GTK: http://gtk.php.net/ (GTK Application) can I suggest something like.. - I'm guessing = but not everybody knows what GTK is... PHP GTK: http://gtk.php.net/ (PHP Desktop Applications - Using GTK) PHP Bugs:http://bugs.php.net/(PHP Bug Tracking DB) Zend Engine: http://www.zend.com/(Zend Script Engine and -- 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 #15120 Updated: Netscape sessions contain no data
ID: 15120 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: I am in a virtual hosting situation where I have telnet access, but not root access...so I haven't been able to install 4.1.1. I have been in touch with the support folks on my server asking if they would upgrade to 4.1.1, but I don't have an answer for that yet. I'm sure they would agree to the upgrade if I could establish that this is definitely a bug with the php version 4.0.6, though. The URL of my customer's shop is http://www.jokesrwild.com/catalog The software itself can be found at http://www.oscommerce.com. It's not a live shop yet, so you can poke around all you want. Thanks Previous Comments: [2002-01-20 03:04:13] [EMAIL PROTECTED] What is the URL for downloading your cart? Does this happen with 4.1.1? [2002-01-20 02:05:01] [EMAIL PROTECTED] I have been trying to implement some shopping cart software that uses a MySQL database and sessions to track the shopping carts. When you access the shop using IE and add an item to the cart, everything is fine. But when you access the shop using a Netscape browser (version 4.61) or an AOL or CompuServe browser, try to add an item to the cart, it comes back and tells you the cart is empty. This also happens when you try to login. The sessions are kept in a /tmp directory on my server. When I go in an look at the sessions, there are sessions created for both IE and Netscape, only the Netscape session contains no data. This software is Open Source software and I have gone into many other people's shops and not had this problem which leads me to believe that it may be server/php related. What do you folks think? Edit this bug report at http://bugs.php.net/?id=15120edit=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 #15117 Updated: fopen and fwrite writes to much data in mode a and a+
ID: 15117 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Filesystem function related Operating System: W2K PHP Version: 4.1.1 New Comment: It doesn't really matter with fopen() in append mode. It just opens the file to append new data to the end of the file. What data will be added, depents on when(?) and what(?)data the user submitted with the form. Till that point it goes fine. But then there is this string with same time mark being added to the file. Ofcourse multiple submitions result in this same pattern being repeated over and over again. Previous Comments: [2002-01-20 04:16:40] [EMAIL PROTECTED] Are you sure the file is empty before the fopen() call? See www.php.net/fopen for some more info... [2002-01-19 17:07:02] [EMAIL PROTECTED] code $orderstring = $date.\t. //current time $tireqty. tires\t.//received form field $oilqty. oil\t. //received form field $sparkqty. sparks\t. //received form field $totalamount.\t. /calc. from form fields $address.\n; //received form field $fp = fopen(orders.txt, a); fwrite($fp, $orderstring); fclose($fp); output in orders.txt 22:32 19th Saturday 20024 tires 1 oil 12 sparks 503.80 NL 22:32 19th Saturday 2002 tires oil sparks 0.00 Bug: When using fopen() in mode a or a+ the last line will be added without any obvious cause. When fopen() is used in same code but in mode w it works correct like expected. I haven't tested fopen() in all other available modes. Edit this bug report at http://bugs.php.net/?id=15117edit=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 #15123: strtotime doesn't work with long date format
From: [EMAIL PROTECTED] Operating system: Linux 2.4.16 PHP version: 4.1.1 PHP Bug Type: Date/time related Bug description: strtotime doesn't work with long date format Perl 4.1.1 compiled as CGI configure line: ./configure test OK. Everything works but this: (the date comes from a logfile) #! /usr/local/bin/php ?php $input = 'Sat Jan 19 00:01:00 2002'; $startdate = strtotime($input); echo (startdate:\n$startdate \n); ? Output: X-Powered-By: PHP/4.1.1 Content-type: text/html startdate: -1 Other dates like 'Fri, Jan 18 00:01:00 2002' -same problem -- Edit bug report at: http://bugs.php.net/?id=15123edit=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 #15123 Updated: strtotime doesn't work with long date format
ID: 15123 User updated by: [EMAIL PROTECTED] Old Summary: strtotime doesn't work with long date format Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Date/time related Old Operating System: Linux 2.4.16 Operating System: Linux 2.4.16 2.2.16 PHP Version: 4.1.1 Edit this bug report at http://bugs.php.net/?id=15123edit=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 #15124: unstable apache when bad parameter...
From: [EMAIL PROTECTED] Operating system: w2k pro PHP version: 4.1.1 PHP Bug Type: Date/time related Bug description: unstable apache when bad parameter... ...in localtime: $time=localtime(-1,1); causes application (apache) memory error -- Edit bug report at: http://bugs.php.net/?id=15124edit=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 #15120 Updated: Netscape sessions contain no data
ID: 15120 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: I verified with my Netscape 4.77/U.S., 26-Mar-01; It does not work with my Netscape, but it works with my Mozilla 0.9.7+. I guess you have your PC or test PC, could you reproduce with your PC? If yes, please try if it happens with 4.1.1. Could you make a short reproducible script? Previous Comments: [2002-01-20 06:23:57] [EMAIL PROTECTED] I am in a virtual hosting situation where I have telnet access, but not root access...so I haven't been able to install 4.1.1. I have been in touch with the support folks on my server asking if they would upgrade to 4.1.1, but I don't have an answer for that yet. I'm sure they would agree to the upgrade if I could establish that this is definitely a bug with the php version 4.0.6, though. The URL of my customer's shop is http://www.jokesrwild.com/catalog The software itself can be found at http://www.oscommerce.com. It's not a live shop yet, so you can poke around all you want. Thanks [2002-01-20 03:04:13] [EMAIL PROTECTED] What is the URL for downloading your cart? Does this happen with 4.1.1? [2002-01-20 02:05:01] [EMAIL PROTECTED] I have been trying to implement some shopping cart software that uses a MySQL database and sessions to track the shopping carts. When you access the shop using IE and add an item to the cart, everything is fine. But when you access the shop using a Netscape browser (version 4.61) or an AOL or CompuServe browser, try to add an item to the cart, it comes back and tells you the cart is empty. This also happens when you try to login. The sessions are kept in a /tmp directory on my server. When I go in an look at the sessions, there are sessions created for both IE and Netscape, only the Netscape session contains no data. This software is Open Source software and I have gone into many other people's shops and not had this problem which leads me to believe that it may be server/php related. What do you folks think? Edit this bug report at http://bugs.php.net/?id=15120edit=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] RFC: Moving documents in source
Yasuo Ohgaki wrote: Where can I find Goba's HOWTO? http://cvs.php.net/co.php/phpdoc/howto/howto.html.tar.gz?r=1.13p=1 Not all developers are confortable with docbook It might be better to have place for basic docs somewhere in source. ext_skel can generate docbook funcsynopsis skeletons for you from proto definitions along with generating the source skeletons so you just have to ad some plain text some documentation contributor will eventualy improve it for you, but it's hard to document a function you know nothing about as documentation contributors are usualy even less comfortable with C as developers should be with XML/DocBook it is not a good idea to have documentation in source only and hope for the doc team picking it up from there -- 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 #15122 Updated: binary output
ID: 15122 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Output Control Operating System: win xp pro corporate 2600 PHP Version: 4.1.1 New Comment: I don't what makes you think this is a PHP problem and what are you trying to explain. I'll mark this bug report as not a bug unless you provide infomation that is surely a PHP problem :) Previous Comments: [2002-01-20 04:48:12] [EMAIL PROTECTED] my server is up and running well. i've installed phpMyChat, it works great for me. it works also great for a friend of mine. but for most others tried ip, i get either : - a DNS error (even with the trailing slash) - strange ascii chars : this is an exemple of lynx output : ^ Error: illegal character number 0 Error: illegal character number 0 Line 112 ...Line 112, column 50: 10... $I30|$I30A$I30A$I30A$I30A ... 30|$I30A$I30A$I30A$I ...^ i'm using a web redirector like virtualhost.redirector.com. plz send me any feedback via mail. thx, piem. Edit this bug report at http://bugs.php.net/?id=15122edit=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] Re: [PHP] Re: [PHP-DEV] Re: Computer Science and PHP
On Sat, 19 Jan 2002, Sebastian Bergmann wrote: Alan Knowles wrote: Press releases, for PHP5 pre-alpha, PHP-GTK's, (Derick - srm?) upcomming release etc. which could be made available - Then a PHP press team??, could be resposnible for getting it out to the Press in their local countries.. Now this is a great idea, IMHO. For those who don't know, I'm a freelancing journalist writing PHP-related articles for German magazine, including the upcoming ''PHP Magazin'', which'll be the first PHP-focused print publication in the world (at least that i know of ;) Press releases make it much easier for the average IT journo (who actually knows very little about computing) to write a story about a given topic. If PHP needs more IT/main stream press coverage, this must be done. 'If.' The other point Sebastian makes (indirectly) is better still. I too write articles for IT magazines about PHP, as well as other projects I am involved in. In all cases, I was approached by the editors -- but they didn't really know what they wanted. I think the best way for PHP to get good, thorough and accurate coverage in the mainstream IT press is for articulate and enthusiastic writers involved with PHP to independently contact magazine editors offering to write columns/how-tos/features/what ever about PHP on a freelance basis. Naturally, only a small proportion will be interested or able. But if you enjoy writing and need some pocket money, its well worth a try. Gavin -- 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 #15123 Updated: strtotime doesn't work with long date format with month before day
ID: 15123 User updated by: [EMAIL PROTECTED] Old Summary: strtotime doesn't work with long date format Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Date/time related Operating System: Linux 2.4.16 2.2.16 PHP Version: 4.1.1 New Comment: Previous Comments: [2002-01-20 06:42:48] [EMAIL PROTECTED] Perl 4.1.1 compiled as CGI configure line: ./configure test OK. Everything works but this: (the date comes from a logfile) #! /usr/local/bin/php ?php $input = 'Sat Jan 19 00:01:00 2002'; $startdate = strtotime($input); echo (startdate:\n$startdate \n); ? Output: X-Powered-By: PHP/4.1.1 Content-type: text/html startdate: -1 Other dates like 'Fri, Jan 18 00:01:00 2002' -same problem Edit this bug report at http://bugs.php.net/?id=15123edit=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] Re: [PHP] Re: [PHP-DEV] Re: Computer Science and PHP
Hi, In all cases, I was approached by the editors -- but they didn't really know what they wanted. I think the best way for PHP to get good, thorough and accurate coverage in the mainstream IT press is for articulate and enthusiastic writers involved with PHP to independently contact magazine editors offering to write columns/how-tos/features/what ever about PHP on a freelance basis. Naturally, only a small proportion will be interested or able. But if you enjoy writing and need some pocket money, its well worth a try. I couldn't agree more on the pr stuff here and if anyone would be interested in writing articles/pr's and news about php (and in relation to other languages), could they email me at [EMAIL PROTECTED] . I am getting a group together to discuss evangelism issues, which will hopefully lead up to a presentation at FOSDEM discussing the way forward for PHP evang. Thanks, James -- 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] PHP Apache2Filter
Just ./configure'd PHP with the Apache2Filter for the first time in weeks, then I got this: checking for Apache 2.0 module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) Perl is installed, apxs is at the given location and Apache was built using --enable-so. Latest CVS of Apache2 and PHP 4. Were there some changes to APXS lately that might cause this? -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List 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 #14391 Updated: gmmktime, gmdate work incorrect
ID: 14391 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Date/time related Operating System: Windows 2000 Server PHP Version: 4.0.6 New Comment: I've got this problem on 4.0.5 on solaris, could someone confirm this for me? SunOS mimosa 5.7 Generic_106541-14 sun4u sparc SUNW,Ultra-4 Max Previous Comments: [2002-01-13 14:34:48] [EMAIL PROTECTED] Could be. Could also be that some of the assumptions made in ext/standard/datetime.c on lines 172-190 are just wrong for Windows-based systems. I'll do some testing next week, now that I finally have a Windows test system (with documentation) aside my trustworthy Linux. offtopic A machine that can boot two different operating systems is called 'dual-boot'. Mine boots to Linux, Solaris and Windows 2000. So should it be called 'trial-boot'? /offtopic [2002-01-13 07:45:40] [EMAIL PROTECTED] mmm, I think this is to blame at Microsoft then. Derick [2002-01-13 06:56:08] [EMAIL PROTECTED] Bug confirmed also with 4.1.1 on Windows 2000 server. Everything fine on Linux (4.1.1 and 4.0.3). Note that depending on your country, the result might be wrong on summer time too. I'm too living on a timezone GMT+2 (Finland), but we didn't switch to using daylight savings time until 1977. Which is correctly detected on Linux and wrong on Windows 2000 server (it thinks that we had daylight savings also on 1970-1976). [2002-01-13 05:15:26] [EMAIL PROTECTED] Can you test a newer version, say 4.1.1? [2002-01-13 04:59:58] [EMAIL PROTECTED] Same problem on 4.0.5 running on solaris and linux. 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=14391 Edit this bug report at http://bugs.php.net/?id=14391edit=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] Problems from php4.0.6 to 4.1.1 with sessions
Hi All In all my sessions sites when I had to move from the primary domain using session to a secondary domain (like from www.domain.com to secure.domain.com) I added the PHPSESID to the URL and the session in the new site continued from the previous Domain. in 4.1.1 when I move from the primary domain to the secondary one I still can use the session until I click/submit without PHPSESID which then make PHP loose the old session and start a new one. Until now I didn't had to submit the PHPSESID every time but only once ( in the first entrance to the secondary domain ) And Yes register_globals = On I dont make thing complex and so I use only: session_start(); session_register(some_var); a copy of the php.ini for the 4.1.1 is at: http://www.canaan.co.il/users/miki/php-ini-4.1.1.txt Thanks in Advance. -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -- -- 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 #14391 Updated: gmmktime, gmdate work incorrect
ID: 14391 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Date/time related Operating System: Windows 2000 Server PHP Version: 4.0.6 New Comment: Here's an example: first of all, to show that the system understands what's going on: $ date +%c %Z Tue Dec 18 22:51:16 2001 GMT $ date -u +%c %Z Tue Dec 18 22:51:21 2001 GMT - same result. so the machine knows what tz it's in. Now, I'm in GMT at the moment, so echo date(H:i,mktime(22,20,00,12,18,01)).p; //gives 22.20 echo gmdate(H:i,mktime(22,20,00,12,18,01)).p; // gives 22.20 as expected. but... echo date(H:i,gmmktime(22,20,00,12,18,01)).p; //gives 21.20 echo gmdate(H:i,gmmktime(22,20,00,12,18,01)).p; // gives 21.20 These should also give 22.20, so it looks to me that gmmktime() is screwed. Max Previous Comments: [2002-01-20 10:41:42] [EMAIL PROTECTED] I've got this problem on 4.0.5 on solaris, could someone confirm this for me? SunOS mimosa 5.7 Generic_106541-14 sun4u sparc SUNW,Ultra-4 Max [2002-01-13 14:34:48] [EMAIL PROTECTED] Could be. Could also be that some of the assumptions made in ext/standard/datetime.c on lines 172-190 are just wrong for Windows-based systems. I'll do some testing next week, now that I finally have a Windows test system (with documentation) aside my trustworthy Linux. offtopic A machine that can boot two different operating systems is called 'dual-boot'. Mine boots to Linux, Solaris and Windows 2000. So should it be called 'trial-boot'? /offtopic [2002-01-13 07:45:40] [EMAIL PROTECTED] mmm, I think this is to blame at Microsoft then. Derick [2002-01-13 06:56:08] [EMAIL PROTECTED] Bug confirmed also with 4.1.1 on Windows 2000 server. Everything fine on Linux (4.1.1 and 4.0.3). Note that depending on your country, the result might be wrong on summer time too. I'm too living on a timezone GMT+2 (Finland), but we didn't switch to using daylight savings time until 1977. Which is correctly detected on Linux and wrong on Windows 2000 server (it thinks that we had daylight savings also on 1970-1976). [2002-01-13 05:15:26] [EMAIL PROTECTED] Can you test a newer version, say 4.1.1? 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=14391 Edit this bug report at http://bugs.php.net/?id=14391edit=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 #15125: pnctl_signal does not handle class's as callbacks - patch included
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0CVS-2002-01-20 PHP Bug Type: *Extensibility Functions Bug description: pnctl_signal does not handle class's as callbacks - patch included Have a go with this.- I'm assuming that zend_is_callable works like php_gtk_is_callable... regards alan Index: pcntl.c === RCS file: /repository/php4/ext/pcntl/pcntl.c,v retrieving revision 1.18 diff -u -r1.18 pcntl.c --- pcntl.c 4 Jan 2002 14:08:25 - 1.18 +++ pcntl.c 20 Jan 2002 15:51:50 - @@ -483,14 +483,8 @@ RETURN_TRUE; } -if (Z_TYPE_PP(handle)!=IS_STRING) { - php_error(E_WARNING, Invalid type specified for handle argument in %s, get_active_function_name(TSRMLS_C)); - RETURN_FALSE; - } - - convert_to_string_ex(handle); /* Just in case */ if (!zend_is_callable(*handle, 0, func_name)) { - php_error(E_WARNING, %s: %s is not a callable function name error, get_active_function_name(TSRMLS_C), func_name); + php_error(E_WARNING, %s: argument 2 is not a callable function or method, get_active_function_name(TSRMLS_C)); efree(func_name); RETURN_FALSE; } -- Edit bug report at: http://bugs.php.net/?id=15125edit=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 #15120 Updated: Netscape sessions contain no data
ID: 15120 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Session related Operating System: Linux PHP Version: 4.0.6 New Comment: I wish I could be of more help in this issue. My virtual server is merely leased space on another company's server. I have some control, like access to the http.conf files and mail aliases, etc., but not root access. I wouldn't know how to configure php to run on my own personal computer at home... As far as making a reproducible script, I'm afraid that's beyond my capabilities as well. This software uses modules, class and function folders as well as tying into the MySQL database. Is there any other way I could help, like sending you a couple of the pertinent files (sessions.php)? I'm generally a very good troubleshooter and hacker (being able to figure out how to get a program to do what I want it to), but this one has me stumped. Previous Comments: [2002-01-20 09:19:15] [EMAIL PROTECTED] I verified with my Netscape 4.77/U.S., 26-Mar-01; It does not work with my Netscape, but it works with my Mozilla 0.9.7+. I guess you have your PC or test PC, could you reproduce with your PC? If yes, please try if it happens with 4.1.1. Could you make a short reproducible script? [2002-01-20 06:23:57] [EMAIL PROTECTED] I am in a virtual hosting situation where I have telnet access, but not root access...so I haven't been able to install 4.1.1. I have been in touch with the support folks on my server asking if they would upgrade to 4.1.1, but I don't have an answer for that yet. I'm sure they would agree to the upgrade if I could establish that this is definitely a bug with the php version 4.0.6, though. The URL of my customer's shop is http://www.jokesrwild.com/catalog The software itself can be found at http://www.oscommerce.com. It's not a live shop yet, so you can poke around all you want. Thanks [2002-01-20 03:04:13] [EMAIL PROTECTED] What is the URL for downloading your cart? Does this happen with 4.1.1? [2002-01-20 02:05:01] [EMAIL PROTECTED] I have been trying to implement some shopping cart software that uses a MySQL database and sessions to track the shopping carts. When you access the shop using IE and add an item to the cart, everything is fine. But when you access the shop using a Netscape browser (version 4.61) or an AOL or CompuServe browser, try to add an item to the cart, it comes back and tells you the cart is empty. This also happens when you try to login. The sessions are kept in a /tmp directory on my server. When I go in an look at the sessions, there are sessions created for both IE and Netscape, only the Netscape session contains no data. This software is Open Source software and I have gone into many other people's shops and not had this problem which leads me to believe that it may be server/php related. What do you folks think? Edit this bug report at http://bugs.php.net/?id=15120edit=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 #15125 Updated: pnctl_signal does not handle class's as callbacks - patch included
ID: 15125 User updated by: [EMAIL PROTECTED] Old Summary: pnctl_signal does not handle class's as callbacks - patch included Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Extensibility Functions Operating System: Linux PHP Version: 4.0CVS-2002-01-20 New Comment: Ok, forgot to modify your hash table... - this one doesnt segfault :) Index: pcntl.c === RCS file: /repository/php4/ext/pcntl/pcntl.c,v retrieving revision 1.18 diff -u -r1.18 pcntl.c --- pcntl.c 4 Jan 2002 14:08:25 - 1.18 +++ pcntl.c 20 Jan 2002 16:20:50 - @@ -483,21 +483,15 @@ RETURN_TRUE; } -if (Z_TYPE_PP(handle)!=IS_STRING) { - php_error(E_WARNING, Invalid type specified for handle argument in %s, get_active_function_name(TSRMLS_C)); - RETURN_FALSE; - } - - convert_to_string_ex(handle); /* Just in case */ if (!zend_is_callable(*handle, 0, func_name)) { - php_error(E_WARNING, %s: %s is not a callable function name error, get_active_function_name(TSRMLS_C), func_name); + php_error(E_WARNING, %s: argument 2 is not a callable function or method, get_active_function_name(TSRMLS_C)); efree(func_name); RETURN_FALSE; } efree(func_name); /* Add the function name to our signal table */ - zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), Z_STRVAL_PP(handle), (Z_STRLEN_PP(handle) + 1) * sizeof(char), NULL); + zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), handle, sizeof(zval *), NULL); if (php_signal(Z_LVAL_PP(signo), pcntl_signal_handler)==SIG_ERR) { php_error(E_WARNING, Error assigning singal in %s, get_active_function_name(TSRMLS_C)); Previous Comments: [2002-01-20 10:57:11] [EMAIL PROTECTED] Have a go with this.- I'm assuming that zend_is_callable works like php_gtk_is_callable... regards alan Index: pcntl.c === RCS file: /repository/php4/ext/pcntl/pcntl.c,v retrieving revision 1.18 diff -u -r1.18 pcntl.c --- pcntl.c 4 Jan 2002 14:08:25 - 1.18 +++ pcntl.c 20 Jan 2002 15:51:50 - @@ -483,14 +483,8 @@ RETURN_TRUE; } -if (Z_TYPE_PP(handle)!=IS_STRING) { - php_error(E_WARNING, Invalid type specified for handle argument in %s, get_active_function_name(TSRMLS_C)); - RETURN_FALSE; - } - - convert_to_string_ex(handle); /* Just in case */ if (!zend_is_callable(*handle, 0, func_name)) { - php_error(E_WARNING, %s: %s is not a callable function name error, get_active_function_name(TSRMLS_C), func_name); + php_error(E_WARNING, %s: argument 2 is not a callable function or method, get_active_function_name(TSRMLS_C)); efree(func_name); RETURN_FALSE; } Edit this bug report at http://bugs.php.net/?id=15125edit=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] PHP Apache2Filter
Just ./configure'd PHP with the Apache2Filter for the first time in weeks, then I got this: checking for Apache 2.0 module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: I cannot reproduce this. Configure part works for me. But compilation fails in sapi_apache2.c: sapi_apache2.c: In function `php_input_filter': sapi_apache2.c:252: incompatible type for argument 4 of `ap_get_brigade' sapi_apache2.c:252: too few arguments to function `ap_get_brigade' sapi_apache2.c:259: incompatible type for argument 4 of `ap_get_brigade' sapi_apache2.c:259: too few arguments to function `ap_get_brigade' sapi_apache2.c: In function `php_register_hook': sapi_apache2.c:474: warning: passing arg 2 of `ap_register_input_filter' from incompatible pointer type make[3]: *** [sapi_apache2.lo] Error 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] CVS Account Request: tomer
Help translating the PHP documention to Hebrew. Need access to the PHPDOC module. -- 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] CVS Account Request: aeschbacher
I want to add the following functions to the Interbase extension: // Add a user to security database proto int ibase_add_user( string server, // Name of Interbase server string dba_user_name, // DB admin account (eg SYSDBA) string dba_password, // DB admin pwd (eg masterkey) string user_name, // user to be added string password// and its password [, string first_name] // (optional) user's first name [, string middle_name] [, string last_name] ) // Modify an user from security database proto int ibase_modify_user( string server, string dba_user_name, string dba_password, string user_name, string password [, string first_name] [, string middle_name] [, string last_name] ) // Delete an user from security database proto int ibase_delete_user( string server, string username ) -- 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] PHP Apache2Filter
Edin Kadribasic wrote: I cannot reproduce this. Configure part works for me. But compilation fails in sapi_apache2.c: Same here now. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List 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 #15091 Updated: socket_set_timeout not part of windows binary
ID: 15091 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Sockets related Operating System: windows 2000 PHP Version: 4.1.1 New Comment: PHP version: 4.1.1 Windows XP using IIS Installed from the executable download. Using the set_socket_timeout method causes the following error message to appear in the browser: Warning: socket_set_timeout() is not supported in this PHP build in c:\inetpub\wwwroot\test.php on line 26 Previous Comments: [2002-01-18 10:10:22] [EMAIL PROTECTED] correction that was a typo on my part. I did use fsockopen. The program is working fine as long as there is data coming from the other side. But if there is no data the fgets call waits indefinitely without timing out. That is the reason I tried to use socket_set_timeout. Unfortunately i get the message that socket_set_timeout is not part of windows build. [2002-01-18 10:04:14] [EMAIL PROTECTED] Why are you using $fsockopen and not fsockopen? That might be the cause of this bug. [2002-01-17 18:32:04] [EMAIL PROTECTED] Correction to my earlier report. When using socket_set_blocking($fp, false) I am not getting data every one second [2002-01-17 18:28:21] [EMAIL PROTECTED] I am using windows binaries. $fp = $fsockopen(($ip_addr, $port_no, $errno, $errstr, 30); do { if (!feof($fp)) { $livedata = trim(fgets($fp,128)); echo $livedata.\n; } else { break; } } while(true); when there is no data being sent by the server my script waits indefinitely at fgets. I tried using socket_set_blocking($fp, false) but that does get me data every one second. I tried to use socket_set_timeout that is when I found out it is not supported in windows binaries. Is there any other way to solve this problem in windows. Edit this bug report at http://bugs.php.net/?id=15091edit=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 #15124 Updated: unstable apache when bad parameter...
ID: 15124 Updated by: mfischer Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Date/time related Operating System: w2k pro PHP Version: 4.1.1 New Comment: Thx for the report, fixed in CVS. Previous Comments: [2002-01-20 08:47:10] [EMAIL PROTECTED] ...in localtime: $time=localtime(-1,1); causes application (apache) memory error Edit this bug report at http://bugs.php.net/?id=15124edit=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] CVS Account Request: cyberowl
for korean translation -- 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] acinclude.m4 changes for Darwin/Mac OS X
Hi all, I'm currently working on PHP extensions to bring some Mac OS X -native functionality available to PHP users on the platform. To allow for this, the PHP build chain needs to support Mac's way of dealing with shared libraries. Here's some background: Libraries in Mac OS X and Darwin are delivered in bundles called frameworks. A framework is simply a directory containing a framework's header and library files. It is hence atomic in the sense that it can be easily moved around by a typical, GUI-bound Mac user. Frameworks can also contain sub-frameworks, allowing for a hierarchical dependency tree to be presented right on the filesystem level. I don't need to go into details about the frameworks' structure because Apple has abstracted that from the developer by providing extensions to the GNU build tools on the Mac. In particular, Apple's versions of gcc, cpp and ld support two new command line options: -F and -framework. -F, like the traditional -I and -L options, add to the framework search path. -framework specifies the framework used in linking, much like -l. Anyway, I've written the following four new functions for acinclude.m4 to enable the use of frameworks in the various config.m4 files. They do work, but as it's been a long while since I've committed anything, much less m4, I hope somebody can run the stuff through a quick sanity check and commit. I've also added a change to PHP_SHLIB_SUFFIX_NAME below. Please email me if you want this stuff in patch format. Thanks, Marko P.S. The changes naturally require support for frameworks in libtool. I have a patch ready, and will submit it to the libtool list next week. Meanwhile, what's the maintennance policy of the ltmain.sh file in our tree? Should/could my changes to libtool be committed locally? mk cut here dnl dnl PHP_ADD_FRAMEWORKPATH(path [,before [, shared-libadd]]) dnl dnl add a (Darwin / Mac OS X) framework path to the link dnl and include lines. default paths include (but are dnl not limited to) /Local/Library/Frameworks and dnl /System/Library/Frameworks, so these don't need dnl to be specifically added. if before is 1, the dnl framework path is added to the beginning of the dnl relevant lines. AC_DEFUN(PHP_ADD_FRAMEWORKPATH, [ PHP_EXPAND_PATH($1, ai_p) if test $ext_shared = yes test -n $3; then if test $2; then $3=-F$ai_p [$]$3 else $3=[$]$3 -F$ai_p fi else AC_PHP_ONCE(LIBPATH, $ai_p, [ if test $2; then LDFLAGS=-F$ai_p $LDFLAGS else LDFLAGS=$LDFLAGS -F$ai_p fi ]) fi AC_PHP_ONCE(INCLUDEPATH, $ai_p, [ if test $2; then INCLUDES=-F$ai_p $INCLUDES else INCLUDES=$INCLUDES -F$ai_p fi ]) ]) dnl dnl PHP_ADD_FRAMEWORK(framework [,before [, shared-libadd]]) dnl dnl add a (Darwin / Mac OS X) framework to the link dnl line. if before is 1, the framework is added dnl to the beginning of the line. dnl dnl (can't use AC_PHP_ONCE since $1 might match a dnl FRAMEWORKPATH specified earlier) AC_DEFUN(PHP_ADD_FRAMEWORK, [ if test $ext_shared = yes test -n $3; then if test $2; then $3=-framework $1 [$]$3 else $3=[$]$3 -framework $1 fi fi if test $2; then LIBS=-framework $1 $LIBS else LIBS=$LIBS -framework $1 fi ]) dnl dnl PHP_ADD_FRAMEWORK_WITH_PATH(framework, path [, shared-libadd]) dnl dnl add a (Darwin / Mac OS X) framework path and the dnl framework itself to the link and include lines. AC_DEFUN(PHP_ADD_FRAMEWORK_WITH_PATH, [ PHP_ADD_FRAMEWORKPATH($2,,$3) PHP_ADD_FRAMEWORK($1,,$3) ]) dnl dnl PHP_CHECK_FRAMEWORK(framework, function [, action-found [, action-not-found ]]) dnl dnl Cheezy wrapper for AC_CHECK_LIB dnl AC_DEFUN(PHP_CHECK_FRAMEWORK, [ save_old_LDFLAGS=$LDFLAGS LDFLAGS=-framework $1 $LDFLAGS dnl supplying c to AC_CHECK_LIB is technically cheating, but dnl rewriting AC_CHECK_LIB is overkill and this only affects dnl the checking.. output anyway. AC_CHECK_LIB(c,[$2],[ LDFLAGS=$save_old_LDFLAGS $3 ],[ LDFLAGS=$save_old_LDFLAGS $4 ]) ]) AC_DEFUN(PHP_SHLIB_SUFFIX_NAME,[ PHP_SUBST(SHLIB_SUFFIX_NAME) SHLIB_SUFFIX_NAME=so case $host_alias in *hpux*) SHLIB_SUFFIX_NAME=sl ;; *darwin*) SHLIB_SUFFIX_NAME=dylib ;; esac ]) -- 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] CVS Account Request: barak
Hi I want to help to translete the documention to Hebrew. So i need to get accses to phpdoc module. I will happy to help to the PHP in any other help that needed (i use myself PHP on some linux platform) -- 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 #15102 Updated: Upload fails (internal error 500)
ID: 15102 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: Red Hat 7.2 PHP Version: 4.0.6 New Comment: So my ISP changed to Apache 3.1.19, still running redhat 7.2 and php 4.0.6. Problem still exists. I have compiled and installed 4.0.5 in my directory and script is running fine. Fabrice. Previous Comments: [2002-01-19 20:26:07] [EMAIL PROTECTED] Hi, I have compiled 4.0.4pl1 on the system (simple static install, --with-mysql --with-apache, --host i386-redhat-linux, everything else defaulted, and the script works fine, so there is a problem with 4.0.6. I can't install RPMS as I don't have rpm access. I opened a ticket with the ISP for them to check the configuration, but I don't understand why PHP barfs. I will try with 4.0.5 tomorrow. Fabrice. [2002-01-18 14:27:46] [EMAIL PROTECTED] The only log I know about is error_log on /usr/local/apache/log is there anything else I should look at? [Fri Jan 18 14:22:53 2002] [error] [client 151.200.238.39] Premature end of script headers: /home/usr235/html/upload.php phpinfo says: './configure' '--with-mysql=/usr/local/mysql' '--prefix=/usr/local/php' '--with-mck=/usr/local/mck-3.2.0.3-linux' '--with-dbase' '--with-pfpro=/usr/local/pfpro' '--enable-discard-path' '--prefix=/usr/local' '--with-gd' '--enable-gdbm' '--enable-bcmath' '--with-config-file-path=/usr/local/apache' '--enable-magic-quotes' '--enable-ftp' Server API CGI Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/apache Note that there is no php.ini in this path, or anywhere on the server. Finally someone that agrees with me that this should work!!! [2002-01-18 14:15:44] [EMAIL PROTECTED] It should work. It's probably a configuration problem (echo'ing $userfile should print out the temporary filename of the uploaded file). Can you provide some more information, like what's in the error log? [2002-01-18 11:08:12] [EMAIL PROTECTED] A simple standard form is used to upload a file form action=upload.php enctype=multipart/form-data method=post File: input type=file MAX_FILE_SIZE=1 name=userfile input type=submit value=send /form The php script says: #!/usr/local/bin/php ?php echo $userfile; ? My ISP upgraded from PHP 4.0.2 to 4.0.6 and at the same time from Redhat 6.1 to 7.2. Apache is 1.3.20. I've been battling with my ISP (Interland) who says that since i'm not doing anything with the file, this can't work. I gave up trying to teach them PHP after the senior PHP support specialist told me that can't work (I wonder why it did before, then). What happens is the file gets uploaded (takes time to upload, so it is definitely transfering it), then I get the Internal Server Error 500. I don't see the file on /tmp. There is no php.ini anywhere on the server, so I guess the default values are taken. The phpinfo() looks fine to me. This worked fine on 4.0.2 and 3.0.9. I tried uploading a file using perl and that works, but i want to use php. Help! Edit this bug report at http://bugs.php.net/?id=15102edit=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 #15126: Segfalt on startup when compiled with oci8
From: [EMAIL PROTECTED] Operating system: RedHat Linux 6.2 PHP version: 4.0CVS-2002-01-20 PHP Bug Type: Apache2 related Bug description: Segfalt on startup when compiled with oci8 Apache 2 segfaults on startup when php is configured with: ./configure --enable-debug --with-oci8 --with-apx2 Apache was configured with: ./configure --enable-maintainer-mode --with-mpm=prefork --enable-so On the same platform Apache 1.3 + Oracle 8.0.5 + php any version function with no problems. Backtrace: #0 php_apache_sapi_send_headers (sapi_headers=0x812d660, tsrm_ls=0x812d5f8) at sapi_apache2.c:106 #1 0x2ad21d8c in sapi_send_headers (tsrm_ls=0x812d5f8) at SAPI.c:578 #2 0x2ad7dc1e in php_header () at head.c:58 #3 0x2ad26d71 in php_ub_body_write (str=0x7fffe3ec OCIDebug: START php_mshutdown_ocibr /\n, str_length=40, tsrm_ls=0x812d5f8) at output.c:461 #4 0x2ad2615c in php_body_write (str=0x7fffe3ec OCIDebug: START php_mshutdown_ocibr /\n, str_length=40, tsrm_ls=0x812d5f8) at output.c:99 #5 0x2ad1bf37 in php_printf (format=0x2add0db0 OCIDebug: %sbr /\n) at main.c:355 #6 0x2ad41c82 in oci_debug (format=0x2add09c8 START php_mshutdown_oci) at oci8.c:1031 #7 0x2ad410a9 in zm_shutdown_oci (type=1, module_number=7, tsrm_ls=0x812d5f8) at oci8.c:591 #8 0x2ad12a53 in module_destructor (module=0x81671a8) at zend_API.c:1124 #9 0x2ad147b3 in zend_hash_destroy (ht=0x2adfdc40) at zend_hash.c:541 #10 0x2ad0f3dc in zend_shutdown (tsrm_ls=0x812d5f8) at zend.c:490 #11 0x2ad1d7c7 in php_module_shutdown (tsrm_ls=0x812d5f8) at main.c:1000 #12 0x2ad1d78f in php_module_shutdown_wrapper (sapi_globals=0x2ade1000) at main.c:977 #13 0x2ad1b223 in php_apache_server_shutdown (tmp=0x0) at sapi_apache2.c:408 #14 0x2aae93ec in run_cleanups (c=0x812c2d8) at apr_pools.c:1713 #15 0x2aae876a in apr_pool_clear (pool=0x80aca60) at apr_pools.c:524 #16 0x807b7ce in main (argc=2, argv=0x7994) at main.c:458 -- Edit bug report at: http://bugs.php.net/?id=15126edit=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 #15058 Updated: crash on complex page
ID: 15058 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Reproducible crash Operating System: Mac OS X 10.1.2 (Build 5P48) PHP Version: 4.1.1 New Comment: i have now rebuilt php with --enable-debug, and i managed to get a backtrace. hth... the configure line is now: './configure' '--with-apxs' '--enable-debug' and the crashlog: ** Date/Time: 2002-01-21 00:01:44 +0100 OS Version: 10.1.2 (Build 5P48) Host: localhost Command:httpd PID:1184 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0xbff7f910 Thread 0 Crashed: #0 0x005247f0 in php_error_cb #1 0x004ed84c in zend_error #2 0x00508e10 in zend_fetch_dimension_address_inner #3 0x004fedcc in zend_fetch_dimension_address #4 0x005015e0 in execute #5 0x005036c4 in execute #6 0x005036c4 in execute #7 0x005036c4 in execute #8 0x005036c4 in execute #9 0x005036c4 in execute #10 0x005036c4 in execute #11 0x00505c40 in execute #12 0x00505c40 in execute #13 0x004eddcc in zend_execute_scripts #14 0x00526954 in php_execute_script #15 0x005232bc in apache_php_module_main #16 0x00521d44 in send_php #17 0xc5ac in ap_invoke_handler #18 0x00016530 in process_request_internal #19 0x00016874 in ap_internal_redirect #20 0x00136674 in handler_redirect #21 0xc5ac in ap_invoke_handler #22 0x00016530 in process_request_internal #23 0x00016874 in ap_internal_redirect #24 0x00136674 in handler_redirect #25 0xc5ac in ap_invoke_handler #26 0x00016530 in process_request_internal #27 0x000165ac in ap_process_request #28 0x5d5c in child_main #29 0x5f18 in make_child #30 0x6084 in startup_children #31 0x66a8 in standalone_main #32 0x6f64 in main #33 0x1e18 in _start #34 0x1c48 in start PPC Thread State: srr0: 0x005247f0 srr1: 0x0200f030vrsave: 0x xer: 0x2020 lr: 0x004ed84c ctr: 0x005247dc mq: 0x r0: 0x24224245 r1: 0xbff80180 r2: 0x00a4c098 r3: 0x0008 r4: 0x001a4888 r5: 0x009a r6: 0x005cd76c r7: 0xbff80250 r8: 0x009833d8 r9: 0x006105f4 r10: 0x0020ec53 r11: 0x0020ec53 r12: 0x005247dc r13: 0x r14: 0x r15: 0x r16: 0x r17: 0x r18: 0x r19: 0x005cd76c r20: 0xbff80250 r21: 0x009a r22: 0x001a4888 r23: 0x0003 r24: 0x0008 r25: 0x r26: 0x r27: 0x0098b2c8 r28: 0xbff80368 r29: 0x00265b4c r30: 0xbff80230 r31: 0x004ed6c4 ** and finally the backtrace: Program received signal EXC_BAD_ACCESS, Could not access memory. 0x005247f0 in php_error_cb (type=10007528, error_filename= 0x3 Address 0x3 out of bounds, error_lineno=1722824, format=0x5cd76c Undefined index: %s, args=0xbff80210 ) at main.c:360 360 main.c: No such file or directory. in main.c (gdb) bt #0 0x005247f0 in php_error_cb (type=10007528, error_filename=0x3 Address 0x3 out of bounds, error_lineno=1722824, format=0x5cd76c Undefined index: %s, args=0xbff80210 ) at main.c:360 #1 0x00508e10 in zend_fetch_dimension_address_inner (ht= 0x98b3e8, op2=0x265b4c, Ts=0xbff80328, type=0) at ./ zend_execute.c:615 #2 0x004fedcc in zend_fetch_dimension_address (result= 0x265b24, op1=0x265b38, op2=0x265b4c, Ts=0xbff80328, type= 0) at ./zend_execute.c:762 #3 0x005015e0 in execute (op_array=warning: ppc_frame_chain_valid: stack frame from 0xbff802f0 to 0xbff944e0 larger than 65536 bytes; assuming invalid 0x2316c0) at ./zend_execute.c:1262 warning: ppc_frame_chain_valid: stack frame from 0xbff802f0 to 0xbff944e0 larger than 65536 bytes; assuming invalid (gdb) Previous Comments: [2002-01-16 01:29:35] [EMAIL PROTECTED] Hello, I'm afraid that there can be little done about it, to me it seems a stack overflow. I guess that it is not possible to dump these files somewhere to download, so that we can try ourselves. Note to Yasuo: He didn't compile it himself. Derick [2002-01-15 19:42:51] [EMAIL PROTECTED] Your PHP is not built with --enable-debug option. Could you send backtrace again? [2002-01-15 17:11:45] [EMAIL PROTECTED] when rendering a rather complex page php causes apache to crash. the page causes a 1200 line function (in a 6000 line included file) to be called recursively a number of times, and it seems that it crashes when it is called too many times. i tried upping the memory to memory_limit = 128M; in /usr/local/lib/php.ini, but that didn't help. i verified that it is not an infinite include problem (bug #10230, which sounds similar). i am using the
[PHP-DEV] Bug #10862 Updated: Filenames too long in downloadable manual
ID: 10862 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: MacOS 9.1 PHP Version: 4.0.5 New Comment: I don't think this is worth really worth fixing. Mac OS X supports long file names, and I'd expect current PHP users to upgrade. If you're keeping current with PHP, why not your OS? The easiest workaround for Mac OS 9.1 is to create an Internet Explorer Web Archive from the online manual by going to File - Save As. The Web Archive keeps the whole help file hierachy in a single file and allows for easy and fast offline browsing. Previous Comments: [2001-10-02 04:31:41] [EMAIL PROTECTED] Reopened. [2001-08-07 13:36:06] [EMAIL PROTECTED] Could you provide a list of DSSSL or XSL stylesheets tailored for Macs? These would be neede to generate appropriately named files for that OS from the original DocBook XML source of the manual. Without such stylesheets, I would recommend using the one-file big HTML version (or the PDF version if available) of the manual. [2001-05-14 18:41:54] [EMAIL PROTECTED] The downloadable manual with multiple files contains many files that are greater than 32 characters which means it is unusable for Mac users. It would be helpful if the names were shortened appropriately- I know I'm not the only Mac user of PHP out there. Additionally, this bug report form should redisplay the form with all the fields filled in when there is an error. I forgot to fill out my email address and when I clicked back after I saw the error, all my filled out fields were gone. Edit this bug report at http://bugs.php.net/?id=10862edit=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 #15057 Updated: getimagesize() crashes when offline
ID: 15057 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: Mac OS X 10.1.2 (Build 5P48) PHP Version: 4.1.1 New Comment: i have recompiled php with --enable-debug, and managed to make a backtrace. hth... './configure' '--with-apxs' '--enable-debug' Program received signal EXC_BAD_ACCESS, Could not access memory. 0x005275b8 in php_network_getaddresses (host=0x1794e8 www.php.net, sal=0xbfffade0) at network.c:151 151 network.c: No such file or directory. in network.c (gdb) bt #0 0x005275b8 in php_network_getaddresses (host=0x1794e8 www.php.net, sal=0xbfffade0) at network.c:151 #1 0x005278b0 in php_hostconnect (host=0x2 Address 0x2 out of bounds, port=80, socktype=1, timeout=0) at network.c:289 #2 0x00584870 in php_fopen_url_wrap_http (path=0x1844f8 http://www.php.net/image.gif;, mode=0x5cc550 rb, options=4, issock=0xbfffd470, socketd=0xbfffd474, opened_path=0x0) at http_fopen_wrapper.c:100 #3 0x005241bc in php_fopen_url_wrapper (path=0x1844f8 http://www.php.net/image.gif;, mode=0x5cc550 rb, options=4, issock=0xbfffd470, socketd=0xbfffd474, opened_path=0x0) at fopen_wrappers.c:538 #4 0x0052383c in php_fopen_wrapper (path=0x1844f8 http:// www.php.net/image.gif, mode=0x5cc550 rb, options=0, issock=0xbfffac78, socketd=0x1103, opened_path=0x0) at fopen_wrappers.c:256 #5 0x00586080 in zif_getimagesize (ht=1, return_value= 0x1790f8, this_ptr=0xbfffabc8, return_value_used=- 1073763208) at image.c:439 #6 0x00503428 in execute (op_array=0x184468) at ./ zend_execute.c:1590 #7 0x004eddcc in zend_execute_scripts (type=2, retval=0x0, file_count=3) at zend.c:814 #8 0x00526954 in php_execute_script (primary_file= 0xbfffea98) at main.c:1307 #9 0x005232bc in apache_php_module_main (r=0x2, display_source_mode=0) at sapi_apache.c:90 #10 0x00521d44 in send_php (r=0x1770a8, display_source_mode=0, filename=0x0) at mod_php4.c:575 #11 0xc5ac in ap_invoke_handler () #12 0x00016530 in process_request_internal () #13 0x000165ac in ap_process_request () #14 0x5d5c in child_main () #15 0x5f18 in make_child () #16 0x6084 in startup_children () #17 0x66a8 in standalone_main () #18 0x6f64 in main () #19 0x1e18 in _start () #20 0x1c48 in start () (gdb) Previous Comments: [2002-01-15 16:35:45] [EMAIL PROTECTED] when i am offline from the internet and access a file which contains only: ?php getimagesize( http://www.php.net/image.gif; ); ? httpd crashes. i am using the precompiled apache php module version 4.1.1 from http://www.entropy.ch/software/macosx/ php/ on macosx 10.1.2. the configure line is: './configure' '--with-mysql' '--with-pgsql' '--with-apxs' '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with- zlib-dir=/usr' '--with-jpeg-dir=/usr/local' '--with- freetype-dir=/usr/local' '--enable-trans-sid' '--enable- exif' '--with-xml' '--enable-wddx' '--with-curl=/usr/local' '--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '-- enable-ftp' '--enable-bcmath' and the crashlog: ** Date/Time: 2002-01-15 16:02:50 +0100 OS Version: 10.1.2 (Build 5P48) Host: localhost Command:httpd PID:771 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x001c Thread 0 Crashed: #0 0x00a27d50 in php_network_getaddresses #1 0x00a2800c in php_hostconnect #2 0x00aba634 in php_fopen_url_wrap_http #3 0x00a24ae0 in php_fopen_url_wrapper #4 0x00a24278 in php_fopen_wrapper #5 0x00abbc68 in zif_getimagesize #6 0x00a057c0 in execute #7 0x009f0f64 in zend_execute_scripts #8 0x00a27158 in php_execute_script #9 0x00a23d34 in apache_php_module_main #10 0x00a227e0 in send_php #11 0xc5ac in ap_invoke_handler #12 0x00016530 in process_request_internal #13 0x000165ac in ap_process_request #14 0x5d5c in child_main #15 0x5fcc in make_child #16 0x631c in perform_idle_server_maintenance #17 0x68a0 in standalone_main #18 0x6f64 in main #19 0x1e18 in _start #20 0x1c48 in start PPC Thread State: srr0: 0x00a27d50 srr1: 0xd030vrsave: 0x xer: 0x2020 lr: 0x00a27d20 ctr: 0x70025330 mq: 0x r0: 0x00a27d20 r1: 0xbfffb3a0 r2: 0xbfff6d90 r3: 0x0002 r4: 0x r5: 0xbfffb238 r6: 0xbfffb2e8 r7: 0x0803 r8: 0x r9: 0x r10: 0x r11: 0x248b r12: 0x70025330 r13: 0x r14: 0x r15: 0x r16: 0x r17: 0x0004 r18: 0x00bfd0c4 r19: 0xbfffdae0 r20: 0x r21: 0xbfffdae4 r22: 0x r23: 0x r24: 0xbfffdae4 r25: 0x0021c4c0 r26: 0x00bfd0c4 r27: 0x0001 r28: 0xbfffb450 r29: 0x r30:
[PHP-DEV] Bug #14972 Updated: Setting 'sendmail_path' leads to PHP not find sendmail
ID: 14972 Updated by: markonen Old Summary: Setting 'sendmail_path' leads to PHP not find sendmail Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: PHP options/info functions Operating System: MacOS 10.1.2 (Darwin 5.2) PHP Version: 4.1.1 New Comment: sendmail_path is only for setting the path to the sendmail executable. You can't set command line parameters for sendmail with it. To supply command line parameters, use the fifth parameter to the mail() function, documented at http://www.php.net/mail. Previous Comments: [2002-01-10 11:55:05] [EMAIL PROTECTED] If 'sendmail_path' is set in the php.ini like this: sendmail_path = 'sendmail -t -i' I get the following error in the Apache error log: zsh: no such file or directory: /usr/sbin/sendmail -t -i If I run /usr/sbin/sendmail -t -i manually from the zsh it works but if I surround it by quotation marks I get the same error. Edit this bug report at http://bugs.php.net/?id=14972edit=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 #15109 Updated: XML_ParserFree ()
ID: 15109 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: XML related Operating System: Linux 2.2 PHP Version: 4.0CVS-2002-01-18 New Comment: ... Use the same expat for sablotron and apache ... closed Previous Comments: [2002-01-18 18:44:15] [EMAIL PROTECTED] - php - file: php4-200201180900.tar.gz from: http://snaps.php.net/ md5: 23f60de56b75e49460bc2312c1a8ec6a ./configure --with-apxs=/usr/local/apache/bin/apxs --with-gd --with-mysql=/usr --with-zlib --with-config-file-path=/etc/apache/php --with-bcmath --with-dom=../libxml2-2.4.13/usr --enable-xslt --with-xslt-sablot=../Sablot-0.81/usr --with-expat-dir=/usr --enable-memory-limit --enable-debug - expat --- file: expat-1.95.2-1.i686.rpm form: http://sourceforge.net/project/showfiles.php?group_id=10127release_id=45670 md5: eaba64de2b3beb1b957a9f76f3244b4c - libxml -- file: libxml2-2.4.13.tar.gz md5: df94fd00943a2bc8024517fb4db33553 ./configure --enable-shared=no --prefix=usr - sablotron -- file: Sablot-0.81.tar.gz from: http://www.gingerall.com/charlie/ga/xml/d_sab.xml md5sum: 830c90d751d1bc9fe85e93013f03477c ./configure --enable-shared=no --prefix=usr - backtree # gdb /usr/local/apache/bin/httpd (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. __libc_free (mem=0x2) at malloc.c:3005 3005malloc.c: No such file or directory. (gdb) bt #0 __libc_free (mem=0x2) at malloc.c:3005 #1 0x809bf24 in hashTableDestroy () #2 0x809aef8 in dtdDestroy () #3 0x8095404 in XML_ParserFree () #4 0x838614 in ?? () from /usr/local/apache/libexec/libphp4.so #5 0x847c77 in ?? () from /usr/local/apache/libexec/libphp4.so #6 0x83c3c6 in ?? () from /usr/local/apache/libexec/libphp4.so #7 0x83c824 in ?? () from /usr/local/apache/libexec/libphp4.so #8 0x83af48 in ?? () from /usr/local/apache/libexec/libphp4.so #9 0x83f3ea in ?? () from /usr/local/apache/libexec/libphp4.so #10 0x817d37 in ?? () from /usr/local/apache/libexec/libphp4.so #11 0x74a9f4 in ?? () from /usr/local/apache/libexec/libphp4.so #12 0x74ac82 in ?? () from /usr/local/apache/libexec/libphp4.so #13 0x74ac82 in ?? () from /usr/local/apache/libexec/libphp4.so #14 0x75d25b in ?? () from /usr/local/apache/libexec/libphp4.so #15 0x76f902 in ?? () from /usr/local/apache/libexec/libphp4.so #16 0x76a59e in ?? () from /usr/local/apache/libexec/libphp4.so #17 0x76b3e0 in ?? () from /usr/local/apache/libexec/libphp4.so #18 0x76b45c in ?? () from /usr/local/apache/libexec/libphp4.so #19 0x806c9d3 in ap_invoke_handler () #20 0x807ff09 in process_request_internal () #21 0x807ff6c in ap_process_request () #22 0x807780e in child_main () #23 0x807799c in make_child () #24 0x8077af9 in startup_children () #25 0x8078126 in standalone_main () #26 0x80788b3 in main () #27 0x1c99cb in __libc_start_main (main=0x807856c main, argc=2, argv=0xbb94, ---Type return to continue, or q return to quit--- init=0x804ec6c _init, fini=0x80ac88c _fini, rtld_fini=0x11aea0 _dl_fini, stack_end=0xbb8c) at ../sysdeps/generic/libc-start.c:92 (gdb) frame 3 #3 0x8095404 in XML_ParserFree () (gdb) --- Edit this bug report at http://bugs.php.net/?id=15109edit=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 #9041 Updated: Extra #! at top of web output.
ID: 9041 Updated by: edink Reported By: [EMAIL PROTECTED] Old Status: Analyzed Status: Closed Bug Type: *General Issues Operating System: Solaris 7. PHP Version: 4.0.4pl1 New Comment: I have applied the patch to the current CVS. Previous Comments: [2001-08-31 11:53:34] [EMAIL PROTECTED] Diff copied from #8898: *** sapi/cgi/cgi_main.c.origSun Dec 3 02:09:13 2000 --- sapi/cgi/cgi_main.cWed Jan 24 16:39:34 2001 *** *** 719,725 return FAILURE; } file_handle.filename = argv0; ! } else if (file_handle.handle.fp file_handle.handle.fp!=stdin) { /* #!php support */ c = fgetc(file_handle.handle.fp); if (c == '#') { --- 719,726 return FAILURE; } file_handle.filename = argv0; ! } ! if (file_handle.handle.fp file_handle.handle.fp!=stdin) { /* #!php support */ c = fgetc(file_handle.handle.fp); if (c == '#') { [2001-06-17 04:41:01] [EMAIL PROTECTED] This will be fixed when we split the commandline and cgi modules apart. moving back to analysed. - James [2001-05-09 11:40:05] [EMAIL PROTECTED] Here's a quick and dirty fix. 18:39 james`` oK open cgi_main.c 18:39 james`` and goto line 720 18:40 james`` See that else if . 18:40 james`` } else if (file_handle.handle.fp file_handle.handle.fp!=stdin) { 18:40 james`` make it read } 18:41 james`` and then loose the } 11 lines down [2001-02-24 12:06:51] [EMAIL PROTECTED] Suspending this until a decision about what should be the correct behaviour from PHP should be. [2001-02-05 16:34:55] [EMAIL PROTECTED] Here are the CGI's I'm using: #!/opt/php/bin/php ? phpinfo(); ? #!/bin/sh echo Content-type: text/html\\n\\n; echo foo! Now this might not help any, but I truss'd the web server process (Netscape, remember.) and here a few snippits output. sh CGI. read(23, C o n t e n t - t y p e.., 8192)= 31 send(17, H T T P / 1 . 1 2 0 0.., 118, 0) = 118 send(17, \n f o o !\n, 6, 0) = 6 PHP CGI. read(22, X - P o w e r e d - B y.., 8192)= 5120 send(17, H T T P / 1 . 1 2 0 0.., 146, 0) = 146 send(17, # ! / o p t / p h p / b.., 5065, 0) = 5065 Graphic for PHP CGI page. send(19, H T T P / 1 . 1 2 0 0.., 146, 0) = 146 send(19, G I F 8 9 a82\0 C\0D5FF.., 2962, 0) = 2962 I can't tell if the web server is inserting this line or if PHP is. However, when I run these two CGIs on the command line, I never see this extra line. I guess I'm thinking that PHP does weird shit when it's not run in a shell. Any other information I can provide? 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=9041 Edit this bug report at http://bugs.php.net/?id=9041edit=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 #15127: I don't get any error messages but it loops
From: [EMAIL PROTECTED] Operating system: win 98 PHP version: 4.1.0 PHP Bug Type: Session related Bug description: I don't get any error messages but it loops ?php function checkUser() { global $session, $logged_in; $session[logged_in] = false; $ecust_row = getRow( etable, id, $session[id] ); $tt=$ecust_row; if ( !$ecust_row || $ecust_row[duser]!=$session[login] || $ecust_row[dpass]!=$session[password] ) { print $tt; file://header( Location: login.php ); exit; } $session[logged_in] = true; return $ecust_row; } ? Please help me The function code that i have given it dosent give any error messages but It passes all verfication like username and password from the database but after it call the checkuser function withou giving any error messages it return's to login menu. if ( !$ecust_row || $ecust_row[duser]!=$session[login] || $ecust_row[dpass]!=$session[password] ) { print $tt; file://header( Location: login.php ); exit; } It goes through only this verification not $session[logged_in] = true; return $ecust_row; Tuan I have got a c:/tmp directory too. -- Edit bug report at: http://bugs.php.net/?id=15127edit=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 #15128: php_java array access
From: [EMAIL PROTECTED] Operating system: Any PHP version: 4.1.1 PHP Bug Type: Feature/Change Request Bug description: php_java array access Hello, Currently under the php_java extension to access array elements you must pull the whole array/hashtable into a php variable before you can access its elements. e.g. r.java ### import java.util.*; public class r { public Hashtable y = new Hashtable(); public void r() { y.put(x,xx); } } ### ?php $je = new Java(r); $je-r(); $ht = $je-y; echo $ht[x]; ? It would be much nicer (and more php'esque) to access the array and hashtable variables directly like so :- ?php $je = new Java(r); $je-r(); echo $je-y[x]; ? As a trial I ported my custom database access class to Java JDBC with connection pooling, which went very smoothly bar this one difference (I have relied heavily on '$je- y[x];' style access in my arrays in my pages). I have had a little stab at figuring out from the source how to implement this, but it is beyond my abilities. Hence my feature request. REGARDS Paul -- Edit bug report at: http://bugs.php.net/?id=15128edit=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 #14052 Updated: ftp_rawlist: Hangs up
ID: 14052 Comment by: [EMAIL PROTECTED] Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: FTP related Operating System: Win2K PHP Version: 4.1.1 New Comment: Having the same problem here with WinXP proffesional version 4.1.1 from my experience it seems it sends the list command. then my FTP server (UNIX: type L8) receives it properly and answers with the data being send in ASCii mode. and then it hangs and i actually have to reboot for it to work another time. It just won't interprete the script anymore for a second there it allmost seems as if it needs to flush or waits for a timeout to occur. Previous Comments: [2002-01-09 11:32:45] [EMAIL PROTECTED] Please update version :) [2002-01-09 11:31:38] [EMAIL PROTECTED] I'm setting this to open, version to 4.1.1. Although in CVS there exists now a way to adjust the timeout (ftp_set_option(FTP_TIMEOUT_SEC, 10); for example) it's not a solution and there are still some flaws in the implementation IMO. [2002-01-09 11:06:06] [EMAIL PROTECTED] Yes I've tested it with 4.1.1 and the problem ist still present. 90 Seconds is absolutly true! In this time he hangs in the ftp_rawlist function... and then he will continue, but often doesn't work the next call to ftp_rawlist too. And sorry, it isn't a problem of the user, but when executing per CLI, the script run more reliable than executed by apache. When I start the script directly it run sometimes until end (Not often). I tested it on 2 machines (W2K-Notebook and W2K-PC). I'm very intrested in this function, because i'm working on a little web-filesharing-tool, which should index content of ftps. Thanks for your feedback! [2002-01-02 09:46:20] [EMAIL PROTECTED] Is this bug still present to you, also with 4.1.0? If so, can you verify that the 'hang' time is about 90 seconds (its a fixed coded timeout value in ext/ftp)? [2001-11-14 09:48:04] [EMAIL PROTECTED] I think there is really a problem with repeated ftp_rawlist (Reported in #7897). I write a script which make several ftp_rawlists to indexing all the content. In most case, the task hangs up for 1 or 2 minutes. Then the program will continue, but it can be that it hangs up again. When I start the script directly (cmd-line), it will run well. But when I start it trough the task scheduler or the web server, it hangs up always. I can't explain the problem more, because this is all - Repeated ftp_rawlist, script is running under user system. Edit this bug report at http://bugs.php.net/?id=14052edit=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 #15057 Updated: getimagesize() crashes when offline
ID: 15057 Updated by: markonen Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: Reproducible crash Operating System: Mac OS X 10.1.2 (Build 5P48) PHP Version: 4.1.1 New Comment: When offline, Mac OS X's getaddrinfo() returns a null pointer for results, but does not return an error code. PHP didn't check for this, it will in the next release. Here's the patch; I will close this bug when it's in the cvs (could someone review and commit?): diff -c -r1.26 network.c *** network.c 6 Jan 2002 22:45:43 - 1.26 --- network.c 21 Jan 2002 00:38:16 - *** *** 150,155 --- 150,158 if ((n = getaddrinfo(host, NULL, hints, res))) { php_error(E_WARNING, php_network_getaddresses: getaddrinfo failed: %s, PHP_GAI_STRERROR(n)); return 0; + } else if (res == NULL) { + php_error(E_WARNING, php_network_getaddresses: getaddrinfo failed (null result pointer)); + return 0; } sai = res; Previous Comments: [2002-01-20 18:23:56] [EMAIL PROTECTED] i have recompiled php with --enable-debug, and managed to make a backtrace. hth... './configure' '--with-apxs' '--enable-debug' Program received signal EXC_BAD_ACCESS, Could not access memory. 0x005275b8 in php_network_getaddresses (host=0x1794e8 www.php.net, sal=0xbfffade0) at network.c:151 151 network.c: No such file or directory. in network.c (gdb) bt #0 0x005275b8 in php_network_getaddresses (host=0x1794e8 www.php.net, sal=0xbfffade0) at network.c:151 #1 0x005278b0 in php_hostconnect (host=0x2 Address 0x2 out of bounds, port=80, socktype=1, timeout=0) at network.c:289 #2 0x00584870 in php_fopen_url_wrap_http (path=0x1844f8 http://www.php.net/image.gif;, mode=0x5cc550 rb, options=4, issock=0xbfffd470, socketd=0xbfffd474, opened_path=0x0) at http_fopen_wrapper.c:100 #3 0x005241bc in php_fopen_url_wrapper (path=0x1844f8 http://www.php.net/image.gif;, mode=0x5cc550 rb, options=4, issock=0xbfffd470, socketd=0xbfffd474, opened_path=0x0) at fopen_wrappers.c:538 #4 0x0052383c in php_fopen_wrapper (path=0x1844f8 http:// www.php.net/image.gif, mode=0x5cc550 rb, options=0, issock=0xbfffac78, socketd=0x1103, opened_path=0x0) at fopen_wrappers.c:256 #5 0x00586080 in zif_getimagesize (ht=1, return_value= 0x1790f8, this_ptr=0xbfffabc8, return_value_used=- 1073763208) at image.c:439 #6 0x00503428 in execute (op_array=0x184468) at ./ zend_execute.c:1590 #7 0x004eddcc in zend_execute_scripts (type=2, retval=0x0, file_count=3) at zend.c:814 #8 0x00526954 in php_execute_script (primary_file= 0xbfffea98) at main.c:1307 #9 0x005232bc in apache_php_module_main (r=0x2, display_source_mode=0) at sapi_apache.c:90 #10 0x00521d44 in send_php (r=0x1770a8, display_source_mode=0, filename=0x0) at mod_php4.c:575 #11 0xc5ac in ap_invoke_handler () #12 0x00016530 in process_request_internal () #13 0x000165ac in ap_process_request () #14 0x5d5c in child_main () #15 0x5f18 in make_child () #16 0x6084 in startup_children () #17 0x66a8 in standalone_main () #18 0x6f64 in main () #19 0x1e18 in _start () #20 0x1c48 in start () (gdb) [2002-01-15 16:35:45] [EMAIL PROTECTED] when i am offline from the internet and access a file which contains only: ?php getimagesize( http://www.php.net/image.gif; ); ? httpd crashes. i am using the precompiled apache php module version 4.1.1 from http://www.entropy.ch/software/macosx/ php/ on macosx 10.1.2. the configure line is: './configure' '--with-mysql' '--with-pgsql' '--with-apxs' '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with- zlib-dir=/usr' '--with-jpeg-dir=/usr/local' '--with- freetype-dir=/usr/local' '--enable-trans-sid' '--enable- exif' '--with-xml' '--enable-wddx' '--with-curl=/usr/local' '--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '-- enable-ftp' '--enable-bcmath' and the crashlog: ** Date/Time: 2002-01-15 16:02:50 +0100 OS Version: 10.1.2 (Build 5P48) Host: localhost Command:httpd PID:771 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x001c Thread 0 Crashed: #0 0x00a27d50 in php_network_getaddresses #1 0x00a2800c in php_hostconnect #2 0x00aba634 in php_fopen_url_wrap_http #3 0x00a24ae0 in php_fopen_url_wrapper #4 0x00a24278 in php_fopen_wrapper #5 0x00abbc68 in zif_getimagesize #6 0x00a057c0 in execute #7 0x009f0f64 in zend_execute_scripts #8 0x00a27158 in php_execute_script #9 0x00a23d34 in apache_php_module_main #10 0x00a227e0 in send_php #11 0xc5ac in ap_invoke_handler #12 0x00016530 in process_request_internal #13 0x000165ac in ap_process_request
[PHP-DEV] Bug #15129: htmlentities() bug
From: [EMAIL PROTECTED] Operating system: Win98 PHP version: 4.1.1 PHP Bug Type: *General Issues Bug description: htmlentities() bug htmlentities(), when asked to convert quotes, instead of converting to quot;, it converts it to \quot;. It adds a \ character before quot;. IMHO, this should not happen. -- Edit bug report at: http://bugs.php.net/?id=15129edit=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 #15130: pathinfo reports extension as bar/baz for /foo/bar.bar/baz
From: [EMAIL PROTECTED] Operating system: FreeBSD PHP version: 4.1.1 PHP Bug Type: Filesystem function related Bug description: pathinfo reports extension as bar/baz for /foo/bar.bar/baz Hi, print_r(pathinfo(/foo/bar.bar/baz)); Array ( [dirname] = /foo/bar.bar [basename] = baz [extension] = bar/baz ) -- Edit bug report at: http://bugs.php.net/?id=15130edit=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 #15131: XSLT Causing Core Dumps
From: [EMAIL PROTECTED] Operating system: RedHat 7.2 PHP version: 4.1.1 PHP Bug Type: Reproducible crash Bug description: XSLT Causing Core Dumps I have repeatedly and on different physical machines compiled the following: Sablotron 0.81 Expat 1.95.2 Apache 1.3.22 PHP 4.1.1 When I run an XSLT Transform, Apache core dumps. I get, in the error log: [Sun Jan 20 15:12:33 2002] [notice] child pid 17404 exit signal Segmentation fault (11) I can use the sabcmd binary that comes with Sablotron, and successfully transform the XML/XSLT without incident, so I don't think I have a bad Sab compile. Any assistance is greatly appreciated. I am recompiling Apache with debugging, tonight. Please email me if I can be of any help. My configure line is : ./configure --with-apache=../apache_1.3.22/ --with-mysql --with-oci8=/home/oracle/OraHome/ --with-sybase=/usr/local/freetds/ --with-jpeg-dir=/usr/lib --with-png --enable-track-vars --enable-tr ans-sid --enable-sigchild --with-curl=/usr/local --with-xslt-sablot --enable-xslt Brandon -- Edit bug report at: http://bugs.php.net/?id=15131edit=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 #14588 Updated: --with-bz2 doesn't listen to =dir
ID: 14588 Updated by: edink Old Summary: --with-bz2 doesn't listen to =dir Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Bzip2 Related Operating System: linux 2.4.16 - redhat 6.2 PHP Version: 4.1.0 New Comment: It seems that this is not a php bug but a problem with the way libtool works and how RedHat packages the libraries. There is an easy workaround: mv /usr/lib/libbz2.la /usr/lib/libbz2.la.old Then configure and compile php. This should fix the problem. If it does not, please reopen the report. To answer your other questions: 1. Have a look at pear/Mail/smtp.php 2. Yes. It's probably going to make it into the next major release of php. Previous Comments: [2001-12-19 01:22:13] [EMAIL PROTECTED] The kicker about this problem is that it only shows up when php is being compiled as a CGI. I always compile twice Php bzip2 support requires = 1.0.0 Redhat 6.2 bzip2-0.9.5d-2 Upgradng the stock bzip2 is not an option, there are too many packages that require the shared object files from this version. When I first tried adding bzip2 support to php I had the same errors as you'll see below. So to solve this, I installed bzip2-1.0.1 into /www and told php where it is with --with-bz2=/www all earlier releases of php 4.X worked fine with this. Until 4.1.0, which seemingly is trying to use the headers from /usr which brings us back to php-4.1.0 is ignoring =/www for the --with-bz2 compile option. Redhat 7.0 bzip2-1.0.1-3 This problem doesn't exist. Redhat 7.1 bzip2-1.0.1-3 This problem doesn't exist. Ok, here's the error make[1]: Entering directory `/usr/src/web/build/php-4.1.0' /bin/sh /usr/src/web/build/php-4.1.0/libtool --silent --mode=link gcc -I. -I/usr/src/web/build/php-4.1. 0/ -I/usr/src/web/build/php-4.1.0/main -I/usr/src/web/build/php-4.1.0 -I/usr/src/web/build/php-4.1.0/Ze nd -I/www/include -I/www/include/freetype2/freetype -I/usr/include/mysql -I/usr/src/web/build/php-4.1.0 /ext/xml/expat -I/usr/src/web/build/php-4.1.0/TSRM -g -O2 -o php -export-dynamic stub.lo libphp 4.la ./.libs/libphp4.a(bz2.o): In function `zm_info_bz2': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:97: undefined reference to `BZ2_bzlibVersion' ./.libs/libphp4.a(bz2.o): In function `zif_bzopen': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:127: undefined reference to `BZ2_bzopen' /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:132: undefined reference to `BZ2_bzdopen' ./.libs/libphp4.a(bz2.o): In function `zif_bzread': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:171: undefined reference to `BZ2_bzread' ./.libs/libphp4.a(bz2.o): In function `zif_bzwrite': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:211: undefined reference to `BZ2_bzwrite' ./.libs/libphp4.a(bz2.o): In function `zif_bzflush': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:230: undefined reference to `BZ2_bzflush' ./.libs/libphp4.a(bz2.o): In function `zif_bzcompress': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:319: undefined reference to `BZ2_bzBuffToBuffCompress' ./.libs/libphp4.a(bz2.o): In function `zif_bzdecompress': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:370: undefined reference to `BZ2_bzBuffToBuffDecompress' ./.libs/libphp4.a(bz2.o): In function `php_bz2_close': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:391: undefined reference to `BZ2_bzclose' ./.libs/libphp4.a(bz2.o): In function `php_bz2_error': /usr/src/web/build/php-4.1.0/ext/bz2/bz2.c:411: undefined reference to `BZ2_bzerror' collect2: ld returned 1 exit status make[1]: *** [php] Error 1 make[1]: Leaving directory `/usr/src/web/build/php-4.1.0' make: *** [install-recursive] Error 1 While I have your attention I've got a few unrelated questions. 1) Unix smtp server option was going to be added to 4.0.4, yet has still not been added. Any date set for this? 2) Php compiled as a module and as a cgi was supposed to have been changed so only 1 compile was necessary. Is this still in the plans? Thanks. Dan [2001-12-18 14:03:59] [EMAIL PROTECTED] ah heck ok I'll recompile, but it's still a waste. I'll go for a coffee. :-) [2001-12-18 13:58:03] [EMAIL PROTECTED] The php developer who added/maintains bzip2 support will know what I am talking about. I am not going to compile when I know this! It would be a waste of my time. [2001-12-18 13:46:26] [EMAIL PROTECTED] Please recompile so that you can tell us te exact errors. Derick [2001-12-18 13:39:06] [EMAIL PROTECTED] I compile bzip2 1.0.1 (the latest) and install it into a directory /www Then try to compile php as so ./configure \ --prefix=/www \
[PHP-DEV] Bug #15132: about FOpen
From: [EMAIL PROTECTED] Operating system: Non stated PHP version: 4.1.1 PHP Bug Type: Unknown/Other Function Bug description: about FOpen In the fopen function, the +r writes the file to the beginning of the file, correct? Now, I have a file with other content inside of that file. I want to add text, in front of that text, without messing with any of the original text. Is there already something that does this? -- Edit bug report at: http://bugs.php.net/?id=15132edit=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 #15133: SSI
From: [EMAIL PROTECTED] Operating system: Windows PHP version: 4.1.1 PHP Bug Type: Feature/Change Request Bug description: SSI Is it possible to enable future versions of PHP to be run as an SSI directive so that languages like Perl do not have to be used instead for this purpose? Currently PHP sends out the X-Powered-By headers everytime it's run including all the other default headers making it difficult to run PHP as SSI without having all the headers display to the screen. -- Edit bug report at: http://bugs.php.net/?id=15133edit=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 #15133 Updated: SSI
ID: 15133 Updated by: daniel Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: At least on UN*X systems you can run PHP perfectly as SSI - just do a SSI include !--#include virtual=phpscript.cgi -- where phpscript.cgi is a script which first line points to your PHP executable: #!/usr/bin/php which could also be c:\progra~\php\php.exe (I think). Or did I completely misunderstand you? Also the X-Powered-By can be switched off. Either by /usr/bin/php -q which omits all HTTP-headers (such as Content-type and X-Powered-By) or by configuration directive: expose_php = On ; Decides whether PHP may expose the fact that it is installed ; server (e.g., by adding its signature to the Web server header). ; It is no security threat in any way, but it makes it possible ; to determine whether you use PHP on your server or not. Kind Regards, Daniel Lorch Previous Comments: [2002-01-20 21:43:01] [EMAIL PROTECTED] Is it possible to enable future versions of PHP to be run as an SSI directive so that languages like Perl do not have to be used instead for this purpose? Currently PHP sends out the X-Powered-By headers everytime it's run including all the other default headers making it difficult to run PHP as SSI without having all the headers display to the screen. Edit this bug report at http://bugs.php.net/?id=15133edit=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 #15133 Updated: SSI
ID: 15133 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: Adding -q is sufficient. No PHP changes needed here. Previous Comments: [2002-01-20 22:00:05] [EMAIL PROTECTED] At least on UN*X systems you can run PHP perfectly as SSI - just do a SSI include !--#include virtual=phpscript.cgi -- where phpscript.cgi is a script which first line points to your PHP executable: #!/usr/bin/php which could also be c:\progra~\php\php.exe (I think). Or did I completely misunderstand you? Also the X-Powered-By can be switched off. Either by /usr/bin/php -q which omits all HTTP-headers (such as Content-type and X-Powered-By) or by configuration directive: expose_php = On ; Decides whether PHP may expose the fact that it is installed ; server (e.g., by adding its signature to the Web server header). ; It is no security threat in any way, but it makes it possible ; to determine whether you use PHP on your server or not. Kind Regards, Daniel Lorch [2002-01-20 21:43:01] [EMAIL PROTECTED] Is it possible to enable future versions of PHP to be run as an SSI directive so that languages like Perl do not have to be used instead for this purpose? Currently PHP sends out the X-Powered-By headers everytime it's run including all the other default headers making it difficult to run PHP as SSI without having all the headers display to the screen. Edit this bug report at http://bugs.php.net/?id=15133edit=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 #15133 Updated: SSI
ID: 15133 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: You kind of understood I was aware of the expose setting in the ini file, but it would be nice to be able to modify this at runtime. How can you run that -q command from within a windows environment like IIS? Previous Comments: [2002-01-20 22:02:26] [EMAIL PROTECTED] Adding -q is sufficient. No PHP changes needed here. [2002-01-20 22:00:05] [EMAIL PROTECTED] At least on UN*X systems you can run PHP perfectly as SSI - just do a SSI include !--#include virtual=phpscript.cgi -- where phpscript.cgi is a script which first line points to your PHP executable: #!/usr/bin/php which could also be c:\progra~\php\php.exe (I think). Or did I completely misunderstand you? Also the X-Powered-By can be switched off. Either by /usr/bin/php -q which omits all HTTP-headers (such as Content-type and X-Powered-By) or by configuration directive: expose_php = On ; Decides whether PHP may expose the fact that it is installed ; server (e.g., by adding its signature to the Web server header). ; It is no security threat in any way, but it makes it possible ; to determine whether you use PHP on your server or not. Kind Regards, Daniel Lorch [2002-01-20 21:43:01] [EMAIL PROTECTED] Is it possible to enable future versions of PHP to be run as an SSI directive so that languages like Perl do not have to be used instead for this purpose? Currently PHP sends out the X-Powered-By headers everytime it's run including all the other default headers making it difficult to run PHP as SSI without having all the headers display to the screen. Edit this bug report at http://bugs.php.net/?id=15133edit=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 #15133 Updated: SSI
ID: 15133 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: php.exe -q doesn't work on Windows? Previous Comments: [2002-01-20 22:04:09] [EMAIL PROTECTED] You kind of understood I was aware of the expose setting in the ini file, but it would be nice to be able to modify this at runtime. How can you run that -q command from within a windows environment like IIS? [2002-01-20 22:02:26] [EMAIL PROTECTED] Adding -q is sufficient. No PHP changes needed here. [2002-01-20 22:00:05] [EMAIL PROTECTED] At least on UN*X systems you can run PHP perfectly as SSI - just do a SSI include !--#include virtual=phpscript.cgi -- where phpscript.cgi is a script which first line points to your PHP executable: #!/usr/bin/php which could also be c:\progra~\php\php.exe (I think). Or did I completely misunderstand you? Also the X-Powered-By can be switched off. Either by /usr/bin/php -q which omits all HTTP-headers (such as Content-type and X-Powered-By) or by configuration directive: expose_php = On ; Decides whether PHP may expose the fact that it is installed ; server (e.g., by adding its signature to the Web server header). ; It is no security threat in any way, but it makes it possible ; to determine whether you use PHP on your server or not. Kind Regards, Daniel Lorch [2002-01-20 21:43:01] [EMAIL PROTECTED] Is it possible to enable future versions of PHP to be run as an SSI directive so that languages like Perl do not have to be used instead for this purpose? Currently PHP sends out the X-Powered-By headers everytime it's run including all the other default headers making it difficult to run PHP as SSI without having all the headers display to the screen. Edit this bug report at http://bugs.php.net/?id=15133edit=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 #15133 Updated: SSI
ID: 15133 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: Under IIS you specify what script engine runs your php file. Basically says that all files with extension .php are run by c:/php/php.exe or whatever the executable is. You COULD put the -q in there, but that would apply for all users. Can you specify -q at runtime so that my ISP (or any ISP for that matter) doesn't have to set explicit settings for this? That way it gets left up to the programmer HOW they want their php scripts run. Forcing -q on all users would mean that everyone of the ISP's clients would have to output all the headers just to get their scripts running. Previous Comments: [2002-01-20 22:08:46] [EMAIL PROTECTED] php.exe -q doesn't work on Windows? [2002-01-20 22:04:09] [EMAIL PROTECTED] You kind of understood I was aware of the expose setting in the ini file, but it would be nice to be able to modify this at runtime. How can you run that -q command from within a windows environment like IIS? [2002-01-20 22:02:26] [EMAIL PROTECTED] Adding -q is sufficient. No PHP changes needed here. [2002-01-20 22:00:05] [EMAIL PROTECTED] At least on UN*X systems you can run PHP perfectly as SSI - just do a SSI include !--#include virtual=phpscript.cgi -- where phpscript.cgi is a script which first line points to your PHP executable: #!/usr/bin/php which could also be c:\progra~\php\php.exe (I think). Or did I completely misunderstand you? Also the X-Powered-By can be switched off. Either by /usr/bin/php -q which omits all HTTP-headers (such as Content-type and X-Powered-By) or by configuration directive: expose_php = On ; Decides whether PHP may expose the fact that it is installed ; server (e.g., by adding its signature to the Web server header). ; It is no security threat in any way, but it makes it possible ; to determine whether you use PHP on your server or not. Kind Regards, Daniel Lorch [2002-01-20 21:43:01] [EMAIL PROTECTED] Is it possible to enable future versions of PHP to be run as an SSI directive so that languages like Perl do not have to be used instead for this purpose? Currently PHP sends out the X-Powered-By headers everytime it's run including all the other default headers making it difficult to run PHP as SSI without having all the headers display to the screen. Edit this bug report at http://bugs.php.net/?id=15133edit=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] CVS Account Request: dock
Reading the PHP source Creating experimental PHP extensions -- 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 #15130 Updated: pathinfo reports extension as bar/baz for /foo/bar.bar/baz
ID: 15130 Updated by: irc-html Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 4.1.1 New Comment: That's the correct output of pathinfo (and print_r). See http://www.php.net/manual/en/function.pathinfo.php Status - Bogus Previous Comments: [2002-01-20 20:27:56] [EMAIL PROTECTED] Hi, print_r(pathinfo(/foo/bar.bar/baz)); Array ( [dirname] = /foo/bar.bar [basename] = baz [extension] = bar/baz ) Edit this bug report at http://bugs.php.net/?id=15130edit=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 #15133 Updated: SSI
ID: 15133 Updated by: daniel Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: But this a completely intended behaviour. On UN*X you have to provide the -q as well in _every script_ which should be used as output called from a SSI directive. Where do you have to make this setting? Globally for all PHP scripts? Or can it be done in every script. I don't know IIS, sorry. Kind Regards, Daniel Lorch Previous Comments: [2002-01-20 22:11:59] [EMAIL PROTECTED] Under IIS you specify what script engine runs your php file. Basically says that all files with extension .php are run by c:/php/php.exe or whatever the executable is. You COULD put the -q in there, but that would apply for all users. Can you specify -q at runtime so that my ISP (or any ISP for that matter) doesn't have to set explicit settings for this? That way it gets left up to the programmer HOW they want their php scripts run. Forcing -q on all users would mean that everyone of the ISP's clients would have to output all the headers just to get their scripts running. [2002-01-20 22:08:46] [EMAIL PROTECTED] php.exe -q doesn't work on Windows? [2002-01-20 22:04:09] [EMAIL PROTECTED] You kind of understood I was aware of the expose setting in the ini file, but it would be nice to be able to modify this at runtime. How can you run that -q command from within a windows environment like IIS? [2002-01-20 22:02:26] [EMAIL PROTECTED] Adding -q is sufficient. No PHP changes needed here. [2002-01-20 22:00:05] [EMAIL PROTECTED] At least on UN*X systems you can run PHP perfectly as SSI - just do a SSI include !--#include virtual=phpscript.cgi -- where phpscript.cgi is a script which first line points to your PHP executable: #!/usr/bin/php which could also be c:\progra~\php\php.exe (I think). Or did I completely misunderstand you? Also the X-Powered-By can be switched off. Either by /usr/bin/php -q which omits all HTTP-headers (such as Content-type and X-Powered-By) or by configuration directive: expose_php = On ; Decides whether PHP may expose the fact that it is installed ; server (e.g., by adding its signature to the Web server header). ; It is no security threat in any way, but it makes it possible ; to determine whether you use PHP on your server or not. Kind Regards, Daniel Lorch 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=15133 Edit this bug report at http://bugs.php.net/?id=15133edit=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 #15131 Updated: XSLT Causing Core Dumps
ID: 15131 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: RedHat 7.2 PHP Version: 4.1.1 New Comment: Bug Trace, as best as I can get... root@dev:/usr/local/apache/bin# gdb /usr/local/apache/bin/httpd GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT) Copyright 2001 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-redhat-linux...(no debugging symbols found)... (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X [New Thread 1024 (LWP 12186)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 12186)] 0x400a3f62 in Situation::generateMessage (this=0x6e617473, type=578643299, code=1667846974, arg1=@0x662f3c6b, arg2=@0x3e746e6f, theMessage=@0x68742f3c) at situa.cpp:279 279 if (messenger !(flags SAB_NO_ERROR_REPORTING)) Current language: auto; currently c++ (gdb) bt #0 0x400a3f62 in Situation::generateMessage (this=0x6e617473, type=578643299, code=1667846974, arg1=@0x662f3c6b, arg2=@0x3e746e6f, theMessage=@0x68742f3c) at situa.cpp:279 #1 0x6e49646f in ?? () Cannot access memory at address 0x6d247b64 (gdb) Previous Comments: [2002-01-20 20:37:38] [EMAIL PROTECTED] I have repeatedly and on different physical machines compiled the following: Sablotron 0.81 Expat 1.95.2 Apache 1.3.22 PHP 4.1.1 When I run an XSLT Transform, Apache core dumps. I get, in the error log: [Sun Jan 20 15:12:33 2002] [notice] child pid 17404 exit signal Segmentation fault (11) I can use the sabcmd binary that comes with Sablotron, and successfully transform the XML/XSLT without incident, so I don't think I have a bad Sab compile. Any assistance is greatly appreciated. I am recompiling Apache with debugging, tonight. Please email me if I can be of any help. My configure line is : ./configure --with-apache=../apache_1.3.22/ --with-mysql --with-oci8=/home/oracle/OraHome/ --with-sybase=/usr/local/freetds/ --with-jpeg-dir=/usr/lib --with-png --enable-track-vars --enable-tr ans-sid --enable-sigchild --with-curl=/usr/local --with-xslt-sablot --enable-xslt Brandon Edit this bug report at http://bugs.php.net/?id=15131edit=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 #15130 Updated: pathinfo reports extension as bar/baz for /foo/bar.bar/baz
ID: 15130 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 4.1.1 New Comment: how can you possibly suggest that bar/baz is the file extension of /foo/bar.bar/baz by that logic recombining the parts gets you /foo/bar.bar/baz.bar/baz as the filename! I've added a comment with a php replacement and some examples of the broken output at http://www.php.net/manual/en/function.pathinfo.php Previous Comments: [2002-01-20 22:19:41] [EMAIL PROTECTED] That's the correct output of pathinfo (and print_r). See http://www.php.net/manual/en/function.pathinfo.php Status - Bogus [2002-01-20 20:27:56] [EMAIL PROTECTED] Hi, print_r(pathinfo(/foo/bar.bar/baz)); Array ( [dirname] = /foo/bar.bar [basename] = baz [extension] = bar/baz ) Edit this bug report at http://bugs.php.net/?id=15130edit=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 #15133 Updated: SSI
ID: 15133 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: Under IIS, you do not have to supply the path to the executable in every script. That's the nature of windows. It works via file extension association. My solution is to create a function called set_expose(off) or whatever fits in with the php naming conventions so that this can be set at runtime from within the script. Thus forcing php to not send out any headers by itself. Previous Comments: [2002-01-20 22:28:34] [EMAIL PROTECTED] But this a completely intended behaviour. On UN*X you have to provide the -q as well in _every script_ which should be used as output called from a SSI directive. Where do you have to make this setting? Globally for all PHP scripts? Or can it be done in every script. I don't know IIS, sorry. Kind Regards, Daniel Lorch [2002-01-20 22:11:59] [EMAIL PROTECTED] Under IIS you specify what script engine runs your php file. Basically says that all files with extension .php are run by c:/php/php.exe or whatever the executable is. You COULD put the -q in there, but that would apply for all users. Can you specify -q at runtime so that my ISP (or any ISP for that matter) doesn't have to set explicit settings for this? That way it gets left up to the programmer HOW they want their php scripts run. Forcing -q on all users would mean that everyone of the ISP's clients would have to output all the headers just to get their scripts running. [2002-01-20 22:08:46] [EMAIL PROTECTED] php.exe -q doesn't work on Windows? [2002-01-20 22:04:09] [EMAIL PROTECTED] You kind of understood I was aware of the expose setting in the ini file, but it would be nice to be able to modify this at runtime. How can you run that -q command from within a windows environment like IIS? [2002-01-20 22:02:26] [EMAIL PROTECTED] Adding -q is sufficient. No PHP changes needed here. 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=15133 Edit this bug report at http://bugs.php.net/?id=15133edit=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 #15125 Updated: pnctl_signal does not handle class's as callbacks - patch included
ID: 15125 User updated by: [EMAIL PROTECTED] Old Summary: pnctl_signal does not handle class's as callbacks - patch included Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Extensibility Functions Operating System: Linux PHP Version: 4.0CVS-2002-01-20 New Comment: this is a tested :) patch, eg. it appears to work, sample text-class-pcntl.php included at bottom Index: pcntl.c === RCS file: /repository/php4/ext/pcntl/pcntl.c,v retrieving revision 1.18 diff -u -r1.18 pcntl.c --- pcntl.c 4 Jan 2002 14:08:25 - 1.18 +++ pcntl.c 21 Jan 2002 03:45:58 - @@ -483,21 +483,15 @@ RETURN_TRUE; } -if (Z_TYPE_PP(handle)!=IS_STRING) { - php_error(E_WARNING, Invalid type specified for handle argument in %s, get_active_function_name(TSRMLS_C)); - RETURN_FALSE; - } - - convert_to_string_ex(handle); /* Just in case */ - if (!zend_is_callable(*handle, 0, func_name)) { - php_error(E_WARNING, %s: %s is not a callable function name error, get_active_function_name(TSRMLS_C), func_name); + if (!zend_is_callable(*handle, 0, func_name)) { + php_error(E_WARNING, %s: Argument is not a callable function or method, get_active_function_name(TSRMLS_C), func_name); efree(func_name); RETURN_FALSE; } efree(func_name); /* Add the function name to our signal table */ - zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), Z_STRVAL_PP(handle), (Z_STRLEN_PP(handle) + 1) * sizeof(char), NULL); + zend_hash_index_update(PCNTL_G(php_signal_table), Z_LVAL_PP(signo), handle, sizeof(zval *), NULL); if (php_signal(Z_LVAL_PP(signo), pcntl_signal_handler)==SIG_ERR) { php_error(E_WARNING, Error assigning singal in %s, get_active_function_name(TSRMLS_C)); @@ -613,22 +606,22 @@ /* Allocate */ MAKE_STD_ZVAL(param); - MAKE_STD_ZVAL(call_name); + MAKE_STD_ZVAL(retval); /* Traverse through our signal queue and call the appropriate php functions */ for (element=(PCNTL_G(php_signal_queue))-head; element; element=element-next) { long *signal_num=(long *)element-data; - if (zend_hash_index_find(PCNTL_G(php_signal_table), *signal_num, (void *) func_name)==FAILURE) { + if (zend_hash_index_find(PCNTL_G(php_signal_table), *signal_num, (void *) call_name)==FAILURE) { continue; } convert_to_long_ex(param); convert_to_string_ex(call_name); ZVAL_LONG(param, *signal_num); - ZVAL_STRING(call_name, func_name, 0); + /* Call php singal handler - Note that we do not report errors, and we ignore the return value */ call_user_function(EG(function_table), NULL, call_name, retval, 1, param TSRMLS_CC); } /* Clear */ zend_llist_clean(PCNTL_G(php_signal_queue)); -- test-class-pcntl.php #!/opt/devel/php4/php -q ? dl(pcntl.so); class test { function alarm_handle($signal){ if ($signal==SIGALRM) print Caught SIGALRM!!!\n; } function usr1_handle($signal){ if ($signal==SIGUSR1) print Caught SIGUSR1!!!\n; } function start() { //$options=NULL; //$status=NULL; print This test will demonstrate a fork followed by ipc via signals.\n; $pid=pcntl_fork(); if ($pid==0) { pcntl_signal(SIGUSR1, array($this,usr1_handle)); pcntl_signal(SIGALRM, array($this,alarm_handle)); print Child: Waiting for alarm.\n; sleep(100); print Child: Waiting for usr1..\n; sleep(100); print Child: Resetting Alarm handler to Ignore\n; pcntl_signal(SIGALRM, SIG_IGN); sleep(10); print Done\n; } else { print Parent: Waiting 10 seconds\n; sleep(10); print Parent: Sending SIGALRM to Child\n; posix_kill($pid,SIGALRM); sleep(1); print Parent: Senging SIGUSR1 to Child\n; posix_kill($pid,SIGUSR1); sleep(1); print Parent: Sending SIGALRM to Child\n; @pcntl_waitpid($pid, $status, $options); } } } $test = new test(); $test-start(); Previous Comments: [2002-01-20 11:23:35] [EMAIL PROTECTED] Ok, forgot to modify your hash table... - this one doesnt segfault :) Index: pcntl.c
[PHP-DEV] Bug #15133 Updated: SSI
ID: 15133 Updated by: daniel Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: Well, on UN*X, too you don't have to supply the path to PHP. But as you are implying, a script is either called normally OR from a SSI include. So every script which is called by SSI could have a php -q at the beginning, right? Your set_expose would therefore be redundant (unless -q is not possible from within IIS). Is it possible, or not, to run a PHP-script with -q on IIS? Kind Regards, Daniel Lorch Previous Comments: [2002-01-20 22:32:19] [EMAIL PROTECTED] Under IIS, you do not have to supply the path to the executable in every script. That's the nature of windows. It works via file extension association. My solution is to create a function called set_expose(off) or whatever fits in with the php naming conventions so that this can be set at runtime from within the script. Thus forcing php to not send out any headers by itself. [2002-01-20 22:28:34] [EMAIL PROTECTED] But this a completely intended behaviour. On UN*X you have to provide the -q as well in _every script_ which should be used as output called from a SSI directive. Where do you have to make this setting? Globally for all PHP scripts? Or can it be done in every script. I don't know IIS, sorry. Kind Regards, Daniel Lorch [2002-01-20 22:11:59] [EMAIL PROTECTED] Under IIS you specify what script engine runs your php file. Basically says that all files with extension .php are run by c:/php/php.exe or whatever the executable is. You COULD put the -q in there, but that would apply for all users. Can you specify -q at runtime so that my ISP (or any ISP for that matter) doesn't have to set explicit settings for this? That way it gets left up to the programmer HOW they want their php scripts run. Forcing -q on all users would mean that everyone of the ISP's clients would have to output all the headers just to get their scripts running. [2002-01-20 22:08:46] [EMAIL PROTECTED] php.exe -q doesn't work on Windows? [2002-01-20 22:04:09] [EMAIL PROTECTED] You kind of understood I was aware of the expose setting in the ini file, but it would be nice to be able to modify this at runtime. How can you run that -q command from within a windows environment like IIS? 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=15133 Edit this bug report at http://bugs.php.net/?id=15133edit=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 #15134: private modifier for class methods
From: [EMAIL PROTECTED] Operating system: Redhat Linux PHP version: 4.1.1 PHP Bug Type: Feature/Change Request Bug description: private modifier for class methods ok, I know that class support is only a courtesy, and it's not supposed to be complete, etc etc. BUT... would it be possible to allow us to declare class methods as private? This is the biggest thing missing to me, apart from overloading which is being addressed. Unless of course it would hugely affect performance. -- Edit bug report at: http://bugs.php.net/?id=15134edit=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] CVS Account Request: dock
Dock wrote: Reading the PHP source Creating experimental PHP extensions You don't need an CVS Account for either of the above. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List 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 #15134 Updated: private modifier for class methods
ID: 15134 Updated by: daniel Old Reported By: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Feature/Change Request Operating System: Redhat Linux PHP Version: 4.1.1 New Comment: A better OO support will come with Zend 2.0 (i.e. with the next major release of PHP). have a look at zend.com, there's some documentation about it there. The only thing you can do NOW is to add a comment which suggests to the user not to use this variable/function: /* private: moo moo */ function moo() { } Kind Regards, Daniel Lorch Previous Comments: [2002-01-21 00:18:48] [EMAIL PROTECTED] ok, I know that class support is only a courtesy, and it's not supposed to be complete, etc etc. BUT... would it be possible to allow us to declare class methods as private? This is the biggest thing missing to me, apart from overloading which is being addressed. Unless of course it would hugely affect performance. Edit this bug report at http://bugs.php.net/?id=15134edit=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 #15133 Updated: SSI
ID: 15133 Updated by: imajes Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.1 New Comment: alternatively, why not have your isp make a new filtered extension, like .pssi or something, which has the executable set as php.exe -q ? Previous Comments: [2002-01-20 23:56:30] [EMAIL PROTECTED] Well, on UN*X, too you don't have to supply the path to PHP. But as you are implying, a script is either called normally OR from a SSI include. So every script which is called by SSI could have a php -q at the beginning, right? Your set_expose would therefore be redundant (unless -q is not possible from within IIS). Is it possible, or not, to run a PHP-script with -q on IIS? Kind Regards, Daniel Lorch [2002-01-20 22:32:19] [EMAIL PROTECTED] Under IIS, you do not have to supply the path to the executable in every script. That's the nature of windows. It works via file extension association. My solution is to create a function called set_expose(off) or whatever fits in with the php naming conventions so that this can be set at runtime from within the script. Thus forcing php to not send out any headers by itself. [2002-01-20 22:28:34] [EMAIL PROTECTED] But this a completely intended behaviour. On UN*X you have to provide the -q as well in _every script_ which should be used as output called from a SSI directive. Where do you have to make this setting? Globally for all PHP scripts? Or can it be done in every script. I don't know IIS, sorry. Kind Regards, Daniel Lorch [2002-01-20 22:11:59] [EMAIL PROTECTED] Under IIS you specify what script engine runs your php file. Basically says that all files with extension .php are run by c:/php/php.exe or whatever the executable is. You COULD put the -q in there, but that would apply for all users. Can you specify -q at runtime so that my ISP (or any ISP for that matter) doesn't have to set explicit settings for this? That way it gets left up to the programmer HOW they want their php scripts run. Forcing -q on all users would mean that everyone of the ISP's clients would have to output all the headers just to get their scripts running. [2002-01-20 22:08:46] [EMAIL PROTECTED] php.exe -q doesn't work on Windows? 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=15133 Edit this bug report at http://bugs.php.net/?id=15133edit=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] apache php Authentication security problem
I am using Basic authentication on my school site. It works as I want, but when I use php, I can read the password form variable $php_auth_pw / $HTTP_SERVER_VARS[PHP_AUTH_PW]. I think it have a security problem when the student can read another one password using php. But I have no ideal how to protect it. Is it the setting of apache or php? moon CCC Ming Kei College [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] Bug #15132 Updated: about FOpen
ID: 15132 Updated by: torben Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Unknown/Other Function Operating System: Non stated PHP Version: 4.1.1 New Comment: No, there isn't--for one thing, the system fopen() call won't do it. However, what you can do is create a new file with a temporary name (see tempnam()), write your new content to it, append the contents of the original file, delete the original file, and rename the new file with the name of the original one. BTW, you shouldn't use the bug database to ask questions; that's what the mailing lists are for. Using the bug database for this sort of thing just clogs it up... Torben Previous Comments: [2002-01-20 21:40:43] [EMAIL PROTECTED] In the fopen function, the +r writes the file to the beginning of the file, correct? Now, I have a file with other content inside of that file. I want to add text, in front of that text, without messing with any of the original text. Is there already something that does this? Edit this bug report at http://bugs.php.net/?id=15132edit=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 #15057 Updated: getimagesize() crashes when offline
ID: 15057 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Analyzed Status: Closed Bug Type: Reproducible crash Operating System: Mac OS X 10.1.2 (Build 5P48) PHP Version: 4.1.1 New Comment: Fixed in CVS. Thank for your report. Previous Comments: [2002-01-20 19:40:43] [EMAIL PROTECTED] When offline, Mac OS X's getaddrinfo() returns a null pointer for results, but does not return an error code. PHP didn't check for this, it will in the next release. Here's the patch; I will close this bug when it's in the cvs (could someone review and commit?): diff -c -r1.26 network.c *** network.c 6 Jan 2002 22:45:43 - 1.26 --- network.c 21 Jan 2002 00:38:16 - *** *** 150,155 --- 150,158 if ((n = getaddrinfo(host, NULL, hints, res))) { php_error(E_WARNING, php_network_getaddresses: getaddrinfo failed: %s, PHP_GAI_STRERROR(n)); return 0; + } else if (res == NULL) { + php_error(E_WARNING, php_network_getaddresses: getaddrinfo failed (null result pointer)); + return 0; } sai = res; [2002-01-20 18:23:56] [EMAIL PROTECTED] i have recompiled php with --enable-debug, and managed to make a backtrace. hth... './configure' '--with-apxs' '--enable-debug' Program received signal EXC_BAD_ACCESS, Could not access memory. 0x005275b8 in php_network_getaddresses (host=0x1794e8 www.php.net, sal=0xbfffade0) at network.c:151 151 network.c: No such file or directory. in network.c (gdb) bt #0 0x005275b8 in php_network_getaddresses (host=0x1794e8 www.php.net, sal=0xbfffade0) at network.c:151 #1 0x005278b0 in php_hostconnect (host=0x2 Address 0x2 out of bounds, port=80, socktype=1, timeout=0) at network.c:289 #2 0x00584870 in php_fopen_url_wrap_http (path=0x1844f8 http://www.php.net/image.gif;, mode=0x5cc550 rb, options=4, issock=0xbfffd470, socketd=0xbfffd474, opened_path=0x0) at http_fopen_wrapper.c:100 #3 0x005241bc in php_fopen_url_wrapper (path=0x1844f8 http://www.php.net/image.gif;, mode=0x5cc550 rb, options=4, issock=0xbfffd470, socketd=0xbfffd474, opened_path=0x0) at fopen_wrappers.c:538 #4 0x0052383c in php_fopen_wrapper (path=0x1844f8 http:// www.php.net/image.gif, mode=0x5cc550 rb, options=0, issock=0xbfffac78, socketd=0x1103, opened_path=0x0) at fopen_wrappers.c:256 #5 0x00586080 in zif_getimagesize (ht=1, return_value= 0x1790f8, this_ptr=0xbfffabc8, return_value_used=- 1073763208) at image.c:439 #6 0x00503428 in execute (op_array=0x184468) at ./ zend_execute.c:1590 #7 0x004eddcc in zend_execute_scripts (type=2, retval=0x0, file_count=3) at zend.c:814 #8 0x00526954 in php_execute_script (primary_file= 0xbfffea98) at main.c:1307 #9 0x005232bc in apache_php_module_main (r=0x2, display_source_mode=0) at sapi_apache.c:90 #10 0x00521d44 in send_php (r=0x1770a8, display_source_mode=0, filename=0x0) at mod_php4.c:575 #11 0xc5ac in ap_invoke_handler () #12 0x00016530 in process_request_internal () #13 0x000165ac in ap_process_request () #14 0x5d5c in child_main () #15 0x5f18 in make_child () #16 0x6084 in startup_children () #17 0x66a8 in standalone_main () #18 0x6f64 in main () #19 0x1e18 in _start () #20 0x1c48 in start () (gdb) [2002-01-15 16:35:45] [EMAIL PROTECTED] when i am offline from the internet and access a file which contains only: ?php getimagesize( http://www.php.net/image.gif; ); ? httpd crashes. i am using the precompiled apache php module version 4.1.1 from http://www.entropy.ch/software/macosx/ php/ on macosx 10.1.2. the configure line is: './configure' '--with-mysql' '--with-pgsql' '--with-apxs' '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with- zlib-dir=/usr' '--with-jpeg-dir=/usr/local' '--with- freetype-dir=/usr/local' '--enable-trans-sid' '--enable- exif' '--with-xml' '--enable-wddx' '--with-curl=/usr/local' '--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '-- enable-ftp' '--enable-bcmath' and the crashlog: ** Date/Time: 2002-01-15 16:02:50 +0100 OS Version: 10.1.2 (Build 5P48) Host: localhost Command:httpd PID:771 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x001c Thread 0 Crashed: #0 0x00a27d50 in php_network_getaddresses #1 0x00a2800c in php_hostconnect #2 0x00aba634 in php_fopen_url_wrap_http #3 0x00a24ae0 in php_fopen_url_wrapper #4 0x00a24278 in php_fopen_wrapper #5 0x00abbc68 in zif_getimagesize #6 0x00a057c0 in execute #7 0x009f0f64 in zend_execute_scripts #8 0x00a27158 in php_execute_script #9 0x00a23d34 in apache_php_module_main