#7056 [Com]: Setting string variables to value starting with '<' cause string to be empty.
ID: 7056 Comment by: davidgjenkins at ntlworld dot com Reported By: tammy at synchronis dot com Status: Closed Bug Type: *General Issues Operating System: redhat linux 5.2 PHP Version: 4.0.2 New Comment: The previous comment is extremely condesending and does not help. I am trying to produce the string '"Any Person <[EMAIL PROTECTED]>" to put in an email with a long circulation list using Sendmail. The string has to be created from two database entries - Any Person and [EMAIL PROTECTED] If I combine the strings within the database and export it PHP truncates it at '<' giving the result '"Any Person ' as the email address. I see '<' has a special function in HEREDOC string usuage but ? Previous Comments: [2003-10-27 01:51:14] davidgjenkins at ntlworld dot com The previous comment is extremely condesending and does not help. I am trying to produce the string '"Any Person <[EMAIL PROTECTED]>" to put in an email with a long circulation list using Sendmail. The string has to be created from two database entries - Any Person and [EMAIL PROTECTED] If I combine the strings within the database and export it PHP truncates it at '<' giving the result '"Any Person ' as the email address. I see '<' has a special function in HEREDOC string usuage but ? [2000-10-10 08:36:18] [EMAIL PROTECTED] You probably are looking on it from a browser. browser shows HTMl, i.e. it won't show a < because it thinks it's an HTML tag. [2000-10-06 12:34:20] tammy at synchronis dot com Setting a variable in any of the following ways and then printing it will show no value for the variable. Note that the string can start with any whitespace as well - e.g. ' <' will not work either. And setting to for example ' < blah' will still not work but setting to ' x < blah' will print 'x'. Is this expected behavior?! How do I set a string that includes the '<' character? Also, I thought strings quoted with single quotes were not parsed ? $fonts = array('heading' => 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="3">', 'column' => 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="2">'); $fonts['heading'] = '<' . 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="3">'; $fonts['column'] = "\"; $foo = ''; echo "foo: $foo "; dumpList('fonts', $fonts); // this just prints the list. -- Edit this bug report at http://bugs.php.net/?id=7056&edit=1
#7056 [Com]: Setting string variables to value starting with '<' cause string to be empty.
ID: 7056 Comment by: davidgjenkins at ntlworld dot com Reported By: tammy at synchronis dot com Status: Closed Bug Type: *General Issues Operating System: redhat linux 5.2 PHP Version: 4.0.2 New Comment: The previous comment is extremely condesending and does not help. I am trying to produce the string '"Any Person <[EMAIL PROTECTED]>" to put in an email with a long circulation list using Sendmail. The string has to be created from two database entries - Any Person and [EMAIL PROTECTED] If I combine the strings within the database and export it PHP truncates it at '<' giving the result '"Any Person ' as the email address. I see '<' has a special function in HEREDOC string usuage but ? Previous Comments: [2000-10-10 08:36:18] [EMAIL PROTECTED] You probably are looking on it from a browser. browser shows HTMl, i.e. it won't show a < because it thinks it's an HTML tag. [2000-10-06 12:34:20] tammy at synchronis dot com Setting a variable in any of the following ways and then printing it will show no value for the variable. Note that the string can start with any whitespace as well - e.g. ' <' will not work either. And setting to for example ' < blah' will still not work but setting to ' x < blah' will print 'x'. Is this expected behavior?! How do I set a string that includes the '<' character? Also, I thought strings quoted with single quotes were not parsed ? $fonts = array('heading' => 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="3">', 'column' => 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="2">'); $fonts['heading'] = '<' . 'FONT FACE="ARIAL,HELVETICA,SANS-SERIF" SIZE="3">'; $fonts['column'] = "\"; $foo = ''; echo "foo: $foo "; dumpList('fonts', $fonts); // this just prints the list. -- Edit this bug report at http://bugs.php.net/?id=7056&edit=1
#25976 [Opn]: $array[] = $otherarray does not work as expected
ID: 25976 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Arrays related Operating System: unknown PHP Version: 5CVS-2003-10-24 (dev) New Comment: Please, provide more info about your config and OS. What version of apache do you use? Have you try this examples with PHP-CLI ? Previous Comments: [2003-10-24 14:55:07] [EMAIL PROTECTED] I've updated my PHP version from CVS and rebuild, but same problem. See http://kai.cowiki.org/tests/test.array.php and http://kai.cowiki.org/tests/test.array2.php. [2003-10-24 11:34:16] tony2001 at phpclub dot net Try to update your PHP from CVS, to run ./cvsclean and to build it once more. I can't reproduce this with latest CVS. [2003-10-24 09:46:10] [EMAIL PROTECTED] Description: See expected and actual result to find out the difference. With CGI build from same source both examples work as expected. Reproduce code: --- example 1: '; var_dump($aTestOuter); echo ''; ?> example 2: '; var_dump($aTestOuter); echo ''; ?> Expected result: example 1: array(3) { [0]=> array(2) { ["foo"]=> string(29) "content of $aTestInner['foo']" ["bar"]=> string(29) "content of $aTestInner['bar']" } [1]=> array(2) { ["foo"]=> string(29) "content of $aTestInner['foo']" ["bar"]=> string(29) "content of $aTestInner['bar']" } [2]=> array(2) { ["foo"]=> string(29) "content of $aTestInner['foo']" ["bar"]=> string(29) "content of $aTestInner['bar']" } } example 2: array(3) { [0]=> array(2) { ["foo"]=> string(32) "0: content of $aTestInner['foo']" ["bar"]=> string(32) "0: content of $aTestInner['bar']" } [1]=> array(2) { ["foo"]=> string(32) "1: content of $aTestInner['foo']" ["bar"]=> string(32) "1: content of $aTestInner['bar']" } [2]=> array(2) { ["foo"]=> string(32) "2: content of $aTestInner['foo']" ["bar"]=> string(32) "2: content of $aTestInner['bar']" } } Actual result: -- example 1: array(3) { [0]=> array(0) { } [1]=> array(2) { ["foo"]=> string(29) "content of $aTestInner['foo']" ["bar"]=> string(29) "content of $aTestInner['bar']" } [2]=> array(2) { ["foo"]=> string(29) "content of $aTestInner['foo']" ["bar"]=> string(29) "content of $aTestInner['bar']" } } example 2: array(3) { [0]=> array(0) { } [1]=> array(0) { } [2]=> array(0) { } } -- Edit this bug report at http://bugs.php.net/?id=25976&edit=1
#25997 [NEW]: Embedded null characters in strings breaks documented behavior of functions.
From: xodfull at starmen dot net Operating system: Linux, Apache. PHP version: 4.3.3 PHP Bug Type: *General Issues Bug description: Embedded null characters in strings breaks documented behavior of functions. Description: ip2long() is supposed to return -1 on an invalid ip address. Because of PHP's method of storing strings, and a careless calling of standard C library functions that use null-terminated strings, it will not return -1 on invalid ip addresses that contain embedded null characters in appropriate places. " The function ip2long() generates an IPv4 Internet network address from its Internet standard format (dotted string) representation. If ip_address is invalid than -1 is returned. Note that -1 does not evaluate as FALSE in PHP." Reproduce code: --- if(ip2long($_GET[ip]) != -1) echo($_GET[ip]); http://something.net/somescript.php?ip=127.0.0.1%00foo Expected result: Arbitrary HTML insertion. Worse effects may be possible depending on the application. -- Edit bug report at http://bugs.php.net/?id=25997&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25997&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25997&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25997&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25997&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25997&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25997&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25997&r=support Expected behavior: http://bugs.php.net/fix.php?id=25997&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25997&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25997&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25997&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25997&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25997&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25997&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25997&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25997&r=float
#25962 [Fbk->Opn]: php connect informix database caused memory leak
ID: 25962 User updated by: liu-shan at mediaring dot com Reported By: liu-shan at mediaring dot com -Status: Feedback +Status: Open Bug Type: Informix related Operating System: sun PHP Version: 4.3.2 New Comment: Hi, below is a sample, just for your reference. I created a class call c_informix to fulfill connect to informix db and insert data to it. I write a php program to call this class to insert 500,000 records into to test table, the program would auto died during process. If you use some tools such as "top" to monitor this php program, your could see the value of memory increased very fast. As normal, after insert one record, the memory should release, but real thing is the memory not release properly, once you continuous to insert a large records, the momory goes to large value, system will auto kill this process. // c_informix.php === close(); break; } } exit; function TestInsert($ifmx, $acc, $dbg) { $result = true; $Liststmt = "insert into ls_test (lt_acct, lt_requester, lt_reasoncode)"; $Liststmt .= " values ('${acc}', 'm', 7000);"; $ret = $ifmx->insert($Liststmt); if (!$ret) { $fstr = "Error - " . $ifmx->errno() . ", " . $ifmx->error() . " - " . $Liststmt . " - test_db.php"; WriteToLog($dbg, "daemon", "daemon", $fstr); $result = false; echo("error = " . $fstr . "\n\n"); } return $result; } ?> // c_informix.php === class c_informix { // public: current error number and error text var $ErrNo= ""; var $Error= ""; // private: connection parameters var $Server= ""; var $Password= ""; var $User= ""; var $Conn= ""; function c_informix ($dbserver = "", $dbuser = "" , $dbpassword = "") { $this->Server= $dbserver; $this->User= $dbuser; $this->Password= $dbpassword; if (!empty($this->Server) && !empty($this->User) && !empty($this->Password)) { $this->connect(); } } function connect() { $numtries = 50; $this->Conn = @ifx_connect($this->Server, $this->User, $this->Password); while (!$this->Conn && $numtries) { usleep(20); $this->Conn = @ifx_connect($this->Server, $this->User, $this->Password); $numtries--; } if (!$this->Conn) { $this->set_error(); return false; } return true; } function insert ($sql="") { $results = false; if (empty($sql)) { $this->set_error("DB0002", "Empty command(s)"); } else if (!eregi("^insert",$sql)) { $this->set_error("DB0010", "Syntax Error--".$sql."--"); } else if (empty($this->Conn)) { $this->set_error("DB0001", "Connection not established"); } else { $results = @ifx_query($sql,$this->Conn); if ($results) { $results = @ifx_affected_rows($results); } else { $results = false; $this->set_error(); } } return $results; } function set_error($errcode = "", $error = "") { if(!empty($errcode) && !empty($error)) { $this->Error = $error; $this->ErrNo = $errcode; } else { $this->Error = @ifx_errormsg(); $this->ErrNo = strtok(strstr(ifx_error(), "-"), "]"); } return true; } // public: returns the last error number function errno() { return $this->ErrNo; } // public: returns the last error message function error() { return $this->Error; } function close() { @ifx_close($this->Conn); } } Previous Comments: [2003-10-23 22:48:26] [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 mo
#25990 [Opn->Bgs]: ob_get_clean () does not execute a callback function registered in ob_start ()
ID: 25990 Updated by: [EMAIL PROTECTED] Reported By: MDonatas at centras dot lt -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows XP PHP Version: 4.3.3 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. See #25988 Previous Comments: [2003-10-26 04:15:16] MDonatas at centras dot lt Description: in manaul it says [QUOTE] ob_get_clean() essentially executes both ob_get_contents() and ob_end_clean(). [/QUOTE] ob_end_clean() alone does call a registered callback function. Expected result: callback function registered in ob_start () to get called by ob_get_clean () Actual result: -- It does not -- Edit this bug report at http://bugs.php.net/?id=25990&edit=1
#25988 [Opn->Bgs]: ob_start (); can't register CLASS method as a callback function
ID: 25988 Updated by: [EMAIL PROTECTED] Reported By: MDonatas at centras dot lt -Status: Open +Status: Bogus Bug Type: Output Control -Operating System: Windows XP +Operating System: * -PHP Version: 4.3.3 +PHP Version: * New Comment: Reread the docs. Callbacks with methods are done with arrays. array(class,method) for static methods and array(object,method) for non static ones. Previous Comments: [2003-10-26 03:32:12] MDonatas at centras dot lt Description: ob_start (); can't register CLASS method as a callback function. Reproduce code: --- callback"); //or simply "callback" echo 'Some output.'; echo ob_get_clean (); } function callback ($info) //this function isn't called { return $info.' stuff'; } } $tmp = new test; ?> Expected result: callbackfunction (class method) to be called; Actual result: -- It's not called :/ -- Edit this bug report at http://bugs.php.net/?id=25988&edit=1
#25996 [NEW]: Assignment by reference suppress index error
From: hongnk at hotmail dot com Operating system: All PHP version: Irrelevant PHP Bug Type: Scripting Engine problem Bug description: Assignment by reference suppress index error Description: Accessing array with uninitialized index will normally trigger error: $a=array(); $b=$a['unknown']; => undefined index error but if I assign by reference: $b=&$a['unknown']; then PHP no longer throw error. (The same goes for assigning undefined property to an object.) This makes it difficult to debug scripts. -- Edit bug report at http://bugs.php.net/?id=25996&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25996&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25996&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25996&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25996&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25996&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25996&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25996&r=support Expected behavior: http://bugs.php.net/fix.php?id=25996&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25996&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25996&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25996&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25996&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25996&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25996&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25996&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25996&r=float
#23220 [NoF->Asn]: fgets() causes warning while reading data via SSL channel (HTTPS)
ID: 23220 Updated by: [EMAIL PROTECTED] Reported By: storozhilov at mail dot ru -Status: No Feedback +Status: Assigned Bug Type: Filesystem function related Operating System: FreeBSD 4.8 PHP Version: 4-STABLE-200307070330 Assigned To: wez New Comment: Re-opening at user request. Users comments that have mysteriously vanished are: === See the code below to verify , I'm not able to alter php versions since it's hosted with my ISP so please test it with the latest version so it can be closed as being fixed or further investigation needed. output: PHP Warning: fgets(): SSL: fatal protocol error in /path.to/test_ssl.php on line 18 Please put the bug to 'open'. Previous Comments: [2003-10-14 20:32:14] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2003-10-08 07:30:39] [EMAIL PROTECTED] Could you try the next stable snapshot (due in a few minutes)? I comitted a fix for a different bug that might make a difference to this one. If it hasn't fixed it, could you post an https:// URL that reproduces the problem, so that I can investigate further? [2003-08-21 20:18:33] scottm at spamcop dot net I've not verified this patch will work and I'll hopefully test it tomorrow. I believe it is reaching the end of the file and nr_bytes is returning 0 and this is being caught by an if statement which should be looking for -1. --- network.c Thu Aug 21 21:06:43 2003 +++ network.c.patched Thu Aug 21 21:13:09 2003 @@ -1011,13 +1011,14 @@ do { nr_bytes = SSL_read(sock->ssl_handle, buf, count); - if (nr_bytes <= 0) { + if (nr_bytes < 0) { retry = handle_ssl_error(stream, nr_bytes TSRMLS_CC); if (retry == 0 && !SSL_pending(sock->ssl_handle)) { stream->eof = 1; } } else { - /* we got the data */ + /* we got the data */ + stream->eof = 1; break; } } while (retry); [2003-04-15 01:52:09] storozhilov at mail dot ru After executing of this script following message appears: Warning: fgets() [function.fgets]: SSL: fatal protocol error in /blah/blah/blah/blah.php on line NN PHP was configured with following arguments: #!/bin/sh ./configure --with-apache=../apache_1.3.27rusPL30.17 --with-mod_charset --with-pgsql=/usr/local/pgsql --with-mhash --with-sybase=/usr/local --with-openssl -- Edit this bug report at http://bugs.php.net/?id=23220&edit=1
#25831 [Ver]: overload/__call breaks method Pass by reference
ID: 25831 Updated by: [EMAIL PROTECTED] Reported By: viking at dslnorthwest dot net Status: Verified Bug Type: Scripting Engine problem Operating System: all PHP Version: 4.3.4RC2-dev New Comment: Ignore the last patch - doesnt help.. Previous Comments: [2003-10-25 00:09:31] [EMAIL PROTECTED] OK this seems to be working without segfaults.. Index: overload.c === RCS file: /repository/php-src/ext/overload/Attic/overload.c,v retrieving revision 1.20.2.3 diff -u -r1.20.2.3 overload.c --- overload.c 15 Apr 2003 04:14:21 - 1.20.2.3 +++ overload.c 25 Oct 2003 04:08:34 - @@ -507,7 +507,7 @@ static void overload_call_method(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference) { zval ***args; - zval *retval = NULL; + int call_result; zend_bool use_call_handler = 1; zval *object = property_reference->object; @@ -526,13 +526,15 @@ args = (zval ***)emalloc(ZEND_NUM_ARGS() * sizeof(zval **)); - if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) == FAILURE) { - efree(args); - php_error(E_WARNING, "unable to obtain arguments"); - return; - } if (use_call_handler) { + zval *retval = NULL; + + if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) == FAILURE) { + efree(args); + php_error(E_WARNING, "unable to obtain arguments"); + return; + } zval **handler_args[3]; zval *arg_array; zval result, *result_ptr = &result; @@ -588,23 +590,29 @@ } zval_ptr_dtor(&retval); } else { + zval retval; + if (zend_get_parameters_array(ht, ZEND_NUM_ARGS(), (zval **)args) == FAILURE) { + efree(args); + php_error(E_WARNING, "unable to obtain arguments"); + return; + } + ZVAL_STRINGL(&call_handler, Z_STRVAL(method->element), Z_STRLEN(method->element), 0); - call_result = call_user_function_ex(NULL, + call_result = call_user_function(NULL, &object, &call_handler, - &retval, - ZEND_NUM_ARGS(), args, - 0, NULL TSRMLS_CC); + return_value, + ZEND_NUM_ARGS(),(zval **)args TSRMLS_CC); - if (call_result == FAILURE || !retval) { + if (call_result == FAILURE || !&return_value) { efree(args); php_error(E_WARNING, "unable to call %s::%s() method", Z_OBJCE_P(object)->name, Z_STRVAL(method->element)); return; } - *return_value = *retval; + zIndex: overload.c === RCS file: /repository/php-src/ext/overload/Attic/overload.c,v retrieving revision 1.20.2.3 diff -u -r1.20.2.3 overload.c --- overload.c 15 Apr 2003 04:14:21 - 1.20.2.3 +++ overload.c 25 Oct 2003 04:08:34 - @@ -507,7 +507,7 @@ static void overload_call_method(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference) { zval ***args; - zval *retval = NULL; + int call_result; zend_bool use_call_handler = 1; zval *object = property_reference->object; @@ -526,13 +526,15 @@ args = (zval ***)emalloc(ZEND_NUM_ARGS() * sizeof(zval **)); - if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) == FAILURE) { - efree(args); - php_error(E_WARNING, "unable to obtain arguments"); - return; - } if (use_call_handler) { + zval *retval = NULL; + + if (zend_get_parameters_array_ex(ZEND_NUM_ARGS(), args) == FAILURE) { + efree(args); + php_error(E_WARNING, "unable to obtain arguments"); + return; + } zval **handler_args[3]; zval *arg_array; zval result, *resu
#25993 [Opn->Bgs]: Lack of functions functionality
ID: 25993 Updated by: [EMAIL PROTECTED] Reported By: ausvald at tut dot by -Status: Open +Status: Bogus Bug Type: Zend Engine 2 problem -Operating System: irrelevant +Operating System: * -PHP Version: 4.3.3 +PHP Version: * New Comment: We don't have $var=>$var, use $var->var. Besides that noone reading your code will know what you want. For example what is 'test1()();' supposed to do in your oppinion? Previous Comments: [2003-10-26 10:28:13] ausvald at tut dot by Description: $var); } echo test2('test')['test']; ?> Why these things are not implemented in PHP5? And when are they going to be? Reproduce code: --- $var); } echo test2('test')['test']; ?> Why these things are not implemented in PHP5? And when are they going to be? Expected result: $var); } echo test2('test')['test']; ?> Why these things are not implemented in PHP5? And when are they going to be? Actual result: -- Error -- Edit this bug report at http://bugs.php.net/?id=25993&edit=1
#25993 [NEW]: Lack of functions functionality
From: ausvald at tut dot by Operating system: irrelevant PHP version: 4.3.3 PHP Bug Type: Zend Engine 2 problem Bug description: Lack of functions functionality Description: $var); } echo test2('test')['test']; ?> Why these things are not implemented in PHP5? And when are they going to be? Reproduce code: --- $var); } echo test2('test')['test']; ?> Why these things are not implemented in PHP5? And when are they going to be? Expected result: $var); } echo test2('test')['test']; ?> Why these things are not implemented in PHP5? And when are they going to be? Actual result: -- Error -- Edit bug report at http://bugs.php.net/?id=25993&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25993&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25993&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25993&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25993&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25993&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25993&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25993&r=support Expected behavior: http://bugs.php.net/fix.php?id=25993&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25993&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25993&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25993&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25993&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25993&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25993&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25993&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25993&r=float
#25994 [NEW]: Won't compile
From: john at petbrain dot com Operating system: Mac OS X 10.3 PHP version: 4.3.3 PHP Bug Type: Dynamic loading Bug description: Won't compile Description: I downloaded: Apache 1.3.28 php 4.3.3, 4.2.2, 5.x beta Apache: ./configure --prefix=/www --enable-module=so make;make install PHP: ./configure --with-apxs=/www/sbin/apxs --with-mysql make This is where the module dies. I did the SIMPLIEST install that one can do with a DSO module. I tried to compile INTO apache, and had the same problem. I did a ./configure --help | grep "dns" and there seems to be NO DNS aspect to turn off. not like I WOULD want to do it, but this is the best I can do. Help. I have looked on the internet placing the bottom code into the google.com search field, and notice that OTHER people are having the same problems. Temp solution that I've trying to find out if it works, is to compile the source on my OTHER laptop running 10.2.8 and copy the binary try over and run it on my 10.3 laptop. Otherwise I'm in a bit of a jam. There are NO possible solutions for this release. :( - john Reproduce code: --- gcc -Iext/standard/ -I/opt/apache/php-4.3.3/ext/standard/ -DPHP_ATOM_INC -I/opt/apache/php-4.3.3/include -I/opt/apache/php-4.3.3/main -I/opt/apache/php-4.3.3 -I/opt/apache/php-4.3.3/Zend -I/opt/apache/php-4.3.3/ext/xml/expat -no-cpp-precomp -no-cpp-precomp -I/opt/apache/php-4.3.3/TSRM -g -O2 -c /opt/apache/php-4.3.3/ext/standard/dns.c -o ext/standard/dns.o && echo > ext/standard/dns.lo /opt/apache/php-4.3.3/ext/standard/dns.c: In function `zif_checkdnsrr': /opt/apache/php-4.3.3/ext/standard/dns.c:228: error: `T_MX' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:228: error: (Each undeclared identifier is reported only once /opt/apache/php-4.3.3/ext/standard/dns.c:228: error: for each function it appears in.) /opt/apache/php-4.3.3/ext/standard/dns.c:239: error: `T_A' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:240: error: `T_NS' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:242: error: `T_PTR' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:243: error: `T_ANY' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:244: error: `T_SOA' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:245: error: `T_CNAME' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:256: error: `C_IN' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c: In function `zif_getmxrr': /opt/apache/php-4.3.3/ext/standard/dns.c:288: error: `HEADER' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:288: error: `hp' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:317: error: `C_IN' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:317: error: `T_MX' undeclared (first use in this function) /opt/apache/php-4.3.3/ext/standard/dns.c:324: error: parse error before ')' token make: *** [ext/standard/dns.lo] Error 1 Expected result: Compile. Actual result: -- Didn't compile -- Edit bug report at http://bugs.php.net/?id=25994&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25994&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25994&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25994&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25994&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25994&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25994&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25994&r=support Expected behavior: http://bugs.php.net/fix.php?id=25994&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25994&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25994&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25994&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25994&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25994&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25994&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25994&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25994&r=float
#25753 [Com]: php_value|flag / php_admin_* settings "leak" from vhosts/.htaccess files
ID: 25753 Comment by: thorv at tiscali dot no Reported By: [EMAIL PROTECTED] Status: Critical Bug Type: Apache related Operating System: * PHP Version: 4CVS, 5CVS New Comment: One virtual server (without .htaccess) sometimes gives this warning: --- PHP Warning: head(): Failed opening 'themes/theme.php' for inclusion (include_path='/first/path:/second/path') in /header.php on line 31 --- The path for this virtual server should have been the php.ini path (include_path = ".:/usr/lib/php/"), but obviously another virtual server has 'leaked' a local path. The content of the "offending" virtual hosts .htaccess file is: php_value include_path "/first/path:/second/path" php_flag register_globals off I can sometimes (but not reliably) reproduce the error by accessing the "offending" virtual host a few times, and then access the site that gives the error message. Have had no problems prior to Apache 2.0.47 (reported bug#24120), PHP 4.3.3 on Mandrake 9.2. Previous Comments: [2003-10-24 22:46:18] clemmon at eventerra dot com I'm not sure if I am on to something or not, so I will pass this info on to those that obviously know more than me. I am getting the "open_basedir restriction in effect" in Moregroupware. It appears that the error consistantly appears at lines with the following; "require('mime_mapping.php')". These calls appear in packages horde.mime and horde.mime.viewer. The rest of Moregroupware appears to function without issue. I hope this helps and does not clutter the issue. [2003-10-22 04:01:39] mattias at segerdahl dot info Sniper, I accidently ran into this bug a few moments ago. I talked to Derick about it in the channel and we agreed I would do some testing. There are some particular strange behaviour. I will try to explain as well as include the files needed to reproduce this error. But first let me point out one thing that I find really weird. This only occurs when the apache server has not been accessed for a while, if you reload the page directly after you've encountered this error message, it will work perfectly. The error message is: Warning: Unknown(): open_basedir restriction in effect. File(/var/www/users.bitcom.se/index.php) is not within the allowed path(s): (/var/www/www.sol.se) in Unknown on line 0 Warning: Unknown(/var/www/users.bitcom.se/index.php): failed to open stream: Operation not permitted in Unknown on line 0 Warning: (null)(): Failed opening '/var/www/users.bitcom.se/index.php' for inclusion (include_path='.:/usr/local/php//lib/php') in Unknown on line 0 My php.ini file http://www.segerdahl.info/25753/php.ini My httpd.conf file http://www.segerdahl.info/25753/httpd.conf Server version: Apache/2.0.47 Server built: Oct 20 2003 18:39:21 PHP 4.3.4RC4 configured as: './configure' '--with-apxs2=/usr/local/httpd/bin/apxs' '--enable-mbstring' '--with-pear' '--with-mysql' '--enable-magic-quotes' '--with-ftp' '--sysconfdir=/etc/php' '--with-config-file-path=/etc/php' '--prefix=/usr/local/php/' '--enable-mbstring' '--with-curl' '--enable-ftp' APACHE configured as: ./configure --sysconfdir=/etc/httpd/conf --enable-ssl --prefix=/usr/local/httpd --enable-modules=dso,most Contact me on efnet if you need more information... // bad2da [2003-10-04 18:58:16] [EMAIL PROTECTED] We do not know what causes this bug or how it can be reliably reproduced. If you know exactly HOW this can be reproduced, add the information here. Any other comments will be deleted. [2003-10-04 00:48:12] [EMAIL PROTECTED] Description: If (for example) one virtualhost configuration has set "php_admin_flag register_globals off", in some situations the setting persists between requests. -> php.ini settings are NOT reset between requests. 1. php.ini has register_globals = On 2. Request is made into www.foobar.com (which has "php_admin_flag register_globals off") 3. Next request (same apache child) is made into www.barfoo.com (which does not have the setting) This applies to ALL php.ini directives. Some related reports: bug #6374 (include_path in .htaccess across multiple vhosts) bug #7174 (Round-robin -like values for include_path) bug #19292 (Random error: open_basedir restriction..) bug #21564 (corrupted paths coming to open_basedir) bug #23462 ("php_admin_value open_basedir" in httpd.conf) bug #23580 (Random values for include_path) bug #24282 (Strange Open Base Dir Restriction Errors) bug #24974 (random open_basedir errors) bug #25172 ($HTTP_HOST sometimes empty) For all who think they're experiencing this problem: DO NOT add any comments here unless you have some extra information to give which is not already given in
#14118 [Com]: Upload file more than 1 Mb doesn´t work
ID: 14118 Comment by: gregt_fletcher at yahoo dot com Reported By: mlara at gcintl dot com Status: Closed Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: I was experiencing a similar file upload limit problem with the following software stack: Redhat 8 Apache 2.0.4 PHP 4.2.2 If you are getting errors like the following in your Apache log: "Requested content-length of 2258901 is larger than the configured limit of 524288" look for an additional PHP config file, /etc/httpd/conf.d/php.conf (this was the path for me on RH 8.0) and increase the limit on the line "LimitRequestBody 524288" to what you require see http://www.squirrelmail.org/wiki/en_US/AttachmentSize Previous Comments: [2003-08-27 02:08:25] anjali at students dot iiit dot net I am also facing the upload problem. The clients access my web server directly (not thru a proxy server) so I don't have to change the squid configurations (am I right?) and I tried placing the hidden variable 'max_file_size'. Even this didn't work? I am using PHP 4.2. And this error is not browser specific and shows up in all the browsers. Is the problem with PHP? [2003-06-20 06:12:17] s_chhatre at yahoo dot com Yess... changing the setting request_body_max_size to whatever size required works fine and upload the file of whatever size required. -Shrirang S. Chhatre. [2003-03-11 13:21:26] jgomes at ulbra-to dot br Hi all, I had the same problem using multiple platforms (PHP, ASP, .NET); so I discovered that the problem is the Squid (Proxy) configuration. It has a tag (request_body_max_size) that defines the maximum size of a HTTP request body (the data area). So if you try to upload a file whose size overlaps the limit, you'll get an error generated by Squid: "The page cannot be found" or "The page coudn't be processed" and so on. Thanks. God bless! [AJ(ack)] [2002-10-01 11:08:05] jbyu at csie dot nctu dot edu dot tw I have same problem about upload large file. My platform: Win2k + Apache 2.0.42 + PHP 4.1.2 The php.ini is also correct. So what do i miss? httpd.conf? [2001-11-21 14:14:19] mlara at gcintl dot com Thanks I resolved my problem, the reason was that the squid configuration limit the request size, I changed this value and I can upload file more higher than 2 Mb . Thanks for all, I´m sorry Mauricio 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/14118 -- Edit this bug report at http://bugs.php.net/?id=14118&edit=1
#25995 [NEW]: multipart/form-date file upload problem.
From: s dot masugata at digicom dot dnp dot co dot jp Operating system: FreeBSD/Linux/Solaris(sparc) PHP version: 4.3.4RC2 PHP Bug Type: mbstring related Bug description: multipart/form-date file upload problem. Description: ./configure: --enable-zend-multibyte --enable-mbstring --enable-mbregex php.ini: output_buffering = Off output_handler = mbstring.language = Japanese mbstring.encoding_translation = On mbstring.internal_encoding= EUC-JP mbstring.http_input = pass mbstring.http_output = pass mbstring.detect_order = SJIS-win,SJIS,eucJP-win,EUC_JP,UTF-8,UTF-7,ISO-2022-JP,JIS,ASCII mbstring.substitute_character = none mbstring.func_overload= 1 mbstring.script_encoding = SJIS The value of $POST disregards the contents set up by php.ini, and is changed into an internal encoding. In this setup, it should not be changed into an internal encoding. However, it will be changed. My purpose wants to only use the function to change script encoding by zend-multibyte into an internal encoding, and the function which even input data changes into an internal encoding is not needed. The transmitted input data may be broken down by this unjust operation(for example, the special character by the specific model). I think that this operation is not specification but a bug with it being individual. It seems that it is fixed in the snapshot in the built on Oct 26, 2003 20:30 GMT, is it fixed as well as a snapshot when PHP4.3.4 is released? thank you. -- Edit bug report at http://bugs.php.net/?id=25995&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25995&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25995&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25995&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25995&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25995&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25995&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25995&r=support Expected behavior: http://bugs.php.net/fix.php?id=25995&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25995&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25995&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25995&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25995&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25995&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25995&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25995&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25995&r=float
#25987 [Bgs]: php and xml tag confusion
ID: 25987 User updated by: tkwright_233 at hotmail dot com Reported By: tkwright_233 at hotmail dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: windows 98 PHP Version: 4.3.3 New Comment: abye there could be another variable in the php.ini, space required after tag start. Previous Comments: [2003-10-26 14:18:00] tkwright_233 at hotmail dot com exactly. so the syntax engine should decide if it really is PHP or if is another tag, like XML. [2003-10-25 15:18:05] [EMAIL PROTECTED] Short tags = ' 2 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 4 5 http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> 6 ... and, yes, short tags are enabled in my verson of php. [2003-10-25 14:19:46] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Turn Off ShortTags and \'\' will end php or any other xml processing instruction. [2003-10-25 14:18:22] tkwright_233 at hotmail dot com p.s. Ive got apache 1.3.27 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/25987 -- Edit this bug report at http://bugs.php.net/?id=25987&edit=1
#25987 [Bgs]: php and xml tag confusion
ID: 25987 User updated by: tkwright_233 at hotmail dot com Reported By: tkwright_233 at hotmail dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: windows 98 PHP Version: 4.3.3 New Comment: exactly. so the syntax engine should decide if it really is PHP or if is another tag, like XML. Previous Comments: [2003-10-25 15:18:05] [EMAIL PROTECTED] Short tags = ' 2 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 4 5 http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> 6 ... and, yes, short tags are enabled in my verson of php. [2003-10-25 14:19:46] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Turn Off ShortTags and \'\' will end php or any other xml processing instruction. [2003-10-25 14:18:22] tkwright_233 at hotmail dot com p.s. Ive got apache 1.3.27 [2003-10-25 14:13:23] tkwright_233 at hotmail dot com Description: when an xml 'starting' tag is placed on an document, php confuses it with its opining and closing tag. it confuses its closing tag with xml end of the tag, and php confuses the open tag for php with the start of the tag declaring an xml document. Parse error: parse error, unexpected T_STRING in c:/apache/htdocs/xml.php on line 1 currently, the workaround is: '."\n";?> Reproduce code: --- Expected result: [no error],rest of page Actual result: -- Parse error: parse error, unexpected T_STRING in c:/apache/htdocs/xml.php on line 1 -- Edit this bug report at http://bugs.php.net/?id=25987&edit=1
#25987 [Bgs]: php and xml tag confusion
ID: 25987 Updated by: [EMAIL PROTECTED] Reported By: tkwright_233 at hotmail dot com Status: Bogus Bug Type: Scripting Engine problem Operating System: windows 98 PHP Version: 4.3.3 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php It does recognize the difference, if you disable short_tags, which you should for exactly this reason. Previous Comments: [2003-10-26 14:20:58] tkwright_233 at hotmail dot com abye there could be another variable in the php.ini, space required after tag start. [2003-10-26 14:18:00] tkwright_233 at hotmail dot com exactly. so the syntax engine should decide if it really is PHP or if is another tag, like XML. [2003-10-25 15:18:05] [EMAIL PROTECTED] Short tags = ' 2 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> 4 5 http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> 6 ... and, yes, short tags are enabled in my verson of php. [2003-10-25 14:19:46] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Turn Off ShortTags and \'\' will end php or any other xml processing instruction. 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/25987 -- Edit this bug report at http://bugs.php.net/?id=25987&edit=1
#20382 [Com]: strtotime ("Monday", $date) can produce incorrect output
ID: 20382 Comment by: Robert at steelrat dot homeip dot net Reported By: nickj-phpbugs at nickj dot org Status: Verified Bug Type: Date/time related Operating System: All PHP Version: 4.3.0-dev New Comment: I can confirm that the above problem has re-occured for me! I'm using Windows Server 2003 and latest rc of PHP. My code is simple: $today = strtotime("today GMT"); echo "Next Friday is ".date( "l, j F, Y", strtotime("first Friday", $today))."!\n"; print "PHP version: " . phpversion(). "\n"; and the result: Next Friday is Thursday, 30 October, 2003! PHP version: 4.3.4RC2 I use this function on one of my pages and I've only just seen this appear. Worked perfectly until today! Previous Comments: [2003-10-21 06:37:52] pierre dot baudracco at aliacom dot fr This bug is reappearing this week from monday 2003-10-20. Which is a week having a daylight saving transition (this week-end). [2003-04-06 18:47:03] scottmacvicar at ntlworld dot com This is a DST problem by the looks of it. The specific dates mentioned are when DST takes effect which is the last sunday in March. [2002-11-12 19:46:28] nickj-phpbugs at nickj dot org OK, I decided that was needed was some kind of automated testing, so I wrote it: #!/root/php4-200211122230 -q 7, "Monday" => 1, "Tuesday" => 2, "Wednesday" => 3, "Thursday" => 4, "Friday" => 5, "Saturday" => 6); // convert into a number $desired_day_of_week_number = $weekdays[$desired_day_of_week]; // see what day we have currently list ($year, $month, $day) = explode ("-",$date); $date_day_of_week = date("w", mktime (17,17,17,$month,$day,$year)); $new_day = $day+(($desired_day_of_week_number-$date_day_of_week)+7) % 7; return date("Y-n-j", mktime (17,17,17,$month,$new_day,$year)); } // run an automated test to compare the output of these two functions, and complain if they differ for ($i=1; $i<1000; $i++) { $date = date("Y-n-j", mktime (17,17,17,1,$i,1999)); $strtotime_date = getDateWithModifier($date, "Monday"); $other_date = getDayOfTheWeekFromDate($date, "Monday"); if ($strtotime_date != $other_date) { print "Discrepancy for $date - results were $strtotime_date vs $other_date\n"; } } print "PHP version: " . phpversion(). "\n"; ?> Here's the output that I get: [EMAIL PROTECTED] tmp]# ./automated-date-test.php Discrepancy for 1999-3-23 - results were 1999-3-28 vs 1999-3-29 Discrepancy for 1999-3-24 - results were 1999-3-28 vs 1999-3-29 Discrepancy for 1999-3-25 - results were 1999-3-28 vs 1999-3-29 Discrepancy for 1999-3-26 - results were 1999-3-28 vs 1999-3-29 Discrepancy for 1999-3-27 - results were 1999-3-28 vs 1999-3-29 Discrepancy for 1999-3-28 - results were 1999-3-28 vs 1999-3-29 Discrepancy for 2000-3-21 - results were 2000-3-26 vs 2000-3-27 Discrepancy for 2000-3-22 - results were 2000-3-26 vs 2000-3-27 Discrepancy for 2000-3-23 - results were 2000-3-26 vs 2000-3-27 Discrepancy for 2000-3-24 - results were 2000-3-26 vs 2000-3-27 Discrepancy for 2000-3-25 - results were 2000-3-26 vs 2000-3-27 Discrepancy for 2000-3-26 - results were 2000-3-26 vs 2000-3-27 Discrepancy for 2001-3-20 - results were 2001-3-25 vs 2001-3-26 Discrepancy for 2001-3-21 - results were 2001-3-25 vs 2001-3-26 Discrepancy for 2001-3-22 - results were 2001-3-25 vs 2001-3-26 Discrepancy for 2001-3-23 - results were 2001-3-25 vs 2001-3-26 Discrepancy for 2001-3-24 - results were 2001-3-25 vs 2001-3-26 Discrepancy for 2001-3-25 - results were 2001-3-25 vs 2001-3-26 PHP version: 4.3.0-dev [EMAIL PROTECTED] tmp]# In other words, the result for these 6 days of the year consistently appears to be wrong. (I suppose I should be glad that the very first date I choose to test this function with just by fluke happened to be one of those 6 days, as opposed to causing mysterious problems later!) Does anyone else get any results that appear incorrect on running this script? [2002-11-12 02:11:16] nickj-phpbugs at nickj dot org Strtotime() appears to produce incorrect output under some circumstances - specifically when wanting the date of a particular day of the week day of the week from a given starting date. For example, using 2001-3-20 as a starting point, we want the date for the next Monday. The correct answer is the 26th, but the result produced is the 25th (a Sunday). The correct result is given sometimes, so this appears to depend on the input. A sample scri
#25876 [Com]: session_start(): Failed to initialize storage module
ID: 25876 Comment by: pedro at dehumanizer dot com Reported By: golden at riscom dot com Status: Bogus Bug Type: Session related Operating System: freebsd 4.8 PHP Version: 4.3.3 New Comment: By the way, don't know if this helps: ./configure --disable-cgi --with-apxs2=/usr/local/sbin/apxs --with-openssl --with-zlib --with-gdbm --with-imap --with-iconv --enable-ftp --with-mysql=/usr/local/mysql --with-curl --disable-debug --enable-exif --enable-sockets --disable-ipv6 --with-gd --with-jpeg-dir --with-png-dir --enable-dio --with-gettext=/usr/local --with-bz2 --enable-mbstring --enable-mbregex --enable-zend-multibyte --with-mysql-sock=/tmp/mysql.sock --with-mm=/usr/local Previous Comments: [2003-10-26 05:34:12] pedro at dehumanizer dot com Just tried snapshot php4-STABLE-200310260730, and the problem still occurs. Note that it's not something that happens all the time - it only happens about 1/10th of the time - it gives that error, and the page which appears in the browser is completely blank. Usually, reloading it, or going back and clicking again on the same link makes it work... for that time. I've tried changing the session handler from "files" to "mm", and the problem remains. I guess this is related to Apache 2.0.47 on FreeBSD 4.x... Going to try downgrading to PHP 4.3.2 to see if it still happens. [2003-10-26 05:04:58] pedro at dehumanizer dot com Happens to me as well, and I'm using FreeBSD too. 4.9-rc4, in my case. Apache 2.0.47 compiled from ports, and PHP 4.3.4-rc2. [client 192.168.0.3] PHP Fatal error: session_start(): Failed to initialize storage module. in /var/www/htdocs/mail/functions/global.php on line 295, referer: http://www.dehumanizer.com/mail/src/webmail.php [2003-10-20 08:27:59] golden at riscom dot com here's parameters passed to 'configure' script: --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-bz2 --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-iconv --enable-mbstring --with-mssql --enable-xslt --with-xslt-sablot=/usr/local -with-expat-dir=/usr/local --with-iconv-dir=/usr/local All the additional software(Sablotron, freetds, iconv, libpng, libjpeg, gd) were build from ports collection of FREEBSD-4.8RELEASE exactly, with exept of zlib which was build from source using zlib-1.1.4 [2003-10-20 08:13:49] [EMAIL PROTECTED] Can not reproduce. [2003-10-20 07:48:26] golden at riscom dot com tried with php-STABLE-200310180730 - same result this message still appears in logs: session_start(): Failed to initialize storage module 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/25876 -- Edit this bug report at http://bugs.php.net/?id=25876&edit=1
#25876 [Com]: session_start(): Failed to initialize storage module
ID: 25876 Comment by: pedro at dehumanizer dot com Reported By: golden at riscom dot com Status: Bogus Bug Type: Session related Operating System: freebsd 4.8 PHP Version: 4.3.3 New Comment: Just tried snapshot php4-STABLE-200310260730, and the problem still occurs. Note that it's not something that happens all the time - it only happens about 1/10th of the time - it gives that error, and the page which appears in the browser is completely blank. Usually, reloading it, or going back and clicking again on the same link makes it work... for that time. I've tried changing the session handler from "files" to "mm", and the problem remains. I guess this is related to Apache 2.0.47 on FreeBSD 4.x... Going to try downgrading to PHP 4.3.2 to see if it still happens. Previous Comments: [2003-10-26 05:04:58] pedro at dehumanizer dot com Happens to me as well, and I'm using FreeBSD too. 4.9-rc4, in my case. Apache 2.0.47 compiled from ports, and PHP 4.3.4-rc2. [client 192.168.0.3] PHP Fatal error: session_start(): Failed to initialize storage module. in /var/www/htdocs/mail/functions/global.php on line 295, referer: http://www.dehumanizer.com/mail/src/webmail.php [2003-10-20 08:27:59] golden at riscom dot com here's parameters passed to 'configure' script: --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-bz2 --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-iconv --enable-mbstring --with-mssql --enable-xslt --with-xslt-sablot=/usr/local -with-expat-dir=/usr/local --with-iconv-dir=/usr/local All the additional software(Sablotron, freetds, iconv, libpng, libjpeg, gd) were build from ports collection of FREEBSD-4.8RELEASE exactly, with exept of zlib which was build from source using zlib-1.1.4 [2003-10-20 08:13:49] [EMAIL PROTECTED] Can not reproduce. [2003-10-20 07:48:26] golden at riscom dot com tried with php-STABLE-200310180730 - same result this message still appears in logs: session_start(): Failed to initialize storage module [2003-10-17 11:28:07] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip 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/25876 -- Edit this bug report at http://bugs.php.net/?id=25876&edit=1
#25876 [Com]: session_start(): Failed to initialize storage module
ID: 25876 Comment by: pedro at dehumanizer dot com Reported By: golden at riscom dot com Status: Bogus Bug Type: Session related Operating System: freebsd 4.8 PHP Version: 4.3.3 New Comment: Happens to me as well, and I'm using FreeBSD too. 4.9-rc4, in my case. Apache 2.0.47 compiled from ports, and PHP 4.3.4-rc2. [client 192.168.0.3] PHP Fatal error: session_start(): Failed to initialize storage module. in /var/www/htdocs/mail/functions/global.php on line 295, referer: http://www.dehumanizer.com/mail/src/webmail.php Previous Comments: [2003-10-20 08:27:59] golden at riscom dot com here's parameters passed to 'configure' script: --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-bz2 --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-iconv --enable-mbstring --with-mssql --enable-xslt --with-xslt-sablot=/usr/local -with-expat-dir=/usr/local --with-iconv-dir=/usr/local All the additional software(Sablotron, freetds, iconv, libpng, libjpeg, gd) were build from ports collection of FREEBSD-4.8RELEASE exactly, with exept of zlib which was build from source using zlib-1.1.4 [2003-10-20 08:13:49] [EMAIL PROTECTED] Can not reproduce. [2003-10-20 07:48:26] golden at riscom dot com tried with php-STABLE-200310180730 - same result this message still appears in logs: session_start(): Failed to initialize storage module [2003-10-17 11:28:07] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2003-10-17 10:01:31] golden at riscom dot com session.save_path = /tmp and it is also /tmp when this error occurs(checked the way you suggested) 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/25876 -- Edit this bug report at http://bugs.php.net/?id=25876&edit=1
#25988 [NEW]: ob_start (); can't register CLASS method as a callback function
From: MDonatas at centras dot lt Operating system: Windows XP PHP version: 4.3.3 PHP Bug Type: Output Control Bug description: ob_start (); can't register CLASS method as a callback function Description: ob_start (); can't register CLASS method as a callback function. Reproduce code: --- callback"); //or simply "callback" echo 'Some output.'; echo ob_get_clean (); } function callback ($info) //this function isn't called { return $info.' stuff'; } } $tmp = new test; ?> Expected result: callbackfunction (class method) to be called; Actual result: -- It's not called :/ -- Edit bug report at http://bugs.php.net/?id=25988&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25988&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25988&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25988&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25988&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25988&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25988&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25988&r=support Expected behavior: http://bugs.php.net/fix.php?id=25988&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25988&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25988&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25988&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25988&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25988&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25988&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25988&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25988&r=float
#25990 [NEW]: ob_get_clean () does not execute a callback function registered in ob_start ()
From: MDonatas at centras dot lt Operating system: Windows XP PHP version: 4.3.3 PHP Bug Type: Output Control Bug description: ob_get_clean () does not execute a callback function registered in ob_start () Description: in manaul it says [QUOTE] ob_get_clean() essentially executes both ob_get_contents() and ob_end_clean(). [/QUOTE] ob_end_clean() alone does call a registered callback function. Expected result: callback function registered in ob_start () to get called by ob_get_clean () Actual result: -- It does not -- Edit bug report at http://bugs.php.net/?id=25990&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25990&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25990&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25990&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25990&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25990&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25990&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=25990&r=support Expected behavior: http://bugs.php.net/fix.php?id=25990&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=25990&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=25990&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25990&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25990&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25990&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25990&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=25990&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25990&r=float