#32282 [Opn->Fbk]: segfault using mysqli_fetch_array
ID: 32282 Updated by: [EMAIL PROTECTED] Reported By: gabriel at telana dot com -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux 2.6 (custom, based on FC1) PHP Version: 5.0.3 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: [2005-03-11 23:34:24] gabriel at telana dot com Description: This is exactly the same as bug #28933, except it's still happening for me on PHP 5.0.3 on x86_64. I would have added a comment to that bug but it's been closed. The only other info I've seen on the net related to this is something about mixing 32-bit and 64-bit libraries. I'm running a pure 64-bit system so that's not the problem. I tested this with the simplest possible configuration: "./configure --with-mysqli=/usr/bin/mysql_config" and ran the test script (functionally identical with the one in #28933) with the CLI version, using php.ini-dist. Tested with mysql versions 4.1.7 and 4.1.10. Reproduce code: --- See bug #28933 Expected result: PHP to not segfault :) Actual result: -- PHP segfaults :( -- Edit this bug report at http://bugs.php.net/?id=32282&edit=1
#29442 [Fbk->Opn]: php -i gives an error
ID: 29442 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: windows PHP Version: 5CVS-2005-03-07 New Comment: I've already tried to disable all the extensions in the php.ini, but I still get the same errors. Previous Comments: [2005-03-09 22:01:32] [EMAIL PROTECTED] How can we reproduce this? Is it some module causing this that you load in the php.ini of yours? Or something else? Not enough info -> bogus soon.. [2005-03-07 20:59:06] [EMAIL PROTECTED] Yep, I can still reproduce it, both '-i' and '--version'. [2005-03-06 20:53:46] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ..and again, update the Version field accordingly. (something like 5CVS-2005-03-06 should appear in it if you can verify this bug..) [2005-01-15 21:37:09] [EMAIL PROTECTED] I'm using the binaries from snaps.php.net. If I build PHP with cygwin, I get no problems. (I have no MSVC tools) [2005-01-15 18:27:23] [EMAIL PROTECTED] Nuno, as far as I understand, you test it with version built by youself. Could you plz try it with officially built snapshots ? 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/29442 -- Edit this bug report at http://bugs.php.net/?id=29442&edit=1
#32275 [Opn->Csd]: add &count parameter to preg_replace
ID: 32275 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type:Feature/Change Request PHP Version: 5.0.3 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Will appear in 5.1.0 Thanks! Previous Comments: [2005-03-11 08:57:04] [EMAIL PROTECTED] Description: In 5.0.0 were was parameter &count introduced in str_replace() to catch the total number of matched and replaced needles. Is it possible to get the same functionality in preg_replace()? Reproduce code: --- mixed preg_replace ( mixed pattern, mixed replacement, mixed subject [, int limit] ) Expected result: mixed preg_replace ( mixed pattern, mixed replacement, mixed subject [, int limit[, int &count]] ) -- Edit this bug report at http://bugs.php.net/?id=32275&edit=1
#31953 [Opn->Asn]: SoapClient::setHeader
ID: 31953 Updated by: [EMAIL PROTECTED] Reported By: wico at cnh dot nl -Status: Open +Status: Assigned Bug Type: Feature/Change Request Operating System: * PHP Version: 5.0.3 -Assigned To: +Assigned To: dmitry Previous Comments: [2005-02-13 11:35:23] wico at cnh dot nl Description: I think it's usefull to have a SoapClient::setHeader (or something like that) for soap servers that requires static headers (mostly with authentication parameters) $soapHeader = new SoapHeader($ns, 'AuthHeader', array ( 'Username' => $user, 'Password' => $pass )); $soap = new SoapClient($wsdl, $options); /* so you can do this: */ $soap->setHeader($soapHeader); $soap->function1($parameters); $soap->function2($parameters); $soap->function3($parameters); /*instead of this:*/ $soap = new SoapClient($wsdl, $options); $soap->__soapCall('function1', $parameters, null, $soapHeader); $soap->__soapCall('function2', $parameters, null, $soapHeader); $soap->__soapCall('function3', $parameters, null, $soapHeader); -- Edit this bug report at http://bugs.php.net/?id=31953&edit=1
#31824 [Opn->Fbk]: strtok() improvement suggestion
ID: 31824 Updated by: [EMAIL PROTECTED] Reported By: dpisarev at rogers dot com -Status: Open +Status: Feedback Bug Type: Feature/Change Request Operating System: All PHP Version: 5.0.3 New Comment: Do you mean split() instead of strtok()? Previous Comments: [2005-02-03 06:05:44] dpisarev at rogers dot com Description: The existing string-tokenizing function (strtok) could be improved by being made to take an additional parameter that would tell the function to treat multiple adjacent delimiters as one for the purposes of splitting up the string. It appears that "preg_split" can accomplish the task but that would involve concocting the right regular expressions -- which is a pain that most people would prefer to avoid. Besides, the chatter on the documentation threads is that messing with regular expressions slows down execution. Expected result: Say, we have the string (omit the quotes): "[EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED]" And suppose we want to parse it to extract the email addresses (imagine we have a mailing list system where we add people's addresses in bulk with all sorts of crazy formatting in between the addresses that we don't have the time to neaten up). So, the output of tokenizing the above string by the delimiters: ", ;" should in my vision be an array of just FOUR elements, namely: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] It is easy to see that one can find a lot of uses for this particular tokenization algorithm. Actual result: -- The way things are now with strtok, I'd get an array of more than the above-listed 4 elements. In addition to them I'd get a whole bunch of empty elements in the array corresponding to all occurences of two delimiters occuring side-by-side in the string to be tokenized. Please feel free to concact me for any clarifications. In case the improvement suggestion is integrated into PHP, credits will be welcomed. -- Edit this bug report at http://bugs.php.net/?id=31824&edit=1
#32285 [Opn->Fbk]: can't complie with gd
ID: 32285 Updated by: [EMAIL PROTECTED] Reported By: admin at cuttinthebutter dot com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: Mac OS X 10.3.8/Darwin PHP Version: 5.0.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: [2005-03-12 01:51:58] admin at cuttinthebutter dot com Description: Trying to compile using the following configurations --prefix=/Library/PHP5 --with-gd --enable-soap --with-curl=/Library/CURL --with-curlwrappers --with-zlib --with-xml --with-mysql=/Library/MySQL --with-apxs2=/Library/Apache2/bin/apxs I recieve the following errors on make. ld: Undefined symbols: _gdFreeFontCache _gdImageBoundsSafe I have installed libpng, libjpeg and t1lib. I installed GD seperatly and used --with-gd=/Library/GD and received just: ld: Undefined symbols: _gdFreeFontCache I have looked everywhere for anybody else having this issue and the only results showed bug reports from 4.1.x with the same. Actual result: -- ld: Undefined symbols: _gdFreeFontCache _gdImageBoundsSafe -- Edit this bug report at http://bugs.php.net/?id=32285&edit=1
#32283 [Opn->Fbk]: zlib.output_compression = 1 but no headers sent
ID: 32283 Updated by: [EMAIL PROTECTED] Reported By: plasmahh at gmx dot net -Status: Open +Status: Feedback Bug Type: Output Control Operating System: Linux PHP Version: 5.0.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: [2005-03-12 00:10:04] plasmahh at gmx dot net Description: When setting zlib.output_compression in php.ini and outputting any page (tried with ) no proper headers are sent. From zlib manual : Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. It looks like in zlib.c the php_enable_output_compression function should enable the compression, which it also does (the data is sent gzipped properly if the client has a proper Accept-Encoding header sent) but nowhere in there is a header sent with Content-Encoding. The only occurence is in the ob_gzhandler but it seems like this is a totally different feature. I have set a header output in my php_enable_output_compression and it works for me, dont know if this is the proper solution. -- Edit this bug report at http://bugs.php.net/?id=32283&edit=1
#32279 [Opn]: _SESSION treated as super global without session_start()
ID: 32279 Updated by: [EMAIL PROTECTED] Reported By: pguilbault at iweb dot ca Status: Open Bug Type:Session related PHP Version: 5.0.3 New Comment: Yes, it's definately a bug. And I wouldn't suggest using $_SESSION like that as we might a) fix this bug b) this won't work if session extension is not enabled.. Previous Comments: [2005-03-11 15:54:38] pguilbault at iweb dot ca Description: Without using session_start() and setting $_SESSION['test']='hi there'; in a class and echoing thise $_SESSION['test'] outside the class with echo the 'hi there'... I was told it was a bug... Althougth I am hoping it is NOT a bug and that I will be able to use that super global for my Session Management class. So I can use $_SESSION['test'] in my classes instead of $GLOBAS['session_vars']['test']. which is way too long for my test. Reproduce code: --- class tester() { function __construct() { $_SESSION['test'] = 'hi there'; } } $test = new tester(); echo $_SESSION['test']; Expected result: hi there -- Edit this bug report at http://bugs.php.net/?id=32279&edit=1
#32278 [Opn->Fbk]: Remote linked server not accessibile
ID: 32278 Updated by: [EMAIL PROTECTED] Reported By: raulionescu at gmail dot com -Status: Open +Status: Feedback Bug Type: MSSQL related Operating System: WinXP Pro PHP Version: 5.0.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: [2005-03-11 15:24:45] raulionescu at gmail dot com Description: I have created a stored procedure wich is accessing an remote linked MSSQL 2000 server and works perfectly from Querry Analyzer. The problem occurs when I try to execute the stored procedure from php (by using mssql_bind or mssql_query); I've got no error but no result either. It seems that php doesn't allows to access remote linked servers! -- Edit this bug report at http://bugs.php.net/?id=32278&edit=1
#32263 [Opn->Fbk]: Location sets 302 on HTTP/1.1+POST, should be 303
ID: 32263 Updated by: [EMAIL PROTECTED] Reported By: pornel at despammed dot com -Status: Open +Status: Feedback Bug Type: HTTP related Operating System: any PHP Version: 5.0.3 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: [2005-03-10 14:21:20] pornel at despammed dot com Description: HTTP/1.1 user-agents should be redirected after POST request using 303 status. According to RFC2616 user-agents MUST NOT redirect POST on 302 status (unless confirmed by the user, AFAIK only Lynx does that), so 302 is not the best choice in this situation. In short: if (HTTP/1.1 && POST) default_redirect_status=303. -- Edit this bug report at http://bugs.php.net/?id=32263&edit=1
#32244 [Opn->Fbk]: enabled iconv extension but got "undefined function iconv()" error
ID: 32244 Updated by: [EMAIL PROTECTED] Reported By: wellswang at auo dot com -Status: Open +Status: Feedback Bug Type: ICONV related Operating System: FreeBSD 5.3 PHP Version: 5.0.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: [2005-03-10 01:09:15] wellswang at auo dot com The result is: array(11) { [0]=> string(8) "libiconv" [1]=> string(16) "ob_iconv_handler" [2]=> string(18) "iconv_get_encoding" [3]=> string(18) "iconv_set_encoding" [4]=> string(12) "iconv_strlen" [5]=> string(12) "iconv_substr" [6]=> string(12) "iconv_strpos" [7]=> string(13) "iconv_strrpos" [8]=> string(17) "iconv_mime_encode" [9]=> string(17) "iconv_mime_decode" [10]=> string(25) "iconv_mime_decode_headers" } [2005-03-09 21:54:24] [EMAIL PROTECTED] Please run this code: and paste the output here. [2005-03-09 07:23:25] wellswang at auo dot com i found my problem is same as Bug #12443 but my php version is 5.0.3 i don't know how to solve it i use his script to check : "; } else { echo "iconv_get_encoding is not declared"; } if ($exists_iconv == TRUE) { echo "iconv is declared"; } else { echo "iconv is not declared"; } $test_string = "this is an ascii-only test string"; echo "test_string is: $test_string"; $encoding = iconv_get_encoding($test_string); echo "encoding is: $encoding"; $result = iconv($encoding,'UTF-8',$test_string); echo "result is: $result"; ?> and got the same result as Bug #12443: iconv_get_encoding is declared iconv is not declared test_string is: this is an ascii-only test string encoding is: Fatal error: Call to undefined function iconv() in /http/document/root_osa/temp/foo.php on line 24 [2005-03-09 07:15:43] wellswang at auo dot com Description: enabled iconv extension but got "undefined function iconv()" error I build php5.0.3 on my freebsd 5.3 box, My configure command is: './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--with-bz2' '--enable-calendar' '--with-zlib' '--enable-ftp' '--with-gd' '--enable-mbstring' '--with-mysql=/usr/local' '--with-mysqli' '--enable-sqlite-utf8' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-spl' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs' '--prefix=/usr/local' 'i386-portbld-freebsd5.3' '--with-xmlrpc' '--with-iconv-dir=/usr/local/lib' It say's configured without error: . checking for iconv support... yes checking for iconv... (cached) yes checking if iconv is glibc's... no checking if iconv supports errno... no . checking whether libxml build works... (cached) yes checking for XMLRPC-EPI support... yes checking libexpat dir for XMLRPC-EPI... no checking iconv dir for XMLRPC-EPI... /usr/local/lib checking for libiconv in -liconv... (cached) yes . By using php -i or phpinfo() ,i got : iconv iconv support => enabled iconv implementation => unknown iconv library version => unknown Directive => Local Value => Master Value iconv.input_encoding => ISO-8859-1 => ISO-8859-1 iconv.internal_encoding => ISO-8859-1 => ISO-8859-1 iconv.output_encoding => ISO-8859-1 => ISO-8859-1 I donot know the meaning of "unknown" but iconv support is enabled ?! == When I use iconv() in my php program, I got error message such as : Fatal error: Call to undefined function iconv() in /http/document/root_osa/classes/blog_function.php on line 683 is it a php bug or my config problem ? Reproduce code: --- configure command : './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--with-bz2' '--enable-calendar' '--with-zlib' '--enable-ftp' '--with-gd' '--enable-mbstring' '--with-mysql=/usr/local' '--with-mysqli' '--enable-sqlite-utf8' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-spl' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs' '--prefix=/usr/local' 'i386-portbld-freebsd5.3' '--with-xmlrpc' '--with-iconv-dir=/usr/local/lib' in php file: Expected result: This is a test. Actual result: -- Fatal error: Call to undefined function iconv() in /http/document/root_osa/test.php on line 2 -- Edit this bug report at http://bugs.php.net/?id=32244&edit=1
#32176 [Opn->Fbk]: (OS 10054)An existing connection was forcibly closed by the remote host. : cor
ID: 32176 Updated by: [EMAIL PROTECTED] Reported By: webmaster at sanders-consultation-group-plu -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: Windows 2000 Pro PHP Version: 5.0.3 New Comment: Waiting for feedback..(please don't reply before you have tried the snapshot) Previous Comments: [2005-03-10 20:58:10] webmaster at sanders-consultation-group-plu Thanks Sniper, I'll work on that CVS update here over the weekend. Things are a bit hectic to do it today. Thanks for the help. I'll report back once it's completed. [2005-03-09 21:38:55] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip It was said in the bug #25570 that this should be fixed in CVS.. [2005-03-09 04:13:36] webmaster at sanders-consultation-group-plu Thought maybe some of this might help...just trying to help identify what's still causing this problem. Server software environment: Apache version 2.0.52 MySQL version 4.1.10 PostgreSQL version 8.0.0 Openssl version 0.9.7e Slimftpd version 3.16 Xmail version 1.21 Perl version 5.8.6 PHP version 5.0.3 readme Python version 2.3.4 [2005-03-09 04:10:25] webmaster at sanders-consultation-group-plu Done Sniper, restarted the server, and still the following: [Tue Mar 08 21:02:17 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:59:21 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:59:21 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:57:20 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:57:20 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:56:59 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:56:58 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:54:51 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:54:29 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:50:41 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network [Tue Mar 08 20:50:41 2005] [info] (OS 10054)An existing connection was forcibly closed by the remote host. : core_output_filter: writing data to the network Next question or suggestion? Thanks for the suggestion. [2005-03-09 00:57:10] [EMAIL PROTECTED] Try without those tags around 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/32176 -- Edit this bug report at http://bugs.php.net/?id=32176&edit=1
#32263 [Fbk->Opn]: Location sets 302 on HTTP/1.1+POST, should be 303
ID: 32263 User updated by: pornel at despammed dot com Reported By: pornel at despammed dot com -Status: Feedback +Status: Open Bug Type: HTTP related -Operating System: any +Operating System: win -PHP Version: 5.0.3 +PHP Version: 5.0.2/cgi, 4.3.3/mod tested New Comment: http://example.com";); ?> HTTP dialog: POST /test.php5 HTTP/1.1 Host: localhost Content-Length: 0 HTTP/1.1 302 Date: Sat, 12 Mar 2005 15:28:40 GMT Server: Apache/1.3.27 (Win32) PHP/4.3.3 X-Powered-By: PHP/5.0.2 Location: http://example.com Transfer-Encoding: chunked Content-Type: text/html 0 POST /test.php HTTP/1.1 Host: localhost Content-Length: 0 HTTP/1.1 302 Found Date: Sat, 12 Mar 2005 15:26:03 GMT Server: Apache/1.3.27 (Win32) PHP/4.3.3 X-Powered-By: PHP/4.3.3 Cache-Control: no-cache Location: http://example.com Transfer-Encoding: chunked Content-Type: text/html 0 Previous Comments: [2005-03-12 14:44:51] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. [2005-03-10 14:21:20] pornel at despammed dot com Description: HTTP/1.1 user-agents should be redirected after POST request using 303 status. According to RFC2616 user-agents MUST NOT redirect POST on 302 status (unless confirmed by the user, AFAIK only Lynx does that), so 302 is not the best choice in this situation. In short: if (HTTP/1.1 && POST) default_redirect_status=303. -- Edit this bug report at http://bugs.php.net/?id=32263&edit=1
#31560 [Opn->Csd]: str_word_count should include opt. argument charlist
ID: 31560 Updated by: [EMAIL PROTECTED] Reported By: psychosos at gmx dot at -Status: Open +Status: Closed Bug Type:Feature/Change Request PHP Version: 4.3.8 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-01-14 23:12:42] psychosos at gmx dot at Description: The function str_word_count(), which counts words in a string, should have an optional argument "charlist", just like trim() and similar functions do. This argument would control which characters are separating words within a string. -- Edit this bug report at http://bugs.php.net/?id=31560&edit=1
#31560 [Csd]: str_word_count should include opt. argument charlist
ID: 31560 User updated by: psychosos at gmx dot at Reported By: psychosos at gmx dot at Status: Closed Bug Type:Feature/Change Request PHP Version: 4.3.8 New Comment: Wow! Thank you very much! :) Regards. Previous Comments: [2005-03-12 17:51:05] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2005-01-14 23:12:42] psychosos at gmx dot at Description: The function str_word_count(), which counts words in a string, should have an optional argument "charlist", just like trim() and similar functions do. This argument would control which characters are separating words within a string. -- Edit this bug report at http://bugs.php.net/?id=31560&edit=1
#32263 [Opn->Asn]: Location sets 302 on HTTP/1.1+POST, should be 303
ID: 32263 Updated by: [EMAIL PROTECTED] Reported By: pornel at despammed dot com -Status: Open +Status: Assigned Bug Type: HTTP related Operating System: win PHP Version: 5.0.2/cgi, 4.3.3/mod tested -Assigned To: +Assigned To: rasmus New Comment: I think most clients actually treat a 302 like a 303 in that case. But yes, this should be fixed. Unfortunately we don't have a clean way of doing this without adding the proto_num to the request_info struct. Changing that struct would be a bad idea for PHP4 at this point. I'll look into doing it for PHP 5.1. As a workaround, just do: header("Location: /foo",true,303); Previous Comments: [2005-03-12 16:28:36] pornel at despammed dot com http://example.com";); ?> HTTP dialog: POST /test.php5 HTTP/1.1 Host: localhost Content-Length: 0 HTTP/1.1 302 Date: Sat, 12 Mar 2005 15:28:40 GMT Server: Apache/1.3.27 (Win32) PHP/4.3.3 X-Powered-By: PHP/5.0.2 Location: http://example.com Transfer-Encoding: chunked Content-Type: text/html 0 POST /test.php HTTP/1.1 Host: localhost Content-Length: 0 HTTP/1.1 302 Found Date: Sat, 12 Mar 2005 15:26:03 GMT Server: Apache/1.3.27 (Win32) PHP/4.3.3 X-Powered-By: PHP/4.3.3 Cache-Control: no-cache Location: http://example.com Transfer-Encoding: chunked Content-Type: text/html 0 [2005-03-12 14:44:51] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. [2005-03-10 14:21:20] pornel at despammed dot com Description: HTTP/1.1 user-agents should be redirected after POST request using 303 status. According to RFC2616 user-agents MUST NOT redirect POST on 302 status (unless confirmed by the user, AFAIK only Lynx does that), so 302 is not the best choice in this situation. In short: if (HTTP/1.1 && POST) default_redirect_status=303. -- Edit this bug report at http://bugs.php.net/?id=32263&edit=1
#32279 [Opn]: _SESSION treated as super global without session_start()
ID: 32279 Updated by: [EMAIL PROTECTED] Reported By: pguilbault at iweb dot ca Status: Open Bug Type:Session related PHP Version: 5.0.3 New Comment: Well, personally I don't think it's a bug. Other autoglobals are registered in the same time too (i.e. at module init time). Previous Comments: [2005-03-12 14:43:42] [EMAIL PROTECTED] Yes, it's definately a bug. And I wouldn't suggest using $_SESSION like that as we might a) fix this bug b) this won't work if session extension is not enabled.. [2005-03-11 15:54:38] pguilbault at iweb dot ca Description: Without using session_start() and setting $_SESSION['test']='hi there'; in a class and echoing thise $_SESSION['test'] outside the class with echo the 'hi there'... I was told it was a bug... Althougth I am hoping it is NOT a bug and that I will be able to use that super global for my Session Management class. So I can use $_SESSION['test'] in my classes instead of $GLOBAS['session_vars']['test']. which is way too long for my test. Reproduce code: --- class tester() { function __construct() { $_SESSION['test'] = 'hi there'; } } $test = new tester(); echo $_SESSION['test']; Expected result: hi there -- Edit this bug report at http://bugs.php.net/?id=32279&edit=1
#32287 [Opn->Fbk]: Segmentation fault in simple PHP script
ID: 32287 Updated by: [EMAIL PROTECTED] Reported By: john at swartzentruber dot us -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Fedora Core3 PHP Version: 5CVS-2005-03-12 (dev) New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: [2005-03-12 22:51:21] john at swartzentruber dot us Description: When I run the example script using my browser, there is a segmentation fault on the call to $result->fetch_array(MYSQLI_ASSOC) on line 16. When I run it from the command line, the script appears to work. The segmentation fault only occurs when fetching the associative array. Using MYSQLI_NUM works, but MYSQLI_BOTH also crashes. Reproduce code: --- host_info); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $query = "SELECT Name, CountryCode FROM City ORDER by ID LIMIT 3"; $result = $mysqli->query($query); /* numeric array */ $row = $result->fetch_array(MYSQLI_NUM); printf ("%s (%s)\n", $row[0], $row[1]); /* associative array */ $row = $result->fetch_array(MYSQLI_ASSOC); printf ("%s (%s)\n", $row["Name"], $row["CountryCode"]); $result->close(); $mysqli->close(); ?> Expected result: Kabul (AFG) Qandahar (AFG) Actual result: -- #0 0x0018d96b in strlen () from /lib/tls/libc.so.6 #1 0x0231cc70 in php_mysqli_fetch_into_hash (ht=1, return_value=0x9ed2454, this_ptr=0x9ed16fc, return_value_used=1, override_flags=0, into_object=0) at /usr/local/src/php5-STABLE-200503121930/ext/mysqli/mysqli.c:663 #2 0x02326b79 in zif_mysqli_fetch_array (ht=1, return_value=0x9ed2454, this_ptr=0x9ed16fc, return_value_used=1) at /usr/local/src/php5-STABLE-200503121930/ext/mysqli/mysqli_nonapi.c:193 #3 0x024c3f31 in zend_do_fcall_common_helper (execute_data=0xbfee64d0, opline=0x9ed61b8, op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:2727 #4 0x024c4645 in zend_do_fcall_by_name_handler (execute_data=0xbfee64d0, opline=0x9ed61b8, op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:2841 #5 0x024bf0ee in execute (op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:1406 #6 0x0249b364 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php5-STABLE-200503121930/Zend/zend.c:1068 #7 0x0245c516 in php_execute_script (primary_file=0xbfee8830) at /usr/local/src/php5-STABLE-200503121930/main/main.c:1630 #8 0x024c9b29 in php_handler (r=0x9ebf8d8) at /usr/local/src/php5-STABLE-200503121930/sapi/apache2handler/sapi_apache2.c:555 #9 0x007bf9f7 in ap_run_handler () from /usr/sbin/httpd #10 0x09b83888 in ?? () #11 0x007bf9ce in ap_run_handler () from /usr/sbin/httpd #12 0x09ebf8d8 in ?? () #13 0x09ebf8d8 in ?? () #14 0xbfee89a8 in ?? () #15 0x007bfe63 in ap_invoke_handler () from /usr/sbin/httpd Previous frame inner to this frame (corrupt stack?) -- Edit this bug report at http://bugs.php.net/?id=32287&edit=1
#32171 [Opn->Asn]: Userspace stream wrapper crashes PHP
ID: 32171 Updated by: [EMAIL PROTECTED] Reported By: jr at terragate dot net -Status: Open +Status: Assigned Bug Type: SPL related Operating System: * PHP Version: 5.* Assigned To: helly Previous Comments: [2005-03-09 17:52:16] jr at terragate dot net Finally I was able to create a smaller test case for the segfault (with error_reporting = E_ALL): Trace: (gdb) r crash.php Starting program: /usr/local/bin/php crash.php warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 15212)] Done Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 15212)] 0x0019 in ?? () Current language: auto; currently asm (gdb) bt #0 0x0019 in ?? () #1 0x081abc73 in _php_stream_free (stream=0x82fdce4, close_options=3) at /root/compile/php5-STABLE-200503091530/main/streams/streams.c:351 #2 0x080b3fb8 in spl_ce_dir_object_free_storage (object=0x82f76c4) at /root/compile/php5-STABLE-200503091530/ext/spl/spl_directory.c:66 #3 0x081fa906 in zend_objects_store_del_ref (zobject=0x82fd4e4) at /root/compile/php5-STABLE-200503091530/Zend/zend_objects_API.c:159 #4 0x081deb76 in _zval_dtor (zvalue=0x82fd4e4, __zend_filename=0x82549e0 "/root/compile/php5-STABLE-200503091530/Zend/zend_execute_API.c", __zend_lineno=392) at /root/compile/php5-STABLE-200503091530/Zend/zend_variables.c:61 #5 0x081d36f8 in _zval_ptr_dtor (zval_ptr=0x82fdda0, __zend_filename=0x8255940 "/root/compile/php5-STABLE-200503091530/Zend/zend_variables.c", __zend_lineno=193) at /root/compile/php5-STABLE-200503091530/Zend/zend_execute_API.c:392 #6 0x081dee88 in _zval_ptr_dtor_wrapper (zval_ptr=0x82fdda0) at /root/compile/php5-STABLE-200503091530/Zend/zend_variables.c:193 #7 0x081e8f13 in zend_hash_apply_deleter (ht=0x82761d0, p=0x82fdd94) at /root/compile/php5-STABLE-200503091530/Zend/zend_hash.c:574 #8 0x081e9164 in zend_hash_graceful_reverse_destroy (ht=0x82761d0) at /root/compile/php5-STABLE-200503091530/Zend/zend_hash.c:640 #9 0x081d302f in shutdown_executor () at /root/compile/php5-STABLE-200503091530/Zend/zend_execute_API.c:208 #10 0x081e0264 in zend_deactivate () at /root/compile/php5-STABLE-200503091530/Zend/zend.c:817 #11 0x081996e1 in php_request_shutdown (dummy=0x0) at /root/compile/php5-STABLE-200503091530/main/main.c:1214 #12 0x082155d0 in main (argc=2, argv=0xb844) at /root/compile/php5-STABLE-200503091530/sapi/cli/php_cli.c:1046 The script will be fully executed but php segfaults on shutdown. The behavior in the complex test case (with the WebDAV stream wrapper) was the same: Using instaneof instead of is_a caused the script to be fully executed but with a segfault on shutdown. To answer your second question I modified the test case above: Running this script with error_reporting set to E_ALL (or even E_ALL & ~E_NOTICE & ~E_STRICT) will lead to the behaviour already mentioned (deprecation warning thrown as exception). Running the script with error_reporting = 0 will terminate the script with exit code 0377 and without outputting 'Done'. Using gdb I figured out that php_error_cb is still called with the deprecation warning and zend_throw_exception will abort the script. We have two issues here: 1. A wrong free causing a segfault on shutdown 2. PHP notices and warnings thrown as exception I dont't know what to do with the segfault (my knowledge about PHP's internals is too limited to debug this yet). IMHO the second problem could be solved in 2 ways: 1. Modifying php_error_cb's behavior (as my patch does) 2. Do not set error_mode to EH_THROW in spl_directory.c if a user space stream wrapper is used. [2005-03-09 14:40:34] [EMAIL PROTECTED] Did i get that correct that all works frin when you use instanceof ? If so all is fine. Also what happens if you stick with is_a but set error mode to 0? [2005-03-07 11:25:40] jr at terragate dot net I tested the instanceof segfault against the 5.1 branch and it segfaults too. But I had to change a is_a in HTTP/Request.php to instanceof because the 'notice exception' was thrown there this time. I wasn't able to reproduce the segfault with a smaller test case by using HTTP/Request.php myself (PEAR's WebDAV Wrapper) nor using instanceof inside a small stream wrapper. Initially I tested the bug with 5.0.3 but tried a snap a few hours later. Sorry for not updating the version field. [2005-03-06 16:21:35] [EMAIL PROTECTED] Please don't open more reports about same iss
#32279 [Opn]: _SESSION treated as super global without session_start()
ID: 32279 Updated by: [EMAIL PROTECTED] Reported By: pguilbault at iweb dot ca Status: Open Bug Type:Session related PHP Version: 5.0.3 New Comment: The way ZE is designed, this behavior is pretty darned unlikely to change anytime before PHP7. HOWEVER: I would qualify it as an "undocumented feature", as such it is subject to removal without notice. So use at your own risk. Plus, as sniper said, if your PHP was compiled with --disable-session then $_SESSION will be unavailable anyway. To ensure maximum compatability you're best off use $GLOBALS['somevar']['index'] = 'foo'; or global $somevar; $somevar['index'] = 'foo'; Previous Comments: [2005-03-12 19:23:30] [EMAIL PROTECTED] Well, personally I don't think it's a bug. Other autoglobals are registered in the same time too (i.e. at module init time). [2005-03-12 14:43:42] [EMAIL PROTECTED] Yes, it's definately a bug. And I wouldn't suggest using $_SESSION like that as we might a) fix this bug b) this won't work if session extension is not enabled.. [2005-03-11 15:54:38] pguilbault at iweb dot ca Description: Without using session_start() and setting $_SESSION['test']='hi there'; in a class and echoing thise $_SESSION['test'] outside the class with echo the 'hi there'... I was told it was a bug... Althougth I am hoping it is NOT a bug and that I will be able to use that super global for my Session Management class. So I can use $_SESSION['test'] in my classes instead of $GLOBAS['session_vars']['test']. which is way too long for my test. Reproduce code: --- class tester() { function __construct() { $_SESSION['test'] = 'hi there'; } } $test = new tester(); echo $_SESSION['test']; Expected result: hi there -- Edit this bug report at http://bugs.php.net/?id=32279&edit=1
#31294 [Fbk->NoF]: Wrong charset
ID: 31294 Updated by: php-bugs@lists.php.net Reported By: megabrain at fight-club dot ru -Status: Feedback +Status: No Feedback Bug Type: MySQL related Operating System: Windows 2003 PHP Version: 5.0.3 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: [2005-02-28 21:13:42] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2004-12-28 11:01:21] megabrain at fight-club dot ru example: php 5.0.2 $result=mysql_query("select ru_name from mtable"); $runame=mysql_result($result,0,"ru_name"); print $runame; output: òåñò php 5.0.3 $result=mysql_query("select ru_name from mtable"); $runame=mysql_result($result,0,"ru_name"); print $runame; output: database is UTF8 [2004-12-26 01:00:02] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2004-12-25 14:48:23] megabrain at fight-club dot ru Description: I dont know wy it happens.. Trivia: MySQL 4.1.8 Base with CP1251 support PHP 5.0.3 Loaded mysql (not mysqli) extensions.. Any queries to base returns "?" where russian chars in base.. version 5.0.2 dont have this problems But under Apache2 with php loaded as module no problems too.. -- Edit this bug report at http://bugs.php.net/?id=31294&edit=1
#32287 [Fbk->Opn]: Segmentation fault in simple PHP script
ID: 32287 User updated by: john at swartzentruber dot us Reported By: john at swartzentruber dot us -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Fedora Core3 PHP Version: 5CVS-2005-03-12 (dev) New Comment: I'm not sure what is being asked for that wasn't provided. The problem seems to be specific to mysqli, so needs to use the database. The database in this case is the standard example world database used in the PHP mysqli examples. As the comment indicates, the include is only to set $rootpass. If you want to just code your root password directly instead of including that file, that will work. Previous Comments: [2005-03-12 23:53:10] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. [2005-03-12 22:51:21] john at swartzentruber dot us Description: When I run the example script using my browser, there is a segmentation fault on the call to $result->fetch_array(MYSQLI_ASSOC) on line 16. When I run it from the command line, the script appears to work. The segmentation fault only occurs when fetching the associative array. Using MYSQLI_NUM works, but MYSQLI_BOTH also crashes. Reproduce code: --- host_info); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $query = "SELECT Name, CountryCode FROM City ORDER by ID LIMIT 3"; $result = $mysqli->query($query); /* numeric array */ $row = $result->fetch_array(MYSQLI_NUM); printf ("%s (%s)\n", $row[0], $row[1]); /* associative array */ $row = $result->fetch_array(MYSQLI_ASSOC); printf ("%s (%s)\n", $row["Name"], $row["CountryCode"]); $result->close(); $mysqli->close(); ?> Expected result: Kabul (AFG) Qandahar (AFG) Actual result: -- #0 0x0018d96b in strlen () from /lib/tls/libc.so.6 #1 0x0231cc70 in php_mysqli_fetch_into_hash (ht=1, return_value=0x9ed2454, this_ptr=0x9ed16fc, return_value_used=1, override_flags=0, into_object=0) at /usr/local/src/php5-STABLE-200503121930/ext/mysqli/mysqli.c:663 #2 0x02326b79 in zif_mysqli_fetch_array (ht=1, return_value=0x9ed2454, this_ptr=0x9ed16fc, return_value_used=1) at /usr/local/src/php5-STABLE-200503121930/ext/mysqli/mysqli_nonapi.c:193 #3 0x024c3f31 in zend_do_fcall_common_helper (execute_data=0xbfee64d0, opline=0x9ed61b8, op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:2727 #4 0x024c4645 in zend_do_fcall_by_name_handler (execute_data=0xbfee64d0, opline=0x9ed61b8, op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:2841 #5 0x024bf0ee in execute (op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:1406 #6 0x0249b364 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php5-STABLE-200503121930/Zend/zend.c:1068 #7 0x0245c516 in php_execute_script (primary_file=0xbfee8830) at /usr/local/src/php5-STABLE-200503121930/main/main.c:1630 #8 0x024c9b29 in php_handler (r=0x9ebf8d8) at /usr/local/src/php5-STABLE-200503121930/sapi/apache2handler/sapi_apache2.c:555 #9 0x007bf9f7 in ap_run_handler () from /usr/sbin/httpd #10 0x09b83888 in ?? () #11 0x007bf9ce in ap_run_handler () from /usr/sbin/httpd #12 0x09ebf8d8 in ?? () #13 0x09ebf8d8 in ?? () #14 0xbfee89a8 in ?? () #15 0x007bfe63 in ap_invoke_handler () from /usr/sbin/httpd Previous frame inner to this frame (corrupt stack?) -- Edit this bug report at http://bugs.php.net/?id=32287&edit=1
#32287 [Opn]: Segmentation fault in simple PHP script
ID: 32287 User updated by: john at swartzentruber dot us Reported By: john at swartzentruber dot us Status: Open Bug Type: Reproducible crash Operating System: Fedora Core3 PHP Version: 5CVS-2005-03-12 (dev) New Comment: I'm an experienced C++ programmer, but unfortunately not a GNU debugger user. So I went way back to my really early days and put a few printf calls at the problem area. Here is my output: field_len = 0x88bf358, *field_len = 5, fields=0x4f9c285, mysql_num_fields(result) = 2 field_len = 0x88bf358, *field_len = 8, fields=0x88c3a30, mysql_num_fields(result) = 2 fields[0].name = 0x88c3a78 fields[0].name = Name fields[0].org_name = 0x88c3a70 fields[0].org_name = City fields[0].table = (nil) fields[0].org_table = 0xfe Segmentation fault This segmentation fault is in one of my printfs. The interesting thing is that org_name has a value that *should* be the value for table. And org_table is bogus, causing this segfault. It looks like something is not using the most recent mysql.h file and there is a structure mismatch. I went back and looked at my phpinfo(). It says that the mysqli client API version is 3.23.58. I'm running version 4.1.10a of MySQL, so that doesn't look right. That might be the cause of the problem. My big question now is why is it using that version (if that is the case)? Where does that come from? I hope something here helps. Previous Comments: [2005-03-13 01:47:03] john at swartzentruber dot us I'm not sure what is being asked for that wasn't provided. The problem seems to be specific to mysqli, so needs to use the database. The database in this case is the standard example world database used in the PHP mysqli examples. As the comment indicates, the include is only to set $rootpass. If you want to just code your root password directly instead of including that file, that will work. [2005-03-12 23:53:10] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. [2005-03-12 22:51:21] john at swartzentruber dot us Description: When I run the example script using my browser, there is a segmentation fault on the call to $result->fetch_array(MYSQLI_ASSOC) on line 16. When I run it from the command line, the script appears to work. The segmentation fault only occurs when fetching the associative array. Using MYSQLI_NUM works, but MYSQLI_BOTH also crashes. Reproduce code: --- host_info); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $query = "SELECT Name, CountryCode FROM City ORDER by ID LIMIT 3"; $result = $mysqli->query($query); /* numeric array */ $row = $result->fetch_array(MYSQLI_NUM); printf ("%s (%s)\n", $row[0], $row[1]); /* associative array */ $row = $result->fetch_array(MYSQLI_ASSOC); printf ("%s (%s)\n", $row["Name"], $row["CountryCode"]); $result->close(); $mysqli->close(); ?> Expected result: Kabul (AFG) Qandahar (AFG) Actual result: -- #0 0x0018d96b in strlen () from /lib/tls/libc.so.6 #1 0x0231cc70 in php_mysqli_fetch_into_hash (ht=1, return_value=0x9ed2454, this_ptr=0x9ed16fc, return_value_used=1, override_flags=0, into_object=0) at /usr/local/src/php5-STABLE-200503121930/ext/mysqli/mysqli.c:663 #2 0x02326b79 in zif_mysqli_fetch_array (ht=1, return_value=0x9ed2454, this_ptr=0x9ed16fc, return_value_used=1) at /usr/local/src/php5-STABLE-200503121930/ext/mysqli/mysqli_nonapi.c:193 #3 0x024c3f31 in zend_do_fcall_common_helper (execute_data=0xbfee64d0, opline=0x9ed61b8, op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:2727 #4 0x024c4645 in zend_do_fcall_by_name_handler (execute_data=0xbfee64d0, opline=0x9ed61b8, op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:2841 #5 0x024bf0ee in execute (op_array=0x9e78dd4) at /usr/local/src/php5-STABLE-200503121930/Zend/zend_execute.c:1406 #6 0x0249b364 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php5-STABLE-200503121930/Zend/zend.c:1068 #7 0x0245c516 in php_execute_script (primary_file=0xbfee8830) at /usr/local/src/php5-STABLE-200503121930/main/main.c:1630 #8 0x024c9b29 in php_handler (r=0x9ebf8d8) at /usr/local/src/php5-STABLE-200503121930/sapi/apache2handler/sapi_apache2.c:555 #9 0x007bf9f7 in
#32288 [NEW]: fopen(ftp://...) request file SIZE
From: romaneos at gmail dot com Operating system: Win 2000 PHP version: 4.3.8 PHP Bug Type: Feature/Change Request Bug description: fopen(ftp://...) request file SIZE Description: When I using fopen(ftp://...) my FTP-server show that this function request file size: 5:09:18 - anonymous 172.31.8.72 > SIZE /Pictures/image.jpg 5:09:18 - anonymous 172.31.8.72 > 213 122387 but as I know fstat() could'n return FileSize for FTP Reproduce code: --- $fp = fopen("ftp://".$ftp_server_user.":".urlencode($ftp_server_pass)."@".$ftp_server_name.":".$ftp_port.$dir_id."/".$file_id, "r"); Expected result: I'd like that fstat() return FileSize at least, for FTP Your Bunny Wrote :)) (don't pay attention to this text) -- Edit bug report at http://bugs.php.net/?id=32288&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32288&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32288&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32288&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32288&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32288&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32288&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32288&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32288&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32288&r=support Expected behavior: http://bugs.php.net/fix.php?id=32288&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32288&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32288&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32288&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32288&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32288&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32288&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32288&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32288&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32288&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32288&r=mysqlcfg