#30340 [Opn->Bgs]: libphp4.so do not produce

2004-10-07 Thread derick
 ID:   30340
 Updated by:   [EMAIL PROTECTED]
 Reported By:  orlowscy at hotpop dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: RedHat 7.2
 PHP Version:  4.3.9
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.


Previous Comments:


[2004-10-06 17:27:47] orlowscy at hotpop dot com

Description:

I have wanted to do upgrade PHP/APACHE on my RH7.2 system to
httpd-2.0.52 and php-4.3.9 with RedHat 7.2.

Did exactly all steps from manualls

- Stopped my old apache.
- configured new one
./configure --prefix=/usr/local/apache \
 --enable-so \
 --enable-cgi \
 --enable-info \
 --enable-rewrite \
 --enable-speling \
 --enable-usertrack \
 --enable-deflate \
 --enable-ssl \
 --enable-mime-magic

Complied installed and run with success new one.
- configured new php:
./configure \
 --with-apxs2=/usr/local/apache/bin/apxs \
 --with-mysql \
 --prefix=/usr/local/apache/php \
 --with-config-file-path=/usr/local/apache/php \
 --enable-force-cgi-redirect \
 --disable-cgi \
 --with-zlib \
 --with-gettext \
 --with-gdbm


 Compiled with options php but unfortunately libphp4.so library was
not
created.
 I have tried to compile PHP with smaller number of options
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
but it did not work too (libphp4.so was not produced).
Although php executables was created. But I using php olny to do web
pages.

Please help if you can.
There are not error during compilation, everything seems clean.

Regards
Slawomir







-- 
Edit this bug report at http://bugs.php.net/?id=30340&edit=1


#30341 [Opn->Bgs]: globals not available in functions called from preg_replace_callback

2004-10-07 Thread derick
 ID:   30341
 Updated by:   [EMAIL PROTECTED]
 Reported By:  f_nietsje at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Win NT
 PHP Version:  5.0.1
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

[EMAIL PROTECTED]:~$ cat bug30341.php

[EMAIL PROTECTED]:~$ php-5.0dev bug30341.php

works fine
works fine
4242

Works fine as you can see, there must be an error in your code.


Previous Comments:


[2004-10-06 19:36:53] f_nietsje at hotmail dot com

Description:

I use preg_replace_callback to substitute parts of an expression with
either true or false after which the expression can be evaluated using
eval:

_q1,1,1-2 & _q2,3-4,7
should become
true & false
which can be evaluated to false.

The strings represent answers to questions (it's for an interview
system)

The problem is that the answers are stored in a global array. The
(global) array can not be read from a function that is called from
preg_replace_callback

It would be nice if somebody can fix this :-)

Reproduce code:
---
function parseqstring($qstring)
{
global $qre;
preg_match_all('/(\d+-\d+|\d+)/', $qstring, $numbers);
$q = array_shift($numbers[0]);
foreach($numbers[0] as $number)
{
//if its a number check the answer
if(is_numeric($number))
{
//if the answer is there return true because it's all 'or'
conditions
if($qre[$q]['answers'][$number]==1)
{
return 'true';
}
}
//if its a range check all the numbers in the range
if(preg_match('/(\d+)-(\d+)/', $number, $match))
{
for($i=$match[1];$i<=$match[2];$i++)
{
if($qre[$q]['answers'][$i])
{
return 'true';
}
}
}
}
return 'false';
}




Expected result:

input: 
$qstring = _q1,1,3-4
$qre[1]['answers'][3]
output:
'true'

Actual result:
--
'false'





-- 
Edit this bug report at http://bugs.php.net/?id=30341&edit=1


#30342 [Opn->Bgs]: localtime not working properly

2004-10-07 Thread derick
 ID:   30342
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ski_sanjay at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: RH Linux 9.0
 PHP Version:  4.3.9
 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

That's how it works ... isn't a PHP issue either, merely an operating
system one.


Previous Comments:


[2004-10-06 20:54:12] ski_sanjay at yahoo dot com

Description:

One of the parameters of array returned by the localtime is the
daylight savings flag(tm_isdst). If you change the system time via
shell command and then execute a PHP script which calls localtime()
from the browser (not from shell, this is important), then you will
find that localtime is returning wrong daylight savings flag. Unless
one does a hard webserver restart localtime does not 
reflect the changes.








-- 
Edit this bug report at http://bugs.php.net/?id=30342&edit=1


#30337 [Asn->Fbk]: empty() does not return true on empty objects

2004-10-07 Thread derick
 ID:   30337
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jorma dot tuomainen at softera dot fi
-Status:   Assigned
+Status:   Feedback
 Bug Type: Class/Object related
 Operating System: Solaris
 PHP Version:  5.0.1
 Assigned To:  andi


Previous Comments:


[2004-10-06 22:05:06] [EMAIL PROTECTED]

Does this also happen in zend.ze1_compatibility_mode? This was changed
for non-compatibility mode with the change of moving objects to
handles. As far as the new OO model is concerned objects are always
handles, they are always true and they aren't empty. This is due to
objects being an entity of their own now and not just a different
syntax for accessing an array like structure. Just an example of why
empty() might not make sense with objects is how you'd expect it to
work with private/public/protected members.



[2004-10-06 14:28:55] [EMAIL PROTECTED]

Is this true Andi?



[2004-10-06 14:19:26] jorma dot tuomainen at softera dot fi

Description:

Empty() does not return true on empty objects. My 
understanding is that object that does not have methods or 
properties is empty(am I wrong?). 
 
Someone reported same thing on PHP 5 RC2 and it's still 
open w/o comments http://bugs.php.net/bug.php?id=28502 

Reproduce code:
---


Expected result:

11 

Actual result:
--
nothing aka empty page 





-- 
Edit this bug report at http://bugs.php.net/?id=30337&edit=1


#30345 [Opn->Bgs]: Unable to access predifined variables as variable variables from functions

2004-10-07 Thread derick
 ID:   30345
 Updated by:   [EMAIL PROTECTED]
 Reported By:  talex_id at o2 dot ru
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: FreeBSD
 PHP Version:  4.3.8
 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

You can't use the superglobals as variable variables, that's in the
manual.


Previous Comments:


[2004-10-06 23:20:35] talex_id at o2 dot ru

Description:

PHP allows to use 'variable variables', constructions, like a $$name or
${$name}, where $name is a string. But if i try to access to $GLOBALS
from function using this method ($$name or ${$name}, where $name =
'GLOBALS') i can't get it until i use its name at least one time into
function (or method) body. It's enouth to add string $GLOBALS; (to
'touch') to make it visible from $$name construction. Another predifned
variables are unaccessible even if i set some values to them into
function body. See code examples
(http://talex-id.o2.ru/devel/php/bugs/predefined_variables1.php.txt and
http://talex-id.o2.ru/devel/php/bugs/predefined_variables2.php.txt). I
used CLI version of PHP to test them.


Reproduce code:
---
 

Expected result:

GLOBALS, direct : Array
GLOBALS, string in "{}" : Array

GLOBALS, string from variable in "{}" : Array

GLOBALS, toched, string from variable in "{}" : Array


Actual result:
--
GLOBALS, direct : Array
GLOBALS, string in "{}" : Array

GLOBALS, string from variable in "{}" :

GLOBALS, toched, string from variable in "{}" : Array






-- 
Edit this bug report at http://bugs.php.net/?id=30345&edit=1


#29878 [Bgs]: ImageCreateFromJpeg returns 'not a valid jpeg file'

2004-10-07 Thread derick
 ID:   29878
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cyleriggs at kc dot rr dot com
 Status:   Bogus
 Bug Type: GD related
 Operating System: Linux 2.6.8.1
 PHP Version:  5.0.1
 Assigned To:  pajoye
 New Comment:

Corrupted files are invalid, and may crash an application if attempted
to use. That's why we will not implement that. (Actually, it's not a
PHP issue either, it has to do with how libgd handles opening files).


Previous Comments:


[2004-10-07 03:18:23] cyleriggs at kc dot rr dot com

Okay, so how about a feature suggestion than, i think that there should
be the option in GD that allows you to try and open images that have a
few corrupted bytes. If other programs can open them just fine what
would be the harm in allowing programmers to choose to live with the
corruptions?



[2004-10-05 09:33:47] [EMAIL PROTECTED]

PHP only reads non-coprrupted files - there is no bug here.



[2004-10-05 04:34:39] cyleriggs at kc dot rr dot com

After playing around with the images themselves i have found that
converting them from jpeg to png then back to jpeg fixed the problem
and yielded no quality loss. I used the linux tool set called
ImageMagick to do this. I wrote a short perl script to go through all
my images and fix them. Other than this i have found no other way of
stopping this. one interesting fact though is that while converting the
images with the imagemagick utility it complained about some
corruptions, however it was still able to open them fine and convert
them. Maybe PHP is being too picky about the images that it opens as
despite a few corrupted bytes EVERYthing was able to open these images
except for PHP.



[2004-09-30 21:05:50] paul at gslip dot com

I disagree. I have used my code successfully on montypics.com until the
upgrade to php 5.0.1. I now get exactly the same results as the original
poster.
Images that worked fine on previous versions now do not. I have a
sample image that can be provided. I also have code I can share with
the PHP team although I cannot post it here as it is lengthy and
copyrighted.



[2004-08-29 12:22:14] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Your jpeg file is not valid. PHP could not take care of each possible
failures in image files. Desktop softwares could. Fix your image and
replace it.

--Pierre




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/29878

-- 
Edit this bug report at http://bugs.php.net/?id=29878&edit=1


#30351 [NEW]: PHP crashes on the REAL data type in a MSSQL query

2004-10-07 Thread davidifre at yahoo dot com
From: davidifre at yahoo dot com
Operating system: solaris 5.8
PHP version:  4.3.9
PHP Bug Type: MSSQL related
Bug description:  PHP crashes on the REAL data type in a MSSQL query

Description:

I use freetds 0.62.4.

I have a table with rows of different data type (binary, datetime, int,
bit, smallint, tinyint, varbinary, varchar and real). A query with a
request on the real data row (name is "value") will crash php whereas
other requests are ok: here is what i have in my apache logs

[Thu Oct  7 09:11:16 2004] [notice] child pid 3045 exit signal Bus Error
(10)

It is not browser dependent but with Netscape7 I have a message "this
document contains no data".

any idea?

compiled (I removed every path):
--with-apache --with-ldap --with-mysql --with-pgsql --with-sybase
--with-oracle --with-oci8 --with-mssql --with-gd --with-zlib-dir
--with-zip --with-jpeg-dir --with-png-dir --with-tiff-dir --with-pdflib
--with-imap --with-snmp --with-mcrypt --with-sablot --with-expat-dir
--with-gettext --enable-sysvsem --enable-sysvshm --enable-yp --enable-ftp
--enable-calendar --enable-mbstring=all --without-pear --disable-cli


Reproduce code:
---
$req_SQL="SELECT value from table_name";
$id_con=mssql_connect("host:port","username","pwd") or die ("Could not
connect to database: ".mssql_get_last_message());
$msdb=mssql_select_db("base_name",$id_con);
$result=mssql_query($req_SQL,$id_con);




-- 
Edit bug report at http://bugs.php.net/?id=30351&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30351&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30351&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30351&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=30351&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=30351&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=30351&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=30351&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=30351&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30351&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=30351&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30351&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30351&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=30351&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30351&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=30351&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=30351&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30351&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30351&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30351&r=mysqlcfg


#30346 [Opn]: arrayAcces & using $this

2004-10-07 Thread profic at kursknet dot ru
 ID:   30346
 User updated by:  profic at kursknet dot ru
 Reported By:  profic at kursknet dot ru
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: WinXP
 PHP Version:  5.0.2
 New Comment:

Sorry, I forgot to mention that some times CLI version (which it was
tested on) it crashes. Not allways (e.g. with every code), but with the
same code it is reproducable. And with this code it crashes. But script
finishes, so it seems a crash at shutdown


Previous Comments:


[2004-10-06 23:54:14] profic at kursknet dot ru

Description:

Class inherited of class implemented ArrayAccess have problems with
using
$this['some' . $var] = $var . 'str';
if $var passed as method parameter.
Seems this is a memory problem.
Look at the 3 last entries in rtfHelperArray::haStore.

Reproduce code:
---
haStore)) {
return $this->haStore[$offset];
} else {
$temp = NULL;
return $temp;
}
}

final public function offsetSet ($offset, $value) {
$this->haStore[$offset] = $value;
return true;
}

final public function offsetUnset ($offset) {
unset ($this->haStore[$offset]);
return true;
}
}

error_reporting (E_ALL);

class test extends rtfHelperArray {
public function doTest ($idx) {
$this[$idx] = $idx;
echo $idx, ' : ', $this[$idx], "\n";
$this[$idx . '-2'] = $idx . '-2';
echo $idx . '-2', ' : ', $this[$idx . '-2'], "\n";
$this['3-' . $idx] = $idx . '-333';
echo '3-' . $idx, ' : ', $this['3-' . $idx], "\n";
$this['4-' . $idx] = $idx . '-';
echo '4-' . $idx, ' : ', $this['4-' . $idx], "\n";
$this['5-' . $idx] = $idx . '-5';
echo '5-' . $idx, ' : ', $this['5-' . $idx], "\n";
var_dump ($this);
}
}

$o = new test ();
$o->doTest ('idx');
?>

Expected result:

idx : idx
idx-2 : idx-2
3-idx : idx-333
4-idx : idx-
5-idx : idx-5
object(test)#1 (1) {
  ["haStore:private"]=>
  array(5) {
["idx"]=>
string(3) "idx"
["idx-2"]=>
string(5) "idx-2"
["3-idx"]=>
string(7) "idx-333"
["4-idx"]=>
string(8) "idx-"
["5-idx"]=>
string(5) "idx-5"
  }
}

Actual result:
--
idx : idx
idx-2 : idx-2
3-idx :
4-idx : idx-
5-idx :
object(test)#1 (1) {
  ["haStore:private"]=>
  array(5) {
["idx"]=>
string(3) "idx"
["idx-2"]=>
string(5) "idx-2"
["idx-3"]=>
string(7) "test  3"
["4-idx"]=>
string(8) "idx-"
["idx-5"]=>
string(5) "test "
  }
}





-- 
Edit this bug report at http://bugs.php.net/?id=30346&edit=1


#19556 [Com]: UPLOAD_ERR_PARTIAL when uploading files does not work, the error stays zero

2004-10-07 Thread pieter at frenssen dot be
 ID:   19556
 Comment by:   pieter at frenssen dot be
 Reported By:  tal at netoncourse dot com
 Status:   No Feedback
 Bug Type: HTTP related
 Operating System: win2k server & proffesional
 PHP Version:  4.2.3
 New Comment:

This bug has been closed but isn't fixed yet.

I'm experiencing the same problem. It is very easy to test, just do a
post upload to a file containing the script



upload a large file, press stop during the upload and check the email.
It will contain the text '[error] => 0'

I'm using PHP 4.3.8 on Apache 1.3.31.


Previous Comments:


[2002-11-26 19:59:03] [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.





[2002-11-14 01:45:15] [EMAIL PROTECTED]

Please try again now. The snapshots were offline for a while as we had
some reorganizing done for some machines.




[2002-11-10 11:59:42] tal at netoncourse dot com

I cannot edit my original submission (password does not work - another
bug?)

anyway - I cannot download the win32 snapshot to test it



[2002-10-30 11:43:42] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip





[2002-09-23 03:15:37] tal at netoncourse dot com

UPLOAD_ERR_PARTIAL in the $_FILES array never occurs. In case of
partial uploads, the error stays zero which is misleading of course.

I've used the compiled php that I've downlaoded from php.net.

I'm running the PHP SAPI module on Apcahce2 - 2.0.40




-- 
Edit this bug report at http://bugs.php.net/?id=19556&edit=1


#28015 [Com]: HTTP POST file uploads do not give error when canceled

2004-10-07 Thread pieter at frenssen dot be
 ID:   28015
 Comment by:   pieter at frenssen dot be
 Reported By:  kevin_winahradsky at hotmail dot com
 Status:   Open
 Bug Type: HTTP related
 Operating System: Linux 2.4.18
 PHP Version:  5.0.0RC1
 New Comment:

This also happens in PHP 4.3.x, but the bug report has been closed.
Check bug #19556.


Previous Comments:


[2004-04-15 20:09:50] kevin_winahradsky at hotmail dot com

Description:

When doing an HTTP POST upload of a file, if the upload is canceled by
closing the browser, $_FILES['userfile']['error'] will be equal to
UPLOAD_ERR_OK.

Reproduce code:
---
  



" . $_FILES['userfile']['error']);
error_log("completed!");
}
?>





 





Expected result:

I would expect $_FILES['userfile']['error'] to be set to
UPLOAD_ERR_PARTIAL.

Actual result:
--
$_FILES['userfile']['error'] is set to UPLOAD_ERR_OK.





-- 
Edit this bug report at http://bugs.php.net/?id=28015&edit=1


#29860 [Com]: Cannot compile with mysql and mysqli extensions

2004-10-07 Thread stormchaser1 at gmail dot com
 ID:   29860
 Comment by:   stormchaser1 at gmail dot com
 Reported By:  rjanson at msn dot com
 Status:   Feedback
 Bug Type: Compile Failure
 Operating System: Redhat 9
 PHP Version:  5.0.1
 New Comment:

Saame problem... cvs HEAD (php 5.1) from yesterday...


Previous Comments:


[2004-10-06 13:28:40] php at kilimajer dot net

The errror occurs with these rpms installed:

MySQL-server-4.1.5-0
MySQL-client-4.1.5-0
MySQL-bench-4.1.5-0
MySQL-shared-4.1.5-0
MySQL-embedded-4.1.5-0
MySQL-devel-4.1.5-0

They are downloaded from mysql.com



[2004-10-06 08:52:32] [EMAIL PROTECTED]

That doesn't make sense unless you only have a static version of the
libmysqlclient... in which case I still think that the linker handles
that correctly. Can you please try to use a shared library version of
libmysqlclient though?



[2004-10-05 23:33:44] rjanson at msn dot com

OK, finally an answer!

I checked Makefile and found the following line:

EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lpng -lz -lz -lresolv -lm
-ldl -lnsl -lxml2 -
lz -lm -lxml2 -lz -lm -lmysqlclient -lcrypt -lnsl -lm -lz -lnss_files
-lnss_dns -lresolv -lnss_files
 -lnss_dns -lresolv -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt 

By removing one of the -lmysqlclient entries on this line I was able to
successfully make and make install with both mysql and mysqli. As
confirmed by phpInfo().

I'm not sure why the other libs have multiple entries and don't cause
make to crash.



[2004-10-05 22:52:00] php at kilimajer dot net

Workaround is to execute the last failing command with one
-lmysqlclient removed, then again make.

This should be fixed in ext/mysqli/config.m4.



[2004-10-05 13:50:38] php at kilimajer dot net

This is caused by -lmysqlclient being supplied twice to the linker (at
least it was my case).



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/29860

-- 
Edit this bug report at http://bugs.php.net/?id=29860&edit=1


#29860 [Com]: Cannot compile with mysql and mysqli extensions

2004-10-07 Thread stormchaser1 at gmail dot com
 ID:   29860
 Comment by:   stormchaser1 at gmail dot com
 Reported By:  rjanson at msn dot com
 Status:   Feedback
 Bug Type: Compile Failure
 Operating System: Redhat 9
 PHP Version:  5.0.1
 New Comment:

forgot to mention it's the MySQL 5.0.1-alpha installed from 
rpms from mysql.com


Previous Comments:


[2004-10-07 12:48:24] stormchaser1 at gmail dot com

Saame problem... cvs HEAD (php 5.1) from yesterday...



[2004-10-06 13:28:40] php at kilimajer dot net

The errror occurs with these rpms installed:

MySQL-server-4.1.5-0
MySQL-client-4.1.5-0
MySQL-bench-4.1.5-0
MySQL-shared-4.1.5-0
MySQL-embedded-4.1.5-0
MySQL-devel-4.1.5-0

They are downloaded from mysql.com



[2004-10-06 08:52:32] [EMAIL PROTECTED]

That doesn't make sense unless you only have a static version of the
libmysqlclient... in which case I still think that the linker handles
that correctly. Can you please try to use a shared library version of
libmysqlclient though?



[2004-10-05 23:33:44] rjanson at msn dot com

OK, finally an answer!

I checked Makefile and found the following line:

EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lpng -lz -lz -lresolv -lm
-ldl -lnsl -lxml2 -
lz -lm -lxml2 -lz -lm -lmysqlclient -lcrypt -lnsl -lm -lz -lnss_files
-lnss_dns -lresolv -lnss_files
 -lnss_dns -lresolv -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt 

By removing one of the -lmysqlclient entries on this line I was able to
successfully make and make install with both mysql and mysqli. As
confirmed by phpInfo().

I'm not sure why the other libs have multiple entries and don't cause
make to crash.



[2004-10-05 22:52:00] php at kilimajer dot net

Workaround is to execute the last failing command with one
-lmysqlclient removed, then again make.

This should be fixed in ext/mysqli/config.m4.



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/29860

-- 
Edit this bug report at http://bugs.php.net/?id=29860&edit=1


#19556 [NoF->Opn]: UPLOAD_ERR_PARTIAL when uploading files does not work, the error stays zero

2004-10-07 Thread tal at netoncourse dot com
 ID:   19556
 User updated by:  tal at netoncourse dot com
 Reported By:  tal at netoncourse dot com
-Status:   No Feedback
+Status:   Open
 Bug Type: HTTP related
 Operating System: win2k server & proffesional
-PHP Version:  4.2.3
+PHP Version:  4.3.8
 New Comment:

pieter at frenssen dot be says it is still happening


Previous Comments:


[2004-10-07 11:46:50] pieter at frenssen dot be

This bug has been closed but isn't fixed yet.

I'm experiencing the same problem. It is very easy to test, just do a
post upload to a file containing the script



upload a large file, press stop during the upload and check the email.
It will contain the text '[error] => 0'

I'm using PHP 4.3.8 on Apache 1.3.31.



[2002-11-26 19:59:03] [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.





[2002-11-14 01:45:15] [EMAIL PROTECTED]

Please try again now. The snapshots were offline for a while as we had
some reorganizing done for some machines.




[2002-11-10 11:59:42] tal at netoncourse dot com

I cannot edit my original submission (password does not work - another
bug?)

anyway - I cannot download the win32 snapshot to test it



[2002-10-30 11:43:42] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-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/19556

-- 
Edit this bug report at http://bugs.php.net/?id=19556&edit=1


#30340 [Bgs->Opn]: libphp4.so do not produce

2004-10-07 Thread orlowscy at hotpop dot com
 ID:   30340
 User updated by:  orlowscy at hotpop dot com
 Reported By:  orlowscy at hotpop dot com
-Status:   Bogus
+Status:   Open
 Bug Type: Apache2 related
 Operating System: RedHat 7.2
 PHP Version:  4.3.9
 New Comment:

I do not understand, how this is not a bug in PHP ?
I have took source PHP installation, configured it to produced
lbphp4.so. It did not do it. It seems to me it is PHP bug. I was not
able to find any solution on http://www.php.net/support.php.
More I have found on Google that a lot of people have the some problem
with PHP and so for no one have found a solid solution. So people
suggested to change option in libtool which is generated after make
configure, but it did not for  me.
So do you know how to remove that bug.
Please do not tell me it is not a bug.
Please help, I have spent week googling for solution.
Posted on mailing list without any solution.
IT IS SERIOUS bug which have been around for long time.


Previous Comments:


[2004-10-07 09:03:23] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.



[2004-10-06 17:27:47] orlowscy at hotpop dot com

Description:

I have wanted to do upgrade PHP/APACHE on my RH7.2 system to
httpd-2.0.52 and php-4.3.9 with RedHat 7.2.

Did exactly all steps from manualls

- Stopped my old apache.
- configured new one
./configure --prefix=/usr/local/apache \
 --enable-so \
 --enable-cgi \
 --enable-info \
 --enable-rewrite \
 --enable-speling \
 --enable-usertrack \
 --enable-deflate \
 --enable-ssl \
 --enable-mime-magic

Complied installed and run with success new one.
- configured new php:
./configure \
 --with-apxs2=/usr/local/apache/bin/apxs \
 --with-mysql \
 --prefix=/usr/local/apache/php \
 --with-config-file-path=/usr/local/apache/php \
 --enable-force-cgi-redirect \
 --disable-cgi \
 --with-zlib \
 --with-gettext \
 --with-gdbm


 Compiled with options php but unfortunately libphp4.so library was
not
created.
 I have tried to compile PHP with smaller number of options
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
but it did not work too (libphp4.so was not produced).
Although php executables was created. But I using php olny to do web
pages.

Please help if you can.
There are not error during compilation, everything seems clean.

Regards
Slawomir







-- 
Edit this bug report at http://bugs.php.net/?id=30340&edit=1


#30340 [Opn->Bgs]: libphp4.so do not produce

2004-10-07 Thread derick
 ID:   30340
 Updated by:   [EMAIL PROTECTED]
 Reported By:  orlowscy at hotpop dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: RedHat 7.2
 PHP Version:  4.3.9
 New Comment:

No bug, contact one of the mailinglists that are listed at
http://php.net/support.php.


Previous Comments:


[2004-10-07 14:59:23] orlowscy at hotpop dot com

I do not understand, how this is not a bug in PHP ?
I have took source PHP installation, configured it to produced
lbphp4.so. It did not do it. It seems to me it is PHP bug. I was not
able to find any solution on http://www.php.net/support.php.
More I have found on Google that a lot of people have the some problem
with PHP and so for no one have found a solid solution. So people
suggested to change option in libtool which is generated after make
configure, but it did not for  me.
So do you know how to remove that bug.
Please do not tell me it is not a bug.
Please help, I have spent week googling for solution.
Posted on mailing list without any solution.
IT IS SERIOUS bug which have been around for long time.



[2004-10-07 09:03:23] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.



[2004-10-06 17:27:47] orlowscy at hotpop dot com

Description:

I have wanted to do upgrade PHP/APACHE on my RH7.2 system to
httpd-2.0.52 and php-4.3.9 with RedHat 7.2.

Did exactly all steps from manualls

- Stopped my old apache.
- configured new one
./configure --prefix=/usr/local/apache \
 --enable-so \
 --enable-cgi \
 --enable-info \
 --enable-rewrite \
 --enable-speling \
 --enable-usertrack \
 --enable-deflate \
 --enable-ssl \
 --enable-mime-magic

Complied installed and run with success new one.
- configured new php:
./configure \
 --with-apxs2=/usr/local/apache/bin/apxs \
 --with-mysql \
 --prefix=/usr/local/apache/php \
 --with-config-file-path=/usr/local/apache/php \
 --enable-force-cgi-redirect \
 --disable-cgi \
 --with-zlib \
 --with-gettext \
 --with-gdbm


 Compiled with options php but unfortunately libphp4.so library was
not
created.
 I have tried to compile PHP with smaller number of options
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
but it did not work too (libphp4.so was not produced).
Although php executables was created. But I using php olny to do web
pages.

Please help if you can.
There are not error during compilation, everything seems clean.

Regards
Slawomir







-- 
Edit this bug report at http://bugs.php.net/?id=30340&edit=1


#27406 [Com]: php_check_syntax executes code

2004-10-07 Thread junk at thinkof dot net
 ID:   27406
 Comment by:   junk at thinkof dot net
 Reported By:  thomas at stauntons dot org
 Status:   Assigned
 Bug Type: Unknown/Other Function
 Operating System: OS X
 PHP Version:  5.0.2-dev
 Assigned To:  iliaa
 New Comment:

My vote is for this function, and for updating the docs.  Also the
comments in the php.net manual should be updated, as this isn't really
a bug.

Simply saying that the function is being misused, or saying this is bug
is not a good thing.  People just need to understand its usage.

The simplest way I can see of updating the doc, is including a more
useful example.  Perhaps mentioning possible usages (checking the
syntax of a file for it's first load into a caching engine for
example).




Previous Comments:


[2004-09-21 16:03:24] de_bruut at hotmail dot com

"How should the docs be changed? This misfeature hasn't been dealt with
yet...maybe we should just remove the docs :)"

What misfeature? IMO a function that can check the syntax of a PHP file
before it's included has real benefits for development and testing (as
it can be used to avoid parse and fatal errors etc). And the
documentation of php_check_syntax perfectly describes such a function.
The only problem here is the fact that php_check_syntax not only checks
the code, but executes it as well. I'd say that this is unexpected,
undesirable behavior (a bug). The documentation is just fine the way it
is now...



[2004-09-20 21:36:57] [EMAIL PROTECTED]

How should the docs be changed? This misfeature hasn't been dealt with
yet...maybe we should just remove the docs :)



[2004-09-16 18:19:12] didou at keliglia dot com

"So should this function actually execute the code (like an include())
or
should it be a simple lint check (identical to php -l)"

It should do only a lint check, otherway we don't need this function as
we already have include..

Anyway, we should really change the docs philip.



[2004-08-26 18:20:05] [EMAIL PROTECTED]

Tested latest CVS on a Win32 machine, same problem.  Here's a very
simple test:

randominclude.php


checksyntax.php


Calling checksyntax.php via Module/CLI/CGI results in:

passedHI

As opposed to:

passed
Fatal error: Call to undefined function foobar() in ...




[2004-08-09 05:10:33] [EMAIL PROTECTED]

So should this function actually execute the code (like an include())
or should it be a simple lint check (identical to php -l).  The doc
team assumed the later.  Please advise with specific information on how
this should be documented or if this is indeed a bug, say so.

http://cvs.php.net/co.php/phpdoc/en/reference/misc/functions/php-check-syntax.xml




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/27406

-- 
Edit this bug report at http://bugs.php.net/?id=27406&edit=1


#30352 [NEW]: Soap array deserializer problem

2004-10-07 Thread jiro at email dot it
From: jiro at email dot it
Operating system: Windoews XP SP2
PHP version:  5.0.2
PHP Bug Type: SOAP related
Bug description:  Soap array deserializer problem

Description:

I'm using PHP 5.0.2 with SOAP extension.
I need to call a function with a array as input, and it doesn't serialize
-.-


Reproduce code:
---
$namespaces=array("rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#";,
"rdfs", "http://www.w3.org/2000/01/rdf-schema#","ns1";,
"http://purl.org/dc/elements/1.0/";, "ns2", "http://purl.org/dc/terms/";);  
   

$soap_client=new SoapClient(HOST_XIWA. 'QueryService?wsdl');
  $response=$soap_client->queryCollection(XINDICE_COL,
$queryst, true, $namespaces);

Expected result:

$response is the result of the query. It goes with NUSOAP^^

Actual result:
--
Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException]
org.xml.sax.SAXException: No deserializer defined for array type
{http://www.w3.org/2001/XMLSchema}string in D:\Tesi2004\tbl\search.php:115
Stack trace: #0 D:\Tesi2004\tbl\search.php(115):
SoapClient->queryCollection('queryCollection', Array) #1
D:\Tesi2004\tbl\search.php(97): stampa_commenti('tbl_comment',
'/rdf:RDF/rdf:De...', false, Array) #2 D:\Tesi2004\tbl\search.php(256):
stampa_un_libro('D:\Tesi2004\tbl\search.php on line 115

-- 
Edit bug report at http://bugs.php.net/?id=30352&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30352&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30352&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30352&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=30352&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=30352&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=30352&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=30352&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=30352&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30352&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=30352&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30352&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30352&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=30352&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30352&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=30352&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=30352&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30352&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30352&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30352&r=mysqlcfg


#30352 [Opn]: Soap array deserializer problem

2004-10-07 Thread jiro at email dot it
 ID:   30352
 User updated by:  jiro at email dot it
 Reported By:  jiro at email dot it
 Status:   Open
 Bug Type: SOAP related
-Operating System: Windoews XP SP2
+Operating System: Windows XP SP2
 PHP Version:  5.0.2
 New Comment:

I wrong to write the OS name


Previous Comments:


[2004-10-07 16:20:32] jiro at email dot it

Description:

I'm using PHP 5.0.2 with SOAP extension.
I need to call a function with a array as input, and it doesn't
serialize -.-


Reproduce code:
---
$namespaces=array("rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#";,
"rdfs", "http://www.w3.org/2000/01/rdf-schema#","ns1";,
"http://purl.org/dc/elements/1.0/";, "ns2",
"http://purl.org/dc/terms/";);  

$soap_client=new SoapClient(HOST_XIWA. 'QueryService?wsdl');
 
$response=$soap_client->queryCollection(XINDICE_COL, $queryst, true,
$namespaces);

Expected result:

$response is the result of the query. It goes with NUSOAP^^

Actual result:
--
Fatal error: Uncaught SoapFault exception:
[soapenv:Server.userException] org.xml.sax.SAXException: No
deserializer defined for array type
{http://www.w3.org/2001/XMLSchema}string in
D:\Tesi2004\tbl\search.php:115 Stack trace: #0
D:\Tesi2004\tbl\search.php(115):
SoapClient->queryCollection('queryCollection', Array) #1
D:\Tesi2004\tbl\search.php(97): stampa_commenti('tbl_comment',
'/rdf:RDF/rdf:De...', false, Array) #2 D:\Tesi2004\tbl\search.php(256):
stampa_un_libro('D:\Tesi2004\tbl\search.php on line 115





-- 
Edit this bug report at http://bugs.php.net/?id=30352&edit=1


#30337 [Fbk->Opn]: empty() does not return true on empty objects

2004-10-07 Thread jorma dot tuomainen at softera dot fi
 ID:   30337
 User updated by:  jorma dot tuomainen at softera dot fi
 Reported By:  jorma dot tuomainen at softera dot fi
-Status:   Feedback
+Status:   Open
 Bug Type: Class/Object related
 Operating System: Solaris
 PHP Version:  5.0.1
 Assigned To:  andi
 New Comment:

No, I'm not using compatibility mode. If this is wanted 
behaviour it should least be mentioned in the 
documentation. I still don't understand why empty() have 
to behave that way. Since that makes perfectly good 
function for a good purpose go to waste on objects. Is 
there going to be some function for checking empty 
objects(no methods or properties) or do I need to 
implement that myself?


Previous Comments:


[2004-10-06 22:05:06] [EMAIL PROTECTED]

Does this also happen in zend.ze1_compatibility_mode? This was changed
for non-compatibility mode with the change of moving objects to
handles. As far as the new OO model is concerned objects are always
handles, they are always true and they aren't empty. This is due to
objects being an entity of their own now and not just a different
syntax for accessing an array like structure. Just an example of why
empty() might not make sense with objects is how you'd expect it to
work with private/public/protected members.



[2004-10-06 14:28:55] [EMAIL PROTECTED]

Is this true Andi?



[2004-10-06 14:19:26] jorma dot tuomainen at softera dot fi

Description:

Empty() does not return true on empty objects. My 
understanding is that object that does not have methods or 
properties is empty(am I wrong?). 
 
Someone reported same thing on PHP 5 RC2 and it's still 
open w/o comments http://bugs.php.net/bug.php?id=28502 

Reproduce code:
---


Expected result:

11 

Actual result:
--
nothing aka empty page 





-- 
Edit this bug report at http://bugs.php.net/?id=30337&edit=1


#23740 [Com]: Incorrect behaviour resulting from HTTP Status Code 202

2004-10-07 Thread poncha at gmx dot net
 ID:   23740
 Comment by:   poncha at gmx dot net
 Reported By:  scoop at freshmeat dot net
 Status:   Wont fix
 Bug Type: HTTP related
 Operating System: Linux 2.4
 PHP Version:  4.3.1
 New Comment:

quote from:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1

  - 2xx: Success - The action was successfully received,
understood, and accepted

  | "200"  ; Section 10.2.1: OK
  | "201"  ; Section 10.2.2: Created
  | "202"  ; Section 10.2.3: Accepted
  | "203"  ; Section 10.2.4: Non-Authoritative Information
  | "204"  ; Section 10.2.5: No Content
  | "205"  ; Section 10.2.6: Reset Content
  | "206"  ; Section 10.2.7: Partial Content


which means that *any* 2xx status means successful transaction. The
content may be partial, alternative or only notification on the status
of the action you request, but still it is quite different from 4xx
codes , so you are wrong on the "202 is effectively the same as 404".
http 2xx status replies have completely different semantical value.

As for the "workaround", i am using curl and fsockopen in other cases,
but i consider this point as a misbehavior of php fopen wrappers.

NB: 2xx replies are NOT error responses! these are legitimate success
replies.


Previous Comments:


[2003-05-21 13:21:40] [EMAIL PROTECTED]

Thats correct; 202 is effectively the same as 404, in that both can
send back content, but neither of them send back the content that you
requested, so fopen() returns false and gives you a warning message.
(You can still suppress the warning using the @ operator and inspect
$http_response_headers in your script).



[2003-05-21 12:18:04] scoop at freshmeat dot net

But fopen() actually states "failed to create stream" 
which should not be the case as the connection is being 
established and there is something being returned by 
the webserver. As such, it neither returns any 
resource, it returns FALSE (just as with a 
404 error on the server side).

PS: The error document returned is valid XML, no 
worries regarding the XML parser :)

PPS: I do know this is possible via fsockopen() and 
this 
is the implementation I've been using for years. This 
behaviour occured to me during debugging excessive hits 
on the slashdot backend files by a headline grabber.



[2003-05-21 11:43:43] [EMAIL PROTECTED]

file() has the same semantics as fopen() when it comes to dealing with
the content of the returned stream.
file() also sets $http_response_header.



[2003-05-21 11:42:00] [EMAIL PROTECTED]

We won't change fopen() like this, as the semantics of fopen("http://";)
are that it returns the resource you requested, not an explanation of
why it didn't come back ;)

In your example, it sounds like you are expecting an XML document as
the content; what happens when your XML parser falls over the error
text?

Remember that fopen() sets $http_response_header in the local scope to
be the contents of the headers returned by the remote server; you might
find this useful.

What you can do instead of using fopen() either use the curl extension
or use fsockopen() to make the http request yourself.

We have some plans for an "easy" streams based http_request() function
in PHP5, but nothing definite yet.




[2003-05-21 11:23:41] scoop at freshmeat dot net

When using file() or other streams functions supporting 
the use of URIs as their parameter the function behaves 
incorrectly when encountering HTTP Status Code 202. 
It'd be useful to return the accessed document instead 
of returning nothing at all and issuing a warning since 
the document body is likely to include a reason why 
status code 202 is being returned (as suggested by the 
RFC). 

Would it be possible to change that behaviour?

Thanks.

Example:
Warning: file(http://games.slashdot.org/games.rdf) 
[http://www.php.net/function.file]: failed to create 
stream: HTTP request failed! HTTP/1.1 202 Accepted

Reference: The HTTP RFC

10.2.3 202 Accepted 

   The request has been accepted for processing, but 
the processing has not been completed.  The request 
might or might not eventually be acted upon, as it 
might be disallowed when processing actually takes
place. There is no facility for re-sending a status 
code from an asynchronous operation such as this. 

   The 202 response is intentionally non-committal. Its 
purpose is to allow a server to accept a request for 
some other process (perhaps a batch-oriented process 
that is only run once per day) without requiring that 
the user agent's connection to the server persist
until the process i

#30335 [Ver->Fbk]: fgetcsv + foreign characters

2004-10-07 Thread moriyoshi
 ID:   30335
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gruszczol1 at poczta dot onet dot pl
-Status:   Verified
+Status:   Feedback
 Bug Type: Filesystem function related
 Operating System: linux
 PHP Version:  5.0.2
 New Comment:

Try setting LC_CTYPE (or LANG) environment variable to 
"pl_PL.ISO-8859-2".


Previous Comments:


[2004-10-07 01:38:48] [EMAIL PROTECTED]

Specific to 5.X



[2004-10-06 11:40:37] gruszczol1 at poczta dot onet dot pl

It was tested with iso-8859-2 and windows-1250 text file.
http://republika.pl/gruszczol1/fgetcsv_bug_example.tgz



[2004-10-06 10:32:21] [EMAIL PROTECTED]

This example is useles, as we don't know which encoding you are using.
Please put this script in a zip file and provide the link to it in this
bugreport.




[2004-10-06 10:29:45] gruszczol1 at poczta dot onet dot pl

Description:

fgetcsv() doesn't read foreign chracters which are on the beginning of
the field.
Similar bug in http://bugs.php.net/bug.php?id=10896 but it has status
closed.

Reproduce code:
---
File contains:
±abc|¶abc|¿abc¿

Example code:
$aqq=fgetcsv($fp, 4000, "|");
echo $aqq[0].$aqq[1].$aqq[2];


Expected result:

Expected result:
±abc¶abc¿abc¿

Actual result:
--
Actual result:
abcabcabc¿





-- 
Edit this bug report at http://bugs.php.net/?id=30335&edit=1


#30353 [NEW]: Loosing the session

2004-10-07 Thread mani_he at yahoo dot com
From: mani_he at yahoo dot com
Operating system: Windows XP Home Edition
PHP version:  4.3.8
PHP Bug Type: Unknown/Other Function
Bug description:  Loosing the session

Description:

I made 2 pages that both have to have a session.
on all pages I start the session_start();

So let see
I have page1.php and page2.php
on page1.php I start the session and I used the $_SESSION to ceate the
session. and after that I use echo to see my session variable, when i go
to page1.php

on page2.php again I start session_start(); and I try to echo my session
in page2.php, But seems that I loose my session, or the connection is
gone

I wondering that you guys can help me.
php.ini config
session.save_hander = files 
session.save_path = C:\WINDOWS\Temp 
sesion.use_cookies = 1 
session.name = PHPSESSID 
session.auto_start = 0 
session.cookie_lifetime = 0 
session.cookie_path = C:\WINDOWS\Temp\Coockies\ 
session.cookie_domain = none 
session.serialize_handler = php 
session.referer_check = 
session.entropy_length=0 
session.entropy_file = 
session.cache_limiter = private 
session.cache_expire = 180 
session.use_trans_sid = 0 

I'm using php 4.3.8 and mysql and apache 1.3 31 in windows Xp Home
Edition

Thank You

Reproduce code:
---
//page1.php




page2


this page will show us the NAME

//page2.php




page2




Expected result:

page1.php
I can see NAME


Page2.php
Nothing


-- 
Edit bug report at http://bugs.php.net/?id=30353&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30353&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30353&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30353&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=30353&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=30353&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=30353&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=30353&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=30353&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30353&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=30353&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30353&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30353&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=30353&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30353&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=30353&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=30353&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30353&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30353&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30353&r=mysqlcfg


#29074 [Com]: mssql_connect fails under heavy load

2004-10-07 Thread phpbugreport at workboy dot com
 ID:   29074
 Comment by:   phpbugreport at workboy dot com
 Reported By:  david dot blair at nsi1 dot com
 Status:   Open
 Bug Type: MSSQL related
 Operating System: MS 2003
 PHP Version:  4.3.7
 New Comment:

If you have access to a packet sniffer and the basic knowhow, I would
recommend sniffing the connection to and from port 1433 of your MSSQL
server (if you are using 1433 that is) and the web server having the
connect problems.  I was able to determine that this problem was on the
SQL side of things by looking at the packet trace.  I would log
mssql_connect failures that were corrected by a second attempt and
matched their times exactly to TCP RESET packets being sent from the
MSSQL server back to the web server requesting a connection to port
1433.  This allowed me to rule out PHP as the source of the failure.

As to why newer versions of PHP cause this more than older versions,
all I can assume is that the newer PHP is more efficient in some way in
opening TCP connections and this is causing greater concurrency in TCP
connection requests to the SQL server.

With a listen backlog of 25 on my SQL server I still see occasional
failures but that is within an acceptable range now as they are handled
by trying again immediately.  If the number starts to go up, I will try
increasing my listen backlog.

I also observed that an entirely separate problem on my SQL server
related to the RAID card increased the failure rate so there appear to
be other mitigating factors on the SQL end.  Fixing the RAID issue make
the connect failures rate drop down to zero again.

Charles


Previous Comments:


[2004-09-29 20:29:38] david dot blair at nsi1 dot com

(In response to two posts ago) Charles, I tried your fix by setting the
winsocklistenbacklog to 16.

Didn't work.

Had three more incidents today where the first connection was refused
but on an instant reconnect it worked.



[2004-09-22 07:37:08] pretenda at pretenda dot com

I am also having the same problem. I have been searching high and low
for an answer, but have found none. I ended up creating a loop in my
PHP connect code too, and it has attempted to connect more than once,
27 times on my development server in the past week.

I am running the following:
Windows 2003 Server
IIS6
PHP 5.01
SQL Server 2000 SP3

A also previously had the issue on 4.3.8, which didn't fail as often.
Unfortunately I need some of the features of PHP5 on my new website.

Cheers,
Matt



[2004-09-21 23:57:14] david dot blair at nsi1 dot com

Charles, this doesn't explain why newer versions of PHP cause the error
more frequently than older versions, when everything else about our
systems remains the same. This also doesn't explain why PHP is the only
thing having issues that contacts my SQL server.

I'll try your work-around tomorrow and monitor the server for a few
weeks to see what happens. It's a step in the right direction to
finding a solution if it does help, but I still see it as a
work-around, not a solution.



[2004-09-21 23:36:13] phpbugreport at workboy dot com

This bug should probably be closed.  The problem is on the MSSQL end
and ban be resolved by changing the value of the winsocklistenbacklog
registry entry.  For those who are experiencing this problem, please
see http://support.microsoft.com/default.aspx?kbid=328476

I don't know why this also affects mssql_select_db, but they do appear
to go together.



[2004-09-13 00:42:39] phpbugreport at workboy dot com

Upgrading seems to make things worse.  I upgraded to freetds-0.62.4,
php-4.3.9RC2 (4.3.8 has a compile issue with freetds-0.62.4 according
to bug reports), and apache 1.3.31.

Now in addition to mssql_connect failures I also get mssql_select_db
failures for one of our busier databases.

Could it be that php/freetds is getting too fast and giving up before a
response is received from SQL 2000?

Charles Bennigton
Oddcast, Inc.



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/29074

-- 
Edit this bug report at http://bugs.php.net/?id=29074&edit=1


#17826 [Com]: PHP 4.2.1 Apache SAPI is not compatible with Apache 2.0.39

2004-10-07 Thread doesnt at matter dot com
 ID:   17826
 Comment by:   doesnt at matter dot com
 Reported By:  jan at penninkhof dot com
 Status:   Closed
 Bug Type: Apache2 related
 Operating System: Win32
 PHP Version:  4.2.1
 Assigned To:  edink
 New Comment:

just had the same message, here is what worked for me:

1. I called the wrong module in the httpd.conf
  before: LoadModule php4_module "c:/program
files/php/sapi/php4apache.dll"
  after: LoadModule php4_module "c:/program
files/php/sapi/php4apache2.dll"

2. I had to write the path to the extension directory in the php.ini,
which needs to be in the c:\windows directory:

before: extension_dir = "./"
after: extension_dir = "C:\Program Files\PHP\extensions"

Hope this helps some of you guys!

Chris


Previous Comments:


[2004-08-19 04:05:20] cp444 at nyu dot edu

I'm running on Windows XP and dont have the winnt directory.  I
followed all the directions as posted previously but am still running
into the command line: the specified module cannot be found.

I downloaded php5-win32-latest and am working on mysql-4.0.20d-win.
Please advise.



[2002-12-29 11:50:16] kemalcelayir at hotmail dot com

Apache 2.0.43 and PHP Version 4.3.1-dev work together. Most problems
are because of PHP version.

http://snaps.php.net/win32/php4-win32-latest.zip

LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php .php3 .php4 .phtml

That's all.



[2002-12-22 11:16:04] bodewes_NO_SPAM_ at fmf dot nl

Finaly!!!

I got i fixed!

I downloaded the latest from the website (rc4) from:
http://snaps.php.net/~edink/php-4.3.0RC4-Win32.zip

Just unzipped it and named it c:/php/

edited the http.conf in the way mentioned above
and edited the php.ini in the windows folder

And that only after 3 hours :P



[2002-12-13 07:46:57] vince at alkinos dot com

OK,

corrected thanks to Edin:

# There is link on the front page:
# 
# http://snaps.php.net/~edink/php-4.3.0RC3-Win32.zip
# 
# Edin

Vince



[2002-12-13 05:18:29] vince at alkinos dot com

Hi,

Despite having done exactly what is explained in "[23 Oct 8:52pm]
[EMAIL PROTECTED]" in this bug list, I still have "cannot load
php4apache2.dll into server - The specified procedure cannot be found".


Versions of apache and php are the same. The only thing is that I'm
using Windows XP Pro SP1 with all windows updates... Download of
php4-win32-STABLE-latest.zip
 was made today (buggy version?)
What's wrong???
Do I have to put php4ts.dll into the register datas???
DO I miss any specific XP Pro procedure?
I spent 3 hours on this and it still doesn't work.
Urgent help needed plz.
Thanks in advance.
Vince



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/17826

-- 
Edit this bug report at http://bugs.php.net/?id=17826&edit=1


#30351 [Opn->Asn]: PHP crashes on the REAL data type in a MSSQL query

2004-10-07 Thread fmk
 ID:   30351
 Updated by:   [EMAIL PROTECTED]
 Reported By:  davidifre at yahoo dot com
-Status:   Open
+Status:   Assigned
 Bug Type: MSSQL related
 Operating System: solaris 5.8
 PHP Version:  4.3.9
-Assigned To:  
+Assigned To:  fmk


Previous Comments:


[2004-10-07 11:01:58] davidifre at yahoo dot com

Description:

I use freetds 0.62.4.

I have a table with rows of different data type (binary, datetime, int,
bit, smallint, tinyint, varbinary, varchar and real). A query with a
request on the real data row (name is "value") will crash php whereas
other requests are ok: here is what i have in my apache logs

[Thu Oct  7 09:11:16 2004] [notice] child pid 3045 exit signal Bus
Error (10)

It is not browser dependent but with Netscape7 I have a message "this
document contains no data".

any idea?

compiled (I removed every path):
--with-apache --with-ldap --with-mysql --with-pgsql --with-sybase
--with-oracle --with-oci8 --with-mssql --with-gd --with-zlib-dir
--with-zip --with-jpeg-dir --with-png-dir --with-tiff-dir --with-pdflib
--with-imap --with-snmp --with-mcrypt --with-sablot --with-expat-dir
--with-gettext --enable-sysvsem --enable-sysvshm --enable-yp
--enable-ftp --enable-calendar --enable-mbstring=all --without-pear
--disable-cli


Reproduce code:
---
$req_SQL="SELECT value from table_name";
$id_con=mssql_connect("host:port","username","pwd") or die ("Could not
connect to database: ".mssql_get_last_message());
$msdb=mssql_select_db("base_name",$id_con);
$result=mssql_query($req_SQL,$id_con);








-- 
Edit this bug report at http://bugs.php.net/?id=30351&edit=1


#30058 [Fbk->Opn]: Yet Another Solaris compilation problem :-((

2004-10-07 Thread l_faillie at yahoo dot com
 ID:   30058
 User updated by:  l_faillie at yahoo dot com
 Reported By:  l_faillie at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: FTP related
 Operating System: Solaris 8
 PHP Version:  4.3.8
 New Comment:

Oups, yes, you're right !

Well, I've added new probe inside PHP_FUNCTION(ftp_put) [the right one
;-D] and it seems the problem come from the call of

instream = php_stream_fopen(local, mode == FTPTYPE_ASCII ? "rt" : "rb",
NULL);

around line 890 that returns a NULL pointer.
I continue to track this bug.


Previous Comments:


[2004-10-06 17:16:55] [EMAIL PROTECTED]

Why would PHP call ftp_fput() when your script doesn't have any calls
to it in it? (you call ftp_put(), notice the missing  
'f' in front of put...)




[2004-10-05 22:43:32] l_faillie at yahoo dot com

> This seems more like feature request (getting more info 
> as an error message if the ftp_*() functions fail..) 
> but anyway,

It should be better if we have better message in case of failure, but
as I said previously, I put some tracing puts() in ext/ftp/php_ftp.c
and it seems that PHP_FUNCTION(ftp_fput), line 768 is never called. So
for me it's more an issue in the PHP parser than in ftp function
themselfs.
Unfortunatly, I'm not confident enough w/ PHP parser to trace deeply in
the code.

> are you sure this isn't some firewall issue..? (like 
> I've had had to struggle with for last 6 months.. :)

Yes, because both machines are on the same networks and
 I can connect using the normal Solaris FTP client.



[2004-10-05 20:14:20] [EMAIL PROTECTED]

This seems more like feature request (getting more info as an error
message if the ftp_*() functions fail..) but anyway,
are you sure this isn't some firewall issue..? (like I've had had to
struggle with for last 6 months.. :)




[2004-10-02 17:01:21] l_faillie at yahoo dot com

Ok, the result is :

bool(false)



[2004-10-02 16:09:39] [EMAIL PROTECTED]

change the ftp_put() line in your script to this:

$retval = ftp_put($con, basename($fch), basename($fch), FTP_BINARY);
var_dump ($retval);

And tell us what you get now..



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/30058

-- 
Edit this bug report at http://bugs.php.net/?id=30058&edit=1


#29992 [Com]: foreach by reference corrupts the array

2004-10-07 Thread gardan at gmx dot de
 ID:   29992
 Comment by:   gardan at gmx dot de
 Reported By:  fletch at pobox dot com
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: linux
 PHP Version:  5.0.1
 New Comment:

There is no corruption. It is easy to explain this behaviour. Take the
following:

$arr = array(1 => array(1, 2), 2 => array(1, 2), 3 => array(1, 2));
foreach($arr as &$value) { }
foreach(array(1,2,3,4,5) as $key => $value) { }
echo $test[3];

After the first foreach() loop what you have in $value is a reference
to the last element in $arr (here: to array(1,2)).

Now, when the next foreach loop assigns a value to $value, it assigns
this value to where $value points, that is: to the last position of
$arr. Now in the second foreach() the last item of $arr becomes first
1, then 2, etc and in the end, what you get as output by this program,
is:

5

Not the expected:

Array

Now this is indeed very confusing if you don't know what's going on.

Solution:
unset $v before a new foreach() loop (maybe this could be done by php
by default?)


Previous Comments:


[2004-10-04 16:49:05] yaroukh at email dot cz

I'm [Apache/2.0.48 (Win32) PHP/5.0.2]



[2004-10-04 16:37:43] yaroukh at email dot cz

I believe the problem I'm gonna describe here has the same roots as the
one fletch has described ...
Try this:

slots =& $slots;
}

public function & getSlot($idx)
{
if(IsSet($this->slots[$idx]))
return $this->slots[$idx];

return null;
}

public function getLength()
{
return Count($this->slots);
}
}

// fill the array and create object {

$slots = Array(
'zero',
'one',
'two',
'three',
'four'
);

$aw = new ArrayWrapper($slots);

// }

// output A
var_dump($aw);

// iteration 1
for($idx = 0; $idx < $aw->getLength(); $idx++)
$aw->getSlot($idx);

// output B; everything is OK
var_dump($aw);

// iteration 2
for($idx = 0; $idx < $aw->getLength(); $idx++)
if($aw->getSlot($idx))
{
}

// output C; elements have been changed to references
var_dump($aw);
?>

As you can see in output "C" the second iteration altered elements of
the array - the elements have been turned into references. (Or did I
get the ampersand-sign wrong?) The problem is that I loose control over
the REAL objects and the elements get changed unreasonably later in the
script.

I kind of understand what's the diference between getSlot() and
getSlot() used within an if-loop (I guess the scope created by if-loop
makes the difference), but I'm not sure this difference entitles PHP to
alter my array.

Can anyone explain this to me? Is it a bug or a regular behaviour?



[2004-09-06 08:04:28] fletch at pobox dot com

changed the summary



[2004-09-06 05:54:50] fletch at pobox dot com

Description:

foreach with a reference seems to corrupt the last element in an array

Reproduce code:
---


Expected result:

Array
(
[0] => 1
[1] => 2
[2] => 3
)
Array
(
[0] => 1
[1] => 2
[2] => 3
)

Actual result:
--
Array
(
[0] => 1
[1] => 2
[2] => 3
)
Array
(
[0] => 1
[1] => 2
[2] => 2
)





-- 
Edit this bug report at http://bugs.php.net/?id=29992&edit=1


#14269 [Com]: doesn't compile, reporting: mod_mm.c:35: #error mm is not thread-safe

2004-10-07 Thread michael at cannonbose dot com
 ID:   14269
 Comment by:   michael at cannonbose dot com
 Reported By:  d dot a dot roozemond at student dot tue dot nl
 Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: SuSE linux 7.2 kernel 2.4.4
 PHP Version:  4.0CVS-2001-11-28
 New Comment:

Removing --with-mm is my thought as I have similar error.

http://us2.php.net/session


Previous Comments:


[2004-09-08 18:29:24] danny_milo at yahoo dot com

well, given that when a user gets this error message, he doesnt know
what to do to make it go away, it would be better to either
- #warning and #if 0 the module so that it will just be skipped, or
- add a comment what configure option / chants / prayers to use to make
the #error go away if one happens to have apache2

since this error does happen quite often and easily on gentoo (with php
5), for example.

just my 5 cents :)

Thanks



[2003-02-06 15:02:43] jsu2 at emory dot edu

Okay, I was able to figured out how to get PHP to use java classes.  I
was able
to get rpm to build all the packages.  Now, I'm trying to enable
servlets.
The only difference is I've added --with-servlet to the list of
arguments to
pass to the configure script.  I get the following compile error, that
wasn't
present when it was just --with-java.

make[3]: Entering directory
`/usr/src/redhat/BUILD/php-4.1.2/ext/session'
/bin/sh /usr/src/redhat/BUILD/php-4.1.2/libtool --silent --mode=compile
/usr/src/redhat/BUILD/php-4.1.2/meta_ccld  -I.
-I/usr/src/redhat/BUILD/php-4.1.2/ext/session
-I/usr/src/redhat/BUILD/php-4.1.2/main
-I/usr/src/redhat/BUILD/php-4.1.2
-I/usr/src/redhat/BUILD/php-4.1.2/Zend -I/usr/include/libxml2
-I/usr/include/freetype2/freetype -I/usr/include/imap
-I/usr/include/mysql
-I/usr/local/include -I/usr/include/pspell -I/usr/include/ucd-snmp 
-D_REENTRANT -I/usr/src/redhat/BUILD/php-4.1.2/TSRM -O2 -march=i386
-mcpu=i686 -fPIC -pthread -DZTS -prefer-pic  -c mod_mm.c
mod_mm.c:37:3: #error mm is not thread-safe
make[3]: *** [mod_mm.lo] Error 1



[2001-11-28 13:38:28] d dot a dot roozemond at student dot tue dot nl

Sorry, didn't realise that.
Thanx anyway.



[2001-11-28 12:47:10] [EMAIL PROTECTED]

Not a bug, the MM module can't be used in a threading webserver,
including Apache 2.
I'm closing this.

Derick



[2001-11-28 12:07:47] d dot a dot roozemond at student dot tue dot nl

well, actually, the problem is quite easy: it won't compile

i can't figure out why the problem occurs and how to fix 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/14269

-- 
Edit this bug report at http://bugs.php.net/?id=14269&edit=1


#30355 [NEW]: Weird Behaviour calling non-static method statically

2004-10-07 Thread info at rhalff dot com
From: info at rhalff dot com
Operating system: linux
PHP version:  5.0.2
PHP Bug Type: Zend Engine 2 problem
Bug description:  Weird Behaviour calling non-static method statically

Description:

I think the behaviour below is allready known and it can be fixed
declaring the method 'static', however I still think this is a bug. The
script should fail instead of continuing incorrect behaviour.

Related to Bug #9005, #12622, #20089, #25220, #29206

Because $this behaviour was allready there in 2001, I thought $this would
be a good reminder $this feature is still present in 5.0.2


Reproduce code:
---
setValue('huh?');
}

public function test2()
{   
$this->nonExistent();
}

}   

class B {

public function test()
{   
A::test();
}
public function setValue($v)
{   
echo "$v";
}

public function test2()
{   
A::test2();
}



}

$B = new B;
$B->test();
$B->test2();


?>

Expected result:

script should fail, cannot call a non-static method statically.




Actual result:
--
huh?
Fatal error: Call to undefined method B::nonExistent() in
/var/www/hosts/gedicht.nu/docs/static/test.php on line 12

-- 
Edit bug report at http://bugs.php.net/?id=30355&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30355&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30355&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30355&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=30355&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=30355&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=30355&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=30355&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=30355&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30355&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=30355&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30355&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30355&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=30355&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30355&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=30355&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=30355&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30355&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30355&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30355&r=mysqlcfg


#30356 [NEW]: str_ireplace does not work on all strings.

2004-10-07 Thread mark dot meredith at shaw dot ca
From: mark dot meredith at shaw dot ca
Operating system: Mac OS 10.3.5
PHP version:  5.0.2
PHP Bug Type: Strings related
Bug description:  str_ireplace does not work on all strings.

Description:

The "A" should be replaced with "b" in this example. 
Instead the letter A remains.

Reproduce code:
---


Expected result:

The "A" replaced with "b".

Actual result:
--
the letter A remains.

-- 
Edit bug report at http://bugs.php.net/?id=30356&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30356&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30356&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30356&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=30356&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=30356&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=30356&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=30356&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=30356&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30356&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=30356&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30356&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30356&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=30356&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30356&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=30356&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=30356&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30356&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30356&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30356&r=mysqlcfg


#29916 [Fbk->NoF]: $_SERVER['DOCUMENT_ROOT'] does not have a trailing slash in PHP 4.3.8

2004-10-07 Thread php-bugs
 ID:   29916
 Updated by:   [EMAIL PROTECTED]
 Reported By:  koen at startphone dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: *General Issues
 Operating System: any
 PHP Version:  4.3.8
 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:


[2004-09-30 19:12:25] [EMAIL PROTECTED]

And the SAPI you're using is..? (what webserver?)




[2004-08-31 15:35:31] koen at startphone dot com

Description:

The parameter $_SERVER['DOCUMENT_ROOT'] contains a trailing slash in
PHP 4.3.7 but not in PHP 4.3.7

for example the expression echo $_SERVER['DOCUMENT_ROOT']
- returns /var/www/myrootweb/ in PHP 4.3.7
- returns /var/www/myrootweb in PHP 4.3.8







-- 
Edit this bug report at http://bugs.php.net/?id=29916&edit=1


#30025 [Fbk->NoF]: Failure to compile 4.3.8

2004-10-07 Thread php-bugs
 ID:   30025
 Updated by:   [EMAIL PROTECTED]
 Reported By:  phdokc at yahoo dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Compile Failure
 Operating System: HPUX 11.11
 PHP Version:  4.3.8
 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:


[2004-09-30 19:07:50] [EMAIL PROTECTED]

Try this configure line:

# rm config.cache ; ./configure --disable-all && make

Also, was the output of the grep command done AFTER running configure?




[2004-09-24 02:24:19] phdokc at yahoo dot com

# grep _TIME_R main/php_config.h
/* #undef PHP_HPUX_TIME_R */
/* #undef PHP_IRIX_TIME_R */



[2004-09-16 16:44:17] [EMAIL PROTECTED]

Search for lines with _TIME_R in them in main/php_config.h and paste
them here. ( # grep _TIME_R main/php_config.h )




[2004-09-16 14:20:12] phdokc at yahoo dot com

There are several reference to "ctime_r" in the config.log.  I have
included 2 lines before and 15 after for each.

1st occurance
configure:14403: checking for chroot
configure:14431: gcc -o conftest -g -O2 -pthread  -D_REENTRANT 
conftest.c -lm -lnsl  1>&5
configure:14403: checking for ctime_r
configure:14431: gcc -o conftest -g -O2 -pthread  -D_REENTRANT 
conftest.c -lm -lnsl  1>&5
configure:14403: checking for cuserid
configure:14431: gcc -o conftest -g -O2 -pthread  -D_REENTRANT 
conftest.c -lm -lnsl  1>&5
configure:14403: checking for crypt
configure:14431: gcc -o conftest -g -O2 -pthread  -D_REENTRANT 
conftest.c -lm -lnsl  1>&5
configure:14403: checking for flock
configure:14431: gcc -o conftest -g -O2 -pthread  -D_REENTRANT 
conftest.c -lm -lnsl  1>&5
/usr/ccs/bin/ld: Unsatisfied symbols:
   flock (code)
collect2: ld returned 1 exit status
configure: failed program was:
#line 14408 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char flock(); below.  */
#include 
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply.  */
char flock();


2nd occurance
configure: In function `main':
configure:15060: warning: assignment makes integer from pointer without
a cast
configure:15061: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 15050 "configure"
#include "confdefs.h"

#include 

main() {
char buf[27];
struct tm t;
time_t old = 0;
int r, s;

s = gmtime_r(&old, &t);
r = (int) asctime_r(&t, buf, 26);
if (r == s && s == 0) return (0);
return (1);
}

3rd occurance
configure:15098: gcc -o conftest -g -O2 -pthread  -D_REENTRANT 
conftest.c -lm -lnsl  1>&5
configure: In function `main':
configure:15091: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 15082 "configure"
#include "confdefs.h"

#include 
main() {
  struct tm t, *s;
  time_t old = 0;



[2004-09-15 16:12:41] [EMAIL PROTECTED]

Check the config.log for any occurrances of string ctime_r and
cut'n'paste 2 lines before and 15 lines after that line here.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/30025

-- 
Edit this bug report at http://bugs.php.net/?id=30025&edit=1


#30267 [Fbk->NoF]: fwrite() won't work properly in destructor

2004-10-07 Thread php-bugs
 ID:   30267
 Updated by:   [EMAIL PROTECTED]
 Reported By:  eiriksletteberg at hotmail dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: Windows 98SE
 PHP Version:  5.0.1
 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:


[2004-09-30 03:34:43] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Cannot replicate on either windows or linux.



[2004-09-30 00:48:41] htmldoug at msn dot com

Reproduction code run using PHP 5.0.2 under WinXP executes exactly as
expected.



[2004-09-28 21:31:16] eiriksletteberg at hotmail dot com

Description:

When this code is executed, one would expect data.txt
to contain "Hello World!". And, as file_get_contents() says,
it is. But when the script is completely executed, data.txt
does not contain "Hello World!" as it should. The
error does not occur if the destructor is called before
the script ends, eg. by unset()'ing $foo. Seems
like the destructor cannot write to files when called
at the end of scripts?!?

Reproduce code:
---


Expected result:

data.txt should contain "Hello World!"

Actual result:
--
data.txt is empty or contains the previous value





-- 
Edit this bug report at http://bugs.php.net/?id=30267&edit=1


#28029 [Com]: HTTP request failed!

2004-10-07 Thread joseph at digiweb dot net dot nz
 ID:   28029
 Comment by:   joseph at digiweb dot net dot nz
 Reported By:  coadmin at hostings dot pl
 Status:   Open
 Bug Type: URL related
 Operating System: FreeBSD 4.9 and 5.2.1
 PHP Version:  4CVS-2004-04-16 (stable)
 New Comment:

Apache 2.0.46
PHP 4.3.2
Redhat Enterprise 3.0

We were seeing very similar behaviour to this with fopen, getimagesize,
etc, however, we were not experiencing any segfaults.

What we found was that first, the number of VirtualHosts we had defined
would affect the behaviour of this bug: If we had more than 502
virtualhosts, the fopen HTTP requests would fail, if we had 502 or
less, they would work correctly.

We thought it might have something to do with the number of open file
handles, but as far as we could tell, we were well clear of these
limits.

Then (basically by accident) we worked out that if we had each
VirtualHost use the same, global "ErrorLog" file, the problem went
away, as opposed to the situation before when we had seperate error
logs for each virtualhost.

We also had another test box, running Fedora Core 2, Apache 2.0.51, and
PHP 5.02, on which we were unable to reproduce the problem.

I hope this might possibly shed some light on things.


Previous Comments:


[2004-09-02 00:02:10] maximander at gmail dot com

this has been happening to my site too.
the following code errors, as does almost any use of
file(),fopen(),file_get_contents() or readfile() on remote files.
fsockopen seems to work for now though.

http://gerpok.darkflux.com/write.php";);
if(strpos($file[0],"you don't")) { echo "not updated";}
?>

and, whats more, after a recompile with --enable-debug, it is still
error'ing. anything useful we can do with a debug build that errors on
a regular basis?



[2004-08-18 08:58:26] andreizilla at gmail dot com

I'm having simular (same?) problems on:

* FreeBSD zig.andreib.com 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0:
Sun Aug 15 18:42:43 CDT 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERNEL  i386
* Apache/1.3.31
* PHP Version 4.3.8 configuted with: './configure'
'--enable-versioning' '--enable-memory-limit' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--with-regex=php' '--disable-cli' '--with-apxs=/usr/local/sbin/apxs'
'--disable-ipv6' '--prefix=/usr/local' 'i386-portbld-freebsd5.2.1'

Apache seems to be segfaulting every several minutes. This is what the
log files look like:

[Wed Aug 18 01:52:25 2004] [notice] child pid 18870 exit signal
Segmentation fault (11)
[Wed Aug 18 01:52:28 2004] [notice] child pid 18869 exit signal
Segmentation fault (11)
[Wed Aug 18 01:52:32 2004] [notice] child pid 18868 exit signal
Segmentation fault (11)
[Wed Aug 18 01:52:45 2004] [notice] child pid 18867 exit signal
Segmentation fault (11)
[Wed Aug 18 01:53:15 2004] [notice] child pid 18866 exit signal
Segmentation fault (11)

... times several hundred.

This also happends when I do `apachectl graceful'

If anyone knows where I can find more information on resolving this
problem please, please, please tell me. Thank you.

- andrei



[2004-07-25 14:02:46] coadmin at hostings dot pl

Hello,

sorry I couldn't use --disable-all on productive machine. There are too
many commercial hostings accounts.

But...

My problem was suddenly  resolved  about month ago before compiling
PHP. It was very strange. I didn't do any changes in Apache or PHP.
>From one day up to now all is working correctly. There wasn't any HTTP
request failed!. Additionaly, I upgraded to 4.3.8 a week ago and there
is many many many less segfaults.

But... #2

On the other server (php 4.3.6) always was OK. After upgrade to PHP
4.3.8 I've again the same bug...

I really don't know what is it. Maybe it's OS releated? But as I see on
bug status, only 37.5% people, reproducting this bug has the same OS as
me.

There aren't segaults during HTTP request failed!, but there are other
segfaults releated to php engine.



[2004-07-19 01:00:06] php-bugs at lists dot php dot net

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".



[2004-07-11 22:01:15] [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

And use EXACTLY this configure line:

# ./configure --with-apxs=/usr/local/apache/bin/apxs --disable-all
# make && make install
# /usr/local/apache/bin/apachectl stop && sle

#30356 [Opn->Csd]: str_ireplace does not work on all strings.

2004-10-07 Thread iliaa
 ID:   30356
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mark dot meredith at shaw dot ca
-Status:   Open
+Status:   Closed
 Bug Type: Strings related
 Operating System: Mac OS 10.3.5
 PHP Version:  5.0.2
 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:


[2004-10-07 23:26:04] mark dot meredith at shaw dot ca

Description:

The "A" should be replaced with "b" in this example. 
Instead the letter A remains.

Reproduce code:
---


Expected result:

The "A" replaced with "b".

Actual result:
--
the letter A remains.





-- 
Edit this bug report at http://bugs.php.net/?id=30356&edit=1


#30357 [NEW]: Date function returns incorrect results

2004-10-07 Thread vidya at webwisesage dot com
From: vidya at webwisesage dot com
Operating system: Unix
PHP version:  4.3.8
PHP Bug Type: Date/time related
Bug description:  Date function returns incorrect results

Description:

I wrote a little program below that shows the problem.  This simply adds 1
day to the date and prints the date.

At Oct 31st, 2004, it prints 2004-10-31 TWICE.  In other words, the date
function is returning an incorrect result.

Reproduce code:
---
");
endfor;
?>

Expected result:

All dates from 10-02-2004 until 01-02-2005 printed one after the other in
sequence.

Actual result:
--
NEXT DAY IS 2004-10-26 
NEXT DAY IS 2004-10-27 
NEXT DAY IS 2004-10-28 
NEXT DAY IS 2004-10-29 
NEXT DAY IS 2004-10-30 
NEXT DAY IS 2004-10-31 
NEXT DAY IS 2004-10-31 
NEXT DAY IS 2004-11-01 
NEXT DAY IS 2004-11-02 
NEXT DAY IS 2004-11-03 
NEXT DAY IS 2004-11-04 
NEXT DAY IS 2004-11-05 


-- 
Edit bug report at http://bugs.php.net/?id=30357&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30357&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30357&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30357&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=30357&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=30357&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=30357&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=30357&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=30357&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30357&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=30357&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30357&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30357&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=30357&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30357&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=30357&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=30357&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30357&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30357&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30357&r=mysqlcfg


#30357 [Opn->Bgs]: Date function returns incorrect results

2004-10-07 Thread gschlossnagle
 ID:   30357
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vidya at webwisesage dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: Unix
 PHP Version:  4.3.8
 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

congratulations, you've discovered daylight savings 
time!


Previous Comments:


[2004-10-08 06:35:18] vidya at webwisesage dot com

Description:

I wrote a little program below that shows the problem.  This simply
adds 1 day to the date and prints the date.

At Oct 31st, 2004, it prints 2004-10-31 TWICE.  In other words, the
date function is returning an incorrect result.

Reproduce code:
---
");
endfor;
?>

Expected result:

All dates from 10-02-2004 until 01-02-2005 printed one after the other
in sequence.

Actual result:
--
NEXT DAY IS 2004-10-26 
NEXT DAY IS 2004-10-27 
NEXT DAY IS 2004-10-28 
NEXT DAY IS 2004-10-29 
NEXT DAY IS 2004-10-30 
NEXT DAY IS 2004-10-31 
NEXT DAY IS 2004-10-31 
NEXT DAY IS 2004-11-01 
NEXT DAY IS 2004-11-02 
NEXT DAY IS 2004-11-03 
NEXT DAY IS 2004-11-04 
NEXT DAY IS 2004-11-05 






-- 
Edit this bug report at http://bugs.php.net/?id=30357&edit=1


#30353 [Opn->Bgs]: Loosing the session

2004-10-07 Thread derick
 ID:   30353
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mani_he at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Windows XP Home Edition
 PHP Version:  4.3.8
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.


Previous Comments:


[2004-10-07 18:08:58] mani_he at yahoo dot com

Description:

I made 2 pages that both have to have a session.
on all pages I start the session_start();

So let see
I have page1.php and page2.php
on page1.php I start the session and I used the $_SESSION to ceate the
session. and after that I use echo to see my session variable, when i
go to page1.php

on page2.php again I start session_start(); and I try to echo my
session in page2.php, But seems that I loose my session, or the
connection is gone

I wondering that you guys can help me.
php.ini config
session.save_hander = files 
session.save_path = C:\WINDOWS\Temp 
sesion.use_cookies = 1 
session.name = PHPSESSID 
session.auto_start = 0 
session.cookie_lifetime = 0 
session.cookie_path = C:\WINDOWS\Temp\Coockies\ 
session.cookie_domain = none 
session.serialize_handler = php 
session.referer_check = 
session.entropy_length=0 
session.entropy_file = 
session.cache_limiter = private 
session.cache_expire = 180 
session.use_trans_sid = 0 

I'm using php 4.3.8 and mysql and apache 1.3 31 in windows Xp Home
Edition

Thank You

Reproduce code:
---
//page1.php




page2


this page will show us the NAME

//page2.php




page2




Expected result:

page1.php
I can see NAME


Page2.php
Nothing






-- 
Edit this bug report at http://bugs.php.net/?id=30353&edit=1


#29992 [Opn->Bgs]: foreach by reference corrupts the array

2004-10-07 Thread derick
 ID:   29992
 Updated by:   [EMAIL PROTECTED]
 Reported By:  fletch at pobox dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Zend Engine 2 problem
 Operating System: linux
 PHP Version:  5.0.1
 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

Right, thanks for that analysis. No bug here. (And no, we can't unset
it by default, as people might use this for some weird reason).


Previous Comments:


[2004-10-07 21:12:18] gardan at gmx dot de

There is no corruption. It is easy to explain this behaviour. Take the
following:

$arr = array(1 => array(1, 2), 2 => array(1, 2), 3 => array(1, 2));
foreach($arr as &$value) { }
foreach(array(1,2,3,4,5) as $key => $value) { }
echo $test[3];

After the first foreach() loop what you have in $value is a reference
to the last element in $arr (here: to array(1,2)).

Now, when the next foreach loop assigns a value to $value, it assigns
this value to where $value points, that is: to the last position of
$arr. Now in the second foreach() the last item of $arr becomes first
1, then 2, etc and in the end, what you get as output by this program,
is:

5

Not the expected:

Array

Now this is indeed very confusing if you don't know what's going on.

Solution:
unset $v before a new foreach() loop (maybe this could be done by php
by default?)



[2004-10-04 16:49:05] yaroukh at email dot cz

I'm [Apache/2.0.48 (Win32) PHP/5.0.2]



[2004-10-04 16:37:43] yaroukh at email dot cz

I believe the problem I'm gonna describe here has the same roots as the
one fletch has described ...
Try this:

slots =& $slots;
}

public function & getSlot($idx)
{
if(IsSet($this->slots[$idx]))
return $this->slots[$idx];

return null;
}

public function getLength()
{
return Count($this->slots);
}
}

// fill the array and create object {

$slots = Array(
'zero',
'one',
'two',
'three',
'four'
);

$aw = new ArrayWrapper($slots);

// }

// output A
var_dump($aw);

// iteration 1
for($idx = 0; $idx < $aw->getLength(); $idx++)
$aw->getSlot($idx);

// output B; everything is OK
var_dump($aw);

// iteration 2
for($idx = 0; $idx < $aw->getLength(); $idx++)
if($aw->getSlot($idx))
{
}

// output C; elements have been changed to references
var_dump($aw);
?>

As you can see in output "C" the second iteration altered elements of
the array - the elements have been turned into references. (Or did I
get the ampersand-sign wrong?) The problem is that I loose control over
the REAL objects and the elements get changed unreasonably later in the
script.

I kind of understand what's the diference between getSlot() and
getSlot() used within an if-loop (I guess the scope created by if-loop
makes the difference), but I'm not sure this difference entitles PHP to
alter my array.

Can anyone explain this to me? Is it a bug or a regular behaviour?



[2004-09-06 08:04:28] fletch at pobox dot com

changed the summary



[2004-09-06 05:54:50] fletch at pobox dot com

Description:

foreach with a reference seems to corrupt the last element in an array

Reproduce code:
---


Expected result:

Array
(
[0] => 1
[1] => 2
[2] => 3
)
Array
(
[0] => 1
[1] => 2
[2] => 3
)

Actual result:
--
Array
(
[0] => 1
[1] => 2
[2] => 3
)
Array
(
[0] => 1
[1] => 2
[2] => 2
)





-- 
Edit this bug report at http://bugs.php.net/?id=29992&edit=1


#30355 [Opn->Asn]: Weird Behaviour calling non-static method statically

2004-10-07 Thread derick
 ID:   30355
 Updated by:   [EMAIL PROTECTED]
 Reported By:  info at rhalff dot com
-Status:   Open
+Status:   Assigned
 Bug Type: Zend Engine 2 problem
 Operating System: linux
 PHP Version:  5.0.2
-Assigned To:  
+Assigned To:  helly
 New Comment:

Marcus, can you explain why there is no bug here?


Previous Comments:


[2004-10-07 22:51:52] info at rhalff dot com

Description:

I think the behaviour below is allready known and it can be fixed
declaring the method 'static', however I still think this is a bug. The
script should fail instead of continuing incorrect behaviour.

Related to Bug #9005, #12622, #20089, #25220, #29206

Because $this behaviour was allready there in 2001, I thought $this
would be a good reminder $this feature is still present in 5.0.2


Reproduce code:
---
setValue('huh?');
}

public function test2()
{   
$this->nonExistent();
}

}   

class B {

public function test()
{   
A::test();
}
public function setValue($v)
{   
echo "$v";
}

public function test2()
{   
A::test2();
}



}

$B = new B;
$B->test();
$B->test2();


?>

Expected result:

script should fail, cannot call a non-static method statically.




Actual result:
--
huh?
Fatal error: Call to undefined method B::nonExistent() in
/var/www/hosts/gedicht.nu/docs/static/test.php on line 12





-- 
Edit this bug report at http://bugs.php.net/?id=30355&edit=1


#30357 [Bgs]: Date function returns incorrect results

2004-10-07 Thread derick
 ID:   30357
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vidya at webwisesage dot com
 Status:   Bogus
 Bug Type: Date/time related
 Operating System: Unix
 PHP Version:  4.3.8
 New Comment:

We are happy to tell you that you just discovered Daylight Savings
Time. For more information see:
http://webexhibits.org/daylightsaving/b.html
Instead of using mktime/date consider using gmmktime and gmdate which
do
not suffer from DST.




Previous Comments:


[2004-10-08 06:41:04] [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

congratulations, you\'ve discovered daylight savings 
time!



[2004-10-08 06:35:18] vidya at webwisesage dot com

Description:

I wrote a little program below that shows the problem.  This simply
adds 1 day to the date and prints the date.

At Oct 31st, 2004, it prints 2004-10-31 TWICE.  In other words, the
date function is returning an incorrect result.

Reproduce code:
---
");
endfor;
?>

Expected result:

All dates from 10-02-2004 until 01-02-2005 printed one after the other
in sequence.

Actual result:
--
NEXT DAY IS 2004-10-26 
NEXT DAY IS 2004-10-27 
NEXT DAY IS 2004-10-28 
NEXT DAY IS 2004-10-29 
NEXT DAY IS 2004-10-30 
NEXT DAY IS 2004-10-31 
NEXT DAY IS 2004-10-31 
NEXT DAY IS 2004-11-01 
NEXT DAY IS 2004-11-02 
NEXT DAY IS 2004-11-03 
NEXT DAY IS 2004-11-04 
NEXT DAY IS 2004-11-05 






-- 
Edit this bug report at http://bugs.php.net/?id=30357&edit=1