#47194 [Asn-Csd]: documentation workflow change

2009-02-02 Thread bjori
 ID:  47194
 Updated by:  bj...@php.net
 Reported By: samm...@php.net
-Status:  Assigned
+Status:  Closed
 Bug Type:Feature/Change Request
 PHP Version: 5.2.8
 Assigned To: cweiske
 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:


[2009-01-26 23:34:22] cwei...@php.net

http://tmp.cweiske.de/phpdoc-broken-files.diff



[2009-01-22 21:31:39] samm...@php.net

Description:

Translations can among others have the status working.

A file can have the status working for one of two reasons:
1. The file is outdated and needs revision.
2. A translator is currently working on this file, but the work is not
   yet completed.

In any case this file is clearly not ready to be published and should
not be included in a full build for the manual in this language.
Omitting
files with status working from the build will also considerably
speed
up the build process.

To manage these files and coordinate translation efforts, a list of
files
with status working needs to be created before the manual build.
Also,
during this preprocessing phase files that are outdated need to be
identified
and set to status working.

A file is outdated when

1. its version number is different from the version number of its
   corrosponding en version number AND
2. the file has not been touched for more than n days. n will be
   defined for each language in a separate file and is dependent on
   the policy of the translation team for that language.

The following changes to the build process are requested:

1. Check for files that are outdated and set the status flag for
   outdated files to working.
2. Generate a list of files (ascii, one full pathname per line) that
   have the status working.

3. Change the build to omit files with status working, maybe using
   the file from step 2 as an exclude list.







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



#47269 [NEW]: Typo: SoapSlient instead of SoapClient

2009-02-02 Thread php at koterov dot ru
From: php at koterov dot ru
Operating system: all
PHP version:  5.2.8
PHP Bug Type: SOAP related
Bug description:  Typo: SoapSlient instead of SoapClient

Description:

In various extension error messages, e.g.

Uncaught SoapFault exception: [Client] SoapSlient::__doRequest() returned
non string value

You see, SoapSlient instead of SoapClient.

If you search by SoapSlient over the extension source code, you will
find all matches.


-- 
Edit bug report at http://bugs.php.net/?id=47269edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47269r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47269r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47269r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47269r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47269r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47269r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47269r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47269r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47269r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47269r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47269r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47269r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47269r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47269r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47269r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47269r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47269r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47269r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47269r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47269r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47269r=mysqlcfg



#47270 [Bgs]: Invalid email address allowed as valid

2009-02-02 Thread johannes
 ID:   47270
 Updated by:   johan...@php.net
 Reported By:  jason at netmums dot com
 Status:   Bogus
 Bug Type: Filter related
 Operating System: RHEL 5.3
 PHP Version:  5.2.8
 New Comment:

Just checking TLD isn't enough - actually we'd have to make a NS lookup
but that's certainly outside the things of filter. The filter is for
making sure nothing bad happens when using the value not checking
whether the user couldn't type his name.


Previous Comments:


[2009-02-02 15:30:37] jason at netmums dot com

Thanks, perhaps a flag could be added to test against valid public TLDs

supported by IANA versus technically valid internal addresses?



[2009-02-02 14:23:26] johan...@php.net

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 domain might exist at your network.



[2009-02-02 09:44:42] jason at netmums dot com

Description:

An email address is submitted to filter_var and returned as valid 
despite the domain being invalid. There are no single character top-
level domains.

Reproduce code:
---
$email = 'testu...@hotmail.co.u';
if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) {
echo Invalid email address.;
} else {
echo Valid email address.;
}



Expected result:

Invalid email address.

Actual result:
--
Valid email address.





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



#47267 [Opn-Bgs]: Every class method can be called as static

2009-02-02 Thread johannes
 ID:   47267
 Updated by:   johan...@php.net
 Reported By:  piero dot recchia at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Ubuntu 8.10
 PHP Version:  5.2.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

.


Previous Comments:


[2009-02-02 03:44:40] piero dot recchia at gmail dot com

Description:

Every class method can be called as static:
A wrote a class without static method, but i can call any method as
static method.

Reproduce code:
---
?php
class Test {

public function nonStatic() {
echo 'Hola Non-Static';
}
}

Test::nonStatic();
?

Expected result:

a error message or exception

Actual result:
--
Hola Non-Static





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



#43535 [Com]: parse_ini_file('http://example.com/some.ini') and allow_url_include=off

2009-02-02 Thread sskaje at gmail dot com
 ID:   43535
 Comment by:   sskaje at gmail dot com
 Reported By:  sskaje at gmail dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: *
 PHP Version:  5.2.5
 New Comment:

[2 Feb 4:41pm UTC] stefan dot walk+php at gmail dot com 
I don't see how checking for allow_url_fopen instead of 
allow_url_include is a big change ...


ya, stefan, its not a big change, but as you know, all_url_include is
recommended to be Off to avoid RFI, if you need to parse an ini file on
a remote server without allow_url_include ON, you have to download it
before parsing it. So, use allow_url_fopen would bring more convinience
than allow_url_include


Previous Comments:


[2009-02-02 16:41:16] stefan dot walk+php at gmail dot com

I don't see how checking for allow_url_fopen instead of 
allow_url_include is a big change ...



[2007-12-12 10:12:07] j...@php.net

This requires changes too big for a bugfix (this is more like a new
feature as such) so most likely this will be in PHP 5.3.0 at earliest.



[2007-12-11 10:01:08] sskaje at gmail dot com

There is a ini file on a http server which has something i need on it.
so i tried to use parse_ini_file() to get the content and parse it.
i set teh 'allow_url_include' Off due to security issue, but i got an
error which said that i must turn it On



[2007-12-10 09:58:56] j...@php.net

And what exactly is the problem you have?
Currently the file opening for this function happens exactly how a
script is opened and I don't think there's anything wrong with that.



[2007-12-08 13:53:09] sskaje at gmail dot com

Description:

parse_ini_file() should not be configured with allow_url_include in
php.ini but allow_url_fopen
that make me cant directly parse the ini file on http server

Expected result:

nothing

Actual result:
--
nothing





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



#43831 [Com]: $this gets mangled when extending PDO with persistent connection

2009-02-02 Thread dennis at born05 dot nl
 ID:   43831
 Comment by:   dennis at born05 dot nl
 Reported By:  mjs at beebo dot org
 Status:   Verified
 Bug Type: PDO related
 Operating System: OS X/Linux
 PHP Version:  5.2CVS, 5.3CVS, 6CVS
 Assigned To:  wez
 New Comment:

A simpler case might be:

class MyPDO extends PDO {}

$bar = new PDO(sqlite::memory:, null, null, 
array(PDO::ATTR_PERSISTENT = true));
$baz = new MyPDO(sqlite::memory:, null, null, 
array(PDO::ATTR_PERSISTENT = true));

var_dump ($bar);
var_dump ($baz);

It looks like it internally caches the object, not just the 
connection..

Tested on Fedora Core 6, latest snaps of both 5.2 and 5.3 branch.


Previous Comments:


[2008-10-24 21:13:03] fel...@php.net

/home/felipe/dev/php5/ext/pdo/pdo_dbh.c(1516) :  Freeing 0x088CEA34 (44
bytes), script=../bug.php
[Fri Oct 24 18:55:13 2008]  Script:  '../bug.php'
/home/felipe/dev/php5/ext/pdo/pdo_dbh.c(1517) :  Freeing 0x088D7844 (32
bytes), script=../bug.php
/home/felipe/dev/php5/Zend/zend_alloc.c(2391) : Actual location
(location was relayed)
=== Total 2 memory leaks detected ===




[2008-10-24 21:12:47] fel...@php.net

/home/felipe/dev/php5/ext/pdo/pdo_dbh.c(1516) :  Freeing 0x088CEA34 (44
bytes), script=../bug.php
[Fri Oct 24 18:55:13 2008]  Script:  '../bug.php'
/home/felipe/dev/php5/ext/pdo/pdo_dbh.c(1517) :  Freeing 0x088D7844 (32
bytes), script=../bug.php
/home/felipe/dev/php5/Zend/zend_alloc.c(2391) : Actual location
(location was relayed)
=== Total 2 memory leaks detected ===




[2008-01-13 20:55:43] mjs at beebo dot org

Description:

The class of $this changes after the instantiation of a class which 
extends PDO, and which specifies PDO::ATTR_PERSISTENT attribute.



Reproduce code:
---
class Foo extends PDO {
function __construct($dsn) {
parent::__construct($dsn, null, null, 
array(PDO::ATTR_PERSISTENT =
true));
}
}

class Baz extends PDO {
function __construct($dsn) {
parent::__construct($dsn, null, null, 
array(PDO::ATTR_PERSISTENT =
true));
}
}

class Bar extends Baz {
function quux() {
echo get_class($this), \n;
$foo = new Foo(sqlite::memory:);
echo get_class($this), \n;
}
}

$bar = new Bar(sqlite::memory:);
$bar-quux();



Expected result:

Bar
Bar

i.e. get_class($this) returns the same value each time

Actual result:
--
Bar
Foo

i.e. $this gets mangled





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



#46767 [Fbk-Opn]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread peaceable_whale at hotmail dot com
 ID:   46767
 User updated by:  peaceable_whale at hotmail dot com
 Reported By:  peaceable_whale at hotmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
 Assigned To:  mysql
 New Comment:

No. The error occurs once the script connects to a database.

Test case:

?php
$mysqli=new mysqli(HOST,USERNAME,PASSWORD);
$connection_closed=$mysqli-close();
echo $connection_closed?Database connection has been closed
successfully:An error occurred when closing database connection;
?


Previous Comments:


[2009-02-02 13:43:30] johan...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Does a simple mysql_connect() or mysqli_connect() work? Do simple
queries work? Do other applications than phpMyAdmin work?



[2009-02-02 13:35:42] peaceable_whale at hotmail dot com

Thanks for changing it to Assigned :)



[2009-02-02 13:33:57] paj...@php.net

oh my bad, right.

So not related (it must be the 1st report in weeks not related to 5.1
=)

 assigned to mysql



[2009-02-02 13:32:22] peaceable_whale at hotmail dot com

Well, mysqlnd is in use as it is turned on by default in the Windows
builds:

mysqli

MysqlI Support  enabled
Client API library version  mysqlnd 5.0.5-dev - 081106 - $Revision:
1.3.2.21 $
Active Persistent Links 0
Inactive Persistent Links   0
Active Links0 

mysqlnd

mysqlnd enabled
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.21 $
Command buffer size 2048
Read buffer size32768
Collecting statistics   Yes
Collecting memory statisticsNo



[2009-02-02 13:29:48] paj...@php.net

Then be sure that the libmysql provided with php is first in your
PATH.

We do not support the libmysql 5.1, so never ever use it with PHP
binaries.



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

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



#46347 [Asn-Csd]: parse_ini_file() does not like asterisk (*) in key

2009-02-02 Thread nlopess
 ID:   46347
 Updated by:   nlop...@php.net
 Reported By:  duke at masendav dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  5.3CVS-2008-11-11
 Assigned To:  scottmac
 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:


[2009-01-01 23:10:10] nlop...@php.net

jani: try [*] or * to match a single '*' char



[2009-01-01 11:57:00] j...@php.net

I don't know how to allow literal * in re2c. (\* did not work)
And I don't have spare time to debug this. Ask Pierre if he has.



[2008-12-24 13:58:39] scott...@php.net

Jani, this wasn't broken by any of the re2c stuff.

The changes you made to zend_ini_scanner.l revision 1.48 are the cause.



[2008-10-20 21:01:03] duke at masendav dot com

More like undocumented feature then. Nothing at
http://www.php.net/parse_ini_file says that * cannot be used inside
keys. So we are using it in a few in-house applications and this came as
unpleasant surprise.

We can of course implement a different solution, if you really consider
the current (5.2) behaviour bug.

In which case it would be nice to have a better explanation in
parse_ini_file documentation with regard to what is considered a valid
syntax and what not.



[2008-10-20 20:45:16] j...@php.net

Why should it like it? That looks like a bug that got fixed by the 
new parser. 



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

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



#47274 [Opn-Bgs]: Zipfile get corrupted.

2009-02-02 Thread pajoye
 ID:   47274
 Updated by:   paj...@php.net
 Reported By:  wolfgang dot forstmeier at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Zip Related
 Operating System: Windows XP
 PHP Version:  5.2.8
-Assigned To:  
+Assigned To:  pajoye
 New Comment:

Duplicated, see #46985

Already fixed.


Previous Comments:


[2009-02-02 10:36:48] wolfgang dot forstmeier at gmail dot com

Description:

As described in Bug # 39506 Zip packaged generated through Apache get
damaged. Creating Zip packages on CLI does work proper.

This bug seems to be introduced within 5.2.8, 5.2.6 is also working
proper.

Reproduce code:
---
?php
$zip = new ZipArchive;
$res = $zip-open( 'test.zip', ZipArchive::CREATE );
if ($res === TRUE) {
   $zip-addFile( 'TestDoc1.txt', 'entryname1.txt' );
   $zip-close();
   echo 'ok';
} else {
   echo 'failed';
  }
?


Expected result:

Readable Zip Archive

Actual result:
--
Zip Archive could not be read with WinZip.
Zip file is currently larger created with Apache than with CLI.





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



#47278 [Opn]: preg_match behaves different to version 4.4.4

2009-02-02 Thread franklyn dot santana at gmail dot com
 ID:   47278
 User updated by:  franklyn dot santana at gmail dot com
 Reported By:  franklyn dot santana at gmail dot com
 Status:   Open
 Bug Type: *Regular Expressions
 Operating System: Windows 2003 Server
 PHP Version:  5.2.8
 New Comment:

I read somewhere (right now I don't remember where) there is problem
with long regular expressions in php5. Is that true? I made the regular
expression shorter, now the script works (with some limitations due to
the short regex).


Previous Comments:


[2009-02-02 13:44:58] franklyn dot santana at gmail dot com

Description:

I have a code for url rewrite, I use the preg_match function to
separate the GET parameters.

The code works fine in PHP 4.4.4, I get a matches array with the GET
parameters. But it doesn't work on PHP 5.28, the matches array is
empty.

I was checking the documentation and It seems there are not changes on
this function. 

Reproduce code:
---
$url=http://localhost/test+param-2009.html;;

preg_match(/\/[^+]*\+?[^+]+\++([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)\.html/i, $url,
$parameters);

 print_r($parameters)


Expected result:

/*tested on PHP 4.4.4
Array ( [0] = //localhost/test+param-2009.html [1] = param [2] =
2009 [3] = [4] = [5] = [6] = [7] = [8] = [9] = [10] = [11] =
[12] = [13] = [14] = [15] = [16] = [17] = [18] = [19] = [20] =
) 

Actual result:
--
Array ( ) 





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



#47278 [Opn]: preg_match behaves different to version 4.4.4

2009-02-02 Thread felipe
 ID:   47278
 Updated by:   fel...@php.net
 Reported By:  franklyn dot santana at gmail dot com
 Status:   Open
-Bug Type: *Regular Expressions
+Bug Type: PCRE related
 Operating System: Windows 2003 Server
 PHP Version:  5.2.8
 New Comment:

Check preg_last_error().
http://docs.php.net/manual/en/function.preg-last-error.php


Previous Comments:


[2009-02-02 20:30:13] franklyn dot santana at gmail dot com

I read somewhere (right now I don't remember where) there is problem
with long regular expressions in php5. Is that true? I made the regular
expression shorter, now the script works (with some limitations due to
the short regex).



[2009-02-02 13:44:58] franklyn dot santana at gmail dot com

Description:

I have a code for url rewrite, I use the preg_match function to
separate the GET parameters.

The code works fine in PHP 4.4.4, I get a matches array with the GET
parameters. But it doesn't work on PHP 5.28, the matches array is
empty.

I was checking the documentation and It seems there are not changes on
this function. 

Reproduce code:
---
$url=http://localhost/test+param-2009.html;;

preg_match(/\/[^+]*\+?[^+]+\++([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)\.html/i, $url,
$parameters);

 print_r($parameters)


Expected result:

/*tested on PHP 4.4.4
Array ( [0] = //localhost/test+param-2009.html [1] = param [2] =
2009 [3] = [4] = [5] = [6] = [7] = [8] = [9] = [10] = [11] =
[12] = [13] = [14] = [15] = [16] = [17] = [18] = [19] = [20] =
) 

Actual result:
--
Array ( ) 





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



#47279 [NEW]: Symbol xmlTextReaderSetup definition was not found

2009-02-02 Thread johntmills at yahoo dot com
From: johntmills at yahoo dot com
Operating system: AIX537
PHP version:  5.2.8
PHP Bug Type: Apache2 related
Bug description:  Symbol xmlTextReaderSetup definition was not found

Description:

Compilation yields no errors but upon start I get an undefined symbol
error.



Reproduce code:
---
export LIBPATH=$LIBPATH:/apps/IBMIHS/lib/
export ORACLE_HOME=/apps/oracle/product/10.2/client
export
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib:$LD_LIBRARY_PATH
export PATH=/usr/vac/bin:/usr/vacpp/bin:$PATH
export CFLAGS=-I /usr/vac/include -I /usr/vacpp/include -I /usr/include
-ma
export CXXFLAGS=-I /usr/vac/include -I /usr/vacpp/include -I /usr/include
-ma

./configure --with-apxs2=/apps/IBMIHS/bin/apxs
--with-libxml-dir=/opt/libxml2/2.6.30 --with-mysql=/opt/mysql/5.0.67
--with-config-file-path=/apps/IBMIHS/conf --enable-maintainer-zts
--prefix=/opt/php/5.2.8 --enable-sigchild
--with-oci8=/apps/oracle/product/10.2/client
make
make -i install

cp .libs/libphp5.a /apps/IBMIHS/modules/libphp5.a
cp .libs/libphp5.lai /apps/IBMIHS/modules/libphp5.la
cp -p .libs/libphp5.so /apps/IBMIHS/modules/libphp5.so
chmod 755 /apps/IBMIHS/modules/libphp5.so


Expected result:

Apache restart without errors.

Actual result:
--
Syntax error on line 858 of
/apps/IBM/WebSphere/CommerceServer60/instances/devcommerce1/httpconf/httpd.conf:
Cannot load /apps/IBMIHS/modules/libphp5.so into server: 
rtld: 0712-001 Symbol xmlTextReaderSetup was referenced from module
/apps/IBMIHS/modules/libphp5.so(), but a runtime definition of the symbol
was not found.

httpd.conf:858:
...
# start PHP config
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

# ldd /apps/IBMIHS/modules/libphp5.so 
 
/apps/IBMIHS/modules/libphp5.so needs:

/opt/mysql/5.0.67/lib/mysql/libmysqlclient_r.a(libmysqlclient_r.so.15)
 /usr/lib/libpthread.a(shr_xpg5.o)
 /usr/lib/libiconv.a(shr4.o)
 /usr/lib/libdl.a(shr.o)
 /usr/lib/libbsd_r.a(shr.o)
 /oracle/app/oracle/product/10.2.0/lib32/libclntsh.so
 /opt/libxml2/2.6.30/lib/libxml2.a(libxml2.so.2)
 /usr/lib/libc.a(shr.o)
 /usr/lib/librtl.a(shr.o)
 /usr/lib/libpthreads.a(shr_comm.o)
 /unix
 /usr/lib/libpthreads.a(shr_xpg5.o)
 /usr/lib/libodm.a(shr.o)
 /usr/lib/libperfstat.a(shr.o)
 /usr/lib/libcrypt.a(shr.o)
 /usr/lib/libcfg.a(shr.o)
 /usr/lib/liblvm.a(shr.o)

-- 
Edit bug report at http://bugs.php.net/?id=47279edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47279r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47279r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47279r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47279r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47279r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47279r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47279r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47279r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47279r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47279r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47279r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47279r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47279r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47279r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47279r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47279r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47279r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47279r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47279r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47279r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47279r=mysqlcfg



#47275 [Opn-Bgs]: Execution Speed problem

2009-02-02 Thread jani
 ID:   47275
 Updated by:   j...@php.net
 Reported By:  kurianvarkey at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: Windows 2003 Server
 PHP Version:  5.2.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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:


[2009-02-02 19:46:32] crrodriguez at opensuse dot org

It is slow because you have to use FASTCGI instead of CGI, anyway, this
is not the right channel to ask support questions, only to report BUGS.



[2009-02-02 11:07:07] kurianvarkey at yahoo dot com

Description:

Hello,

I installed PHP 5.2.8 through windows installer in our windows 2003
server. I opted PHP cgi version with mysql, mysqli, curl, openssl,zip,
bzip for installation. Installation was successful. When I tried to run
my website all the pages with images are taking long time to load. I
used relative path and path all are correct. The same website in our old
server with 5.0.2 running is executing faster.

I uninstall 5.2.8 copy and tried to install 5.2.4, 5.2.5, 5.2.6 windows
installers, but all failed to install correctly on our windows 2003
server. All are showing successful installations, but when I tried to
execute, page cannot find error is showing.

Now I install 5.0.2 and the website is running fast.

So do you have any idea about my problems? I don't know whether I am
doing anything wrong.

I feel in php 5.2.8, the page with images are taking more time, may be
with page itself, and request time for the browser is also high.

Thanks in advance.







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



#47279 [Opn-Bgs]: Symbol xmlTextReaderSetup definition was not found

2009-02-02 Thread jani
 ID:   47279
 Updated by:   j...@php.net
 Reported By:  johntmills at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache2 related
 Operating System: AIX537
 PHP Version:  5.2.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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Set your LD_LIBRARY_PATH properly.


Previous Comments:


[2009-02-02 14:08:04] johntmills at yahoo dot com

Description:

Compilation yields no errors but upon start I get an undefined symbol
error.



Reproduce code:
---
export LIBPATH=$LIBPATH:/apps/IBMIHS/lib/
export ORACLE_HOME=/apps/oracle/product/10.2/client
export
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib:$LD_LIBRARY_PATH
export PATH=/usr/vac/bin:/usr/vacpp/bin:$PATH
export CFLAGS=-I /usr/vac/include -I /usr/vacpp/include -I
/usr/include -ma
export CXXFLAGS=-I /usr/vac/include -I /usr/vacpp/include -I
/usr/include -ma

./configure --with-apxs2=/apps/IBMIHS/bin/apxs
--with-libxml-dir=/opt/libxml2/2.6.30 --with-mysql=/opt/mysql/5.0.67
--with-config-file-path=/apps/IBMIHS/conf --enable-maintainer-zts
--prefix=/opt/php/5.2.8 --enable-sigchild
--with-oci8=/apps/oracle/product/10.2/client
make
make -i install

cp .libs/libphp5.a /apps/IBMIHS/modules/libphp5.a
cp .libs/libphp5.lai /apps/IBMIHS/modules/libphp5.la
cp -p .libs/libphp5.so /apps/IBMIHS/modules/libphp5.so
chmod 755 /apps/IBMIHS/modules/libphp5.so


Expected result:

Apache restart without errors.

Actual result:
--
Syntax error on line 858 of
/apps/IBM/WebSphere/CommerceServer60/instances/devcommerce1/httpconf/httpd.conf:
Cannot load /apps/IBMIHS/modules/libphp5.so into server: 
rtld: 0712-001 Symbol xmlTextReaderSetup was referenced from module
/apps/IBMIHS/modules/libphp5.so(), but a runtime definition of the
symbol was not found.

httpd.conf:858:
...
# start PHP config
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

# ldd /apps/IBMIHS/modules/libphp5.so  

/apps/IBMIHS/modules/libphp5.so needs:

/opt/mysql/5.0.67/lib/mysql/libmysqlclient_r.a(libmysqlclient_r.so.15)
 /usr/lib/libpthread.a(shr_xpg5.o)
 /usr/lib/libiconv.a(shr4.o)
 /usr/lib/libdl.a(shr.o)
 /usr/lib/libbsd_r.a(shr.o)
 /oracle/app/oracle/product/10.2.0/lib32/libclntsh.so
 /opt/libxml2/2.6.30/lib/libxml2.a(libxml2.so.2)
 /usr/lib/libc.a(shr.o)
 /usr/lib/librtl.a(shr.o)
 /usr/lib/libpthreads.a(shr_comm.o)
 /unix
 /usr/lib/libpthreads.a(shr_xpg5.o)
 /usr/lib/libodm.a(shr.o)
 /usr/lib/libperfstat.a(shr.o)
 /usr/lib/libcrypt.a(shr.o)
 /usr/lib/libcfg.a(shr.o)
 /usr/lib/liblvm.a(shr.o)





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



#47272 [Opn-Bgs]: Library test for external Mysql misses -lrt and fails

2009-02-02 Thread jani
 ID:   47272
 Updated by:   j...@php.net
 Reported By:  yannick dot leny at atosorigin dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Sun Solaris 8 (SunOS 5.8)
 PHP Version:  5.2.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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You should compile mysql as shared. And before that, learn to use 
search engines (like Google..). 


Previous Comments:


[2009-02-02 10:05:34] yannick dot leny at atosorigin dot com

I try ld from Sun Solaris 8 Sparc and ld from GNU binutils 2.17 but
with no success.

#/usr/ccs/bin/ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.289

#/usr/local/bin/ld -V
GNU ld version 2.17
  Supported emulations:
   elf32_sparc
   elf64_sparc



[2009-02-02 10:00:53] yannick dot leny at atosorigin dot com

Description:

The library test for external Mysql static libraries fails on Solaris 8
(Sparc CPU) as it does not include -lrt and consequently always fails.

I found the same problem with Sqlite3 here :
http://bugs.php.net/bug.php?id=41794

And I try the workaround to add LDFLAGS=-lrt but it don't works.
I have a linking error when libtool try to create the libphp5.la file
:
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
I try ld from Sun Solaris and ld from binutils but with no success



I use :
 autoconf-2.63 
 automake-1.10.2 
 bison-2.4.1 
 coreutils-6.12 
 flex-2.5.35 
 gcc-3.4.6 
 libiconv-1.11 
 libintl-3.4.0 
 libsigsegv-2.6 
 libtool-1.5.24 
 m4-1.4.12 
 make-3.81 
 perl-5.8.8
 pkgconfig-0.23


Reproduce code:
---
Configure parameters :

CFLAGS=-O3 -mcpu=ultrasparc -mtune=ultrasparc CC=gcc CXX=gcc \
CPPFLAGS=-I/opt/apache-2.2.11/lib/openssl-0.9.8j/\
include/openssl \
-I/opt/apache-2.2.11/lib/openldap-2.4.11/include \
-I/opt/apache-2.2.11/lib/libxml2-2.6.32/include \
LDFLAGS=-R/opt/apache-2.2.11/lib/libgcc-3.4.2/lib \
-R/opt/apache-2.2.11/lib/oracle-10.2.0.4/lib \
-L/opt/apache-2.2.11/lib/libgcc-3.4.2/lib \
-L/opt/apache-2.2.11/lib/openssl-0.9.8j/lib \
-L/opt/apache-2.2.11/lib/openldap-2.4.11/lib \
-L/opt/apache-2.2.11/lib/libxml2-2.6.32/lib \
./configure \
--prefix=/opt/apache-2.2.11/php-5.2.8 \
--with-apxs2=/opt/apache-2.2.11/bin/apxs \
--with-config-file-path=/opt/apache-2.2.11/php-5.2.8 \
--with-libxml-dir=/opt/apache-2.2.11/lib/\
libxml2-2.6.32 \
--with-openssl=/opt/apache-2.2.11/lib/openssl-0.9.8j \
--with-pcre-regex \
--with-zlib=/opt/apache-2.2.11/lib/zlib-1.2.3 \
--with-bz2=shared,/opt/apache-2.2.11/lib/\
bzip2-1.0.5 \
--enable-calendar \
--enable-ctype \
--with-curl=shared,/opt/apache-2.2.11/lib/curl-7.19.3
--enable-dom \
--enable-filter \
--enable-ftp \
--with-gd \
--with-jpeg-dir=/opt/apache-2.2.11/lib/jpeg-6b \
--with-png-dir=/opt/apache-2.2.11/lib/libpng-1.2.34 \
--with-ttf=/usr \
--with-freetype-dir=/opt/apache-2.2.11/lib/\
freetype-2.3.8 \
--enable-gd-native-ttf \
--enable-hash \
--with-gettext=shared,/opt/apache-2.2.11/lib/\
gettext-0.17 \
--with-iconv-dir=/opt/apache-2.2.11/lib/libiconv-1.12 \
--enable-json \
--with-ldap=/opt/apache-2.2.11/lib/openldap-2.4.11 \
--enable-mbstring=shared \
--with-mcrypt=shared,/opt/apache-2.2.11/lib/\
libmcrypt-2.5.8 \
--with-mysql=shared,/opt/apache-2.2.11/lib/mysql-5.1.30 \
--with-mysqli=/opt/apache-2.2.11/lib/\
mysql-5.1.30/bin/mysql_config \
--with-oci8=shared,/opt/apache-2.2.11/lib/\
oracle-10.2.0.4 \
--enable-pdo \
--with-pdo-mysql=shared,/opt/apache-2.2.11/lib/mysql-5.1.30 \
--with-pdo-oci=shared,/opt/apache-2.2.11/lib/oracle-10.2.0.4 \
--without-pdo-sqlite \
--enable-posix \
--enable-reflection \
--enable-session \
--with-mm=/opt/apache-2.2.11/lib/mm-1.4.2 \
--enable-simplexml \
--enable-soap \
--enable-sockets \
--enable-spl \
--without-sqlite \
--enable-tokenizer \
--enable-xml \
--enable-xmlreader \
--enable-xmlwriter \
--with-xsl=shared,/opt/apache-2.2.11/lib/\
libxslt-1.1.24 \
--enable-zip=shared \
--disable-static --enable-shared --with-pic


1) Configure error because PHP configure don't use -lrt option 

*snip*
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in 

#47263 [Opn-Fbk]: xmlrpc_set_type() doesn't respect timezone settings

2009-02-02 Thread jani
 ID:  47263
 Updated by:  j...@php.net
 Reported By: daniel dot oconnor at gmail dot com
-Status:  Open
+Status:  Feedback
 Bug Type:XMLRPC-EPI related
 PHP Version: 5.2.8
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:


[2009-02-01 16:12:37] daniel dot oconnor at gmail dot com

Description:

xmlrpc_set_type() doesn't appear to respect my timezone settings 

(alternatively, it should parse everything as GMT/UTC?)

Tested on 5.2.6  5.2.8

Reproduce code:
---
?php
date_default_timezone_set('UTC');

$time = time();
$date = date(Y-m-dTH:i:s, $time) . \n;
$date = 20060116T19:14:03;
$time = strtotime($date);

print $date . \n;
print $time . \n;

$xmlrpc_date = (string)$date;

xmlrpc_set_type($xmlrpc_date, 'datetime');
print $xmlrpc_date-timestamp . \n;;

print date(Y-m-d H:i:s, $time) . \n;
print date(Y-m-d H:i:s, $xmlrpc_date-timestamp);

/* 5.2.6 / ubuntu says:
20060116T19:14:03
1137438843
1137401043
2006-01-16 19:14:03
2006-01-16 08:44:03
*/

Expected result:

20060116T19:14:03
1137438843
1137438843
2006-01-16 19:14:03
2006-01-16 19:14:03

Actual result:
--
20060116T19:14:03
1137438843
1137401043
2006-01-16 19:14:03
2006-01-16 08:44:03





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



#46934 [Opn]: Unable to untighten open_basedir restriction

2009-02-02 Thread jani
 ID:   46934
 Updated by:   j...@php.net
 Reported By:  kristof dot coomans at telenet dot be
 Status:   Open
-Bug Type: Safe Mode/open_basedir
+Bug Type: Feature/Change Request
 Operating System: Windows XP
 PHP Version:  5.3CVS-2008-12-23 (snap)
 New Comment:





Previous Comments:


[2008-12-27 23:46:10] bj...@php.net

I don't think the plan was to allow un-tightening it again..



[2008-12-23 08:55:33] kristof dot coomans at telenet dot be

Description:

I'm testing the new feature introduced lately, namely tightening the
open_basedir setting. This might be a very good security measure, to
prevent relative directory traversal exploits.

However, sometimes it is useful to tighten the path only for certain
code, and untighten it again afterward to its original value. This
doesn't seem to work currently.

Reproduce code:
---
?php

// original open_basedir value
echo ini_get( 'open_basedir' ) . PHP_EOL;

$newBaseDir = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'var' .
DIRECTORY_SEPARATOR;

ini_set( 'open_basedir', $newBaseDir );

// new tightened open_basedir value
echo ini_get( 'open_basedir' ) . PHP_EOL;

// this will fail, as intended, because of the open_basedir
restriction
file_put_contents( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'test.txt', 'test 123 456' );

ini_restore( 'open_basedir' );

// original open_basedir value again
echo ini_get( 'open_basedir' ) . PHP_EOL;

// this will stail fail, not intended
file_put_contents( dirname( __FILE__ ) . DIRECTORY_SEPARATOR .
'test.txt', 'test 123 456' );

?

Expected result:

The last call should be allowed, and a file test.txt should have been
created in the same directory as the script.

Actual result:
--
Warning: file_put_contents(): open_basedir restriction in effect.
File(C:\sites\
trunk\test.txt) is not within the allowed path(s):
(#9617;#948;รง#9786;#9792;) in ...

Warning: file_put_contents(C:\sites\trunk\test.txt): failed to open
stream: Operation not permitted in ...





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



#47282 [NEW]: FILTER_VALIDATE_EMAIL is marking potentially valid emails as invalid

2009-02-02 Thread jachin at clockwork dot net
From: jachin at clockwork dot net
Operating system: Gentoo
PHP version:  5.2.8
PHP Bug Type: Filter related
Bug description:  FILTER_VALIDATE_EMAIL is marking potentially valid emails as 
invalid

Description:

I tried to refractor email validation code to use the 
FILTER_VALIDATE_EMAIL filter instead of a regex. Our Unit tests failed, 
because it marked the following email addresses as invalid:

e.x.a.m.p.l...@example.com
a...@com






Reproduce code:
---
?php

$wacky_but_valid_emails[] = 'e.x.a.m.p.l...@example.com';
$wacky_but_valid_emails[] = 'a...@com';


foreach( $wacky_but_valid_emails as $email ) {
print $email : ;
$result = filter_var($email, FILTER_VALIDATE_EMAIL );
var_dump($result);
}

?

Expected result:

e.x.a.m.p.l...@example.com : bool(false)
a...@com : bool(false)

Actual result:
--
e.x.a.m.p.l...@example.com : string(e.x.a.m.p.l...@example.com)
a...@com : string(a...@com)

-- 
Edit bug report at http://bugs.php.net/?id=47282edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47282r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47282r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47282r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47282r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47282r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47282r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47282r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47282r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47282r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47282r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47282r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47282r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47282r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47282r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47282r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47282r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47282r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47282r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47282r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47282r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47282r=mysqlcfg



#47276 [Opn-Bgs]: array_change_value_case

2009-02-02 Thread johannes
 ID:   47276
 Updated by:   johan...@php.net
 Reported By:  david at ramaboo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: all
 PHP Version:  5.2.8
 New Comment:

We already have way too many array functions which makes it hard to
find relevant ones in the docs. We decided not to implement new ones,
which can be implemented trivially in userland code.


Previous Comments:


[2009-02-02 11:26:04] david at ramaboo dot com

Description:

There is a function array_change_key_case but not
array_change_value_case. This should be part of the language.

Something like this:
/**
 * @brief Returns an array with all values lowercased or uppercased.
 * @return array Returns an array with all values lowercased or
uppercased.
 * @param object $input The array to work on 
 * @param int $case [optional] Either \c CASE_UPPER or \c CASE_LOWER
(default).
 */
function array_change_value_case(array $input, $case = CASE_LOWER) {
switch ($case) {
case CASE_LOWER:
return array_map('strtolower', $input);
break;
case CASE_UPPER:
return array_map('strtoupper', $input);
break;
default:
trigger_error('Case is not valid, CASE_LOWER or 
CASE_UPPER only',
E_USER_ERROR);
return false;
}
}






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



#46767 [Fbk-Opn]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread peaceable_whale at hotmail dot com
 ID:   46767
 User updated by:  peaceable_whale at hotmail dot com
 Reported By:  peaceable_whale at hotmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
 New Comment:

Yes, MySQL 5.1.30.


Previous Comments:


[2009-02-02 13:25:41] paj...@php.net

I suppose you have mysql 5.1 right?



[2009-02-02 13:16:12] peaceable_whale at hotmail dot com

Continue to have this problem in PHP 5.3.0 Beta 1; Reproducible in IIS
7.



[2008-12-06 06:42:20] peaceable_whale at hotmail dot com

The error can be reproduced with all PHP-Windows versions--VC6 TS and
NTS, VC9 TS and NTS. I suspect it is mysqlnd related.



[2008-12-05 15:17:13] peaceable_whale at hotmail dot com

Description:

Server: IIS 5.1 with the official FastCGI plugin installed

When connecting to a MySQL server with PHP 5.3 Alpha 3, the following
error is returned:

FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

* The FastCGI process exceeded configured activity timeout
* Error Number: 258 (0x80070102).
* Error Description: The wait operation timed out.

HTTP Error 500 - Server Error.
Internet Information Services (IIS)

PHP 5.2.7 on the same system does not have the problem.

Reproduce code:
---
Install phpMyAdmin and use it to login to a MySQL server, client API is
not a concern because both MySQL and MySQLi yield the same error.

Expected result:

View the database successfully

Actual result:
--
Error returned





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



#47283 [NEW]: mysql_connect call crashes web server

2009-02-02 Thread darren at misterdoom dot com
From: darren at misterdoom dot com
Operating system: Vista Home Premium
PHP version:  5.2.8
PHP Bug Type: *Web Server problem
Bug description:  mysql_connect call crashes web server

Description:

I have a really strange problem. I've recently re-installed my computer
and set up IIS7, PHP and MySQL so that I could carry on working on my
website.

I did a quick test with phpinfo(); and everything seemed to be working
fine. Then set up 2 blank documents and started working on opening a
connection to a database, which is when all the trouble started. On viewing
the page, I would get the following message PHP has encountered an Access
Violation at 01FCAC5A and windows would also produce an error message
stating that IIS had been stopped. If I comment out the mysql_connect line
it worked fine. 

I read some things about a possible problem with the php5isapi.dll, so I
installed Apache 2.2.1.1 web server, set up PHP, but got exactly the same
result.

Reproduce code:
---
file 1 (index.php)
?php
require(farq.php);
?
html
  head
  titleSite Administration/title
?php
// If cookie, redirect
?
  /head
  
  body
!-- If no cookie, show form. --
form action=index.php method=post
input name=username maxlength=255
  input name=password maxlength=255
  input type=submit
/form
  /body
/html

File 2 (farq.php)
?php
$conn = mysql_connect('localhost', 'dbuser', 'dbpass') or die ('Error
connecting to mysql');
echo conncected;
mysql_select_db(dbname, $conn) or die (Could not select to main
database);
?

Expected result:

I would expect to see connected followed by a form.

Actual result:
--
in the browser:
Internet Explorer cannot display the webpage

Windows also pops up the alert box:
Apache HTTP Server stopped working and was closed

If I comment out the line $conn = mysql_connect('localhost', 'dbuser',
'dbpass') or die ('Error connecting to mysql'); The page displays
correctly.

-- 
Edit bug report at http://bugs.php.net/?id=47283edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47283r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47283r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47283r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47283r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47283r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47283r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47283r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47283r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47283r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47283r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47283r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47283r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47283r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47283r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47283r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47283r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47283r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47283r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47283r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47283r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47283r=mysqlcfg



#47268 [Opn-Bgs]: php bug

2009-02-02 Thread jani
 ID:   47268
 Updated by:   j...@php.net
 Reported By:  ssdduy at sina dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: linux as4
 PHP Version:  5.2.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.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:


[2009-02-02 07:48:09] ssdduy at sina dot com

Description:

If PHP 5.28 is compiled with --oci8 switch against Oracle 9.0.1, when
Apache 2.0.47 attempts to load the module it fails as per below:

httpd: Syntax error on line 223 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp5.so into server:
/home/oracle/OraHome1/lib/libclntsh.so.9.0: undefined symbol: __cmpdi2






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



#47277 [Opn-Bgs]: strptime() returns invalid value for %y

2009-02-02 Thread johannes
 ID:   47277
 Updated by:   johan...@php.net
 Reported By:  stsung at mail dot ru
-Status:   Open
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: CentOS 5.2
 PHP Version:  5.2.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

.


Previous Comments:


[2009-02-02 11:27:05] stsung at mail dot ru

Description:

When strptime() is used with %y in format, it returns an invalid Year
in tm_year. 

Reproduce code:
---
$test = strptime('02-Feb-09 11:16:00', '%d-%b-%y %H:%M:%S');
echo $test['tm_year'];

Expected result:

2009

Actual result:
--
109





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



#47274 [NEW]: Zipfile get corrupted.

2009-02-02 Thread wolfgang dot forstmeier at gmail dot com
From: wolfgang dot forstmeier at gmail dot com
Operating system: Windows XP
PHP version:  5.2.8
PHP Bug Type: Zip Related
Bug description:  Zipfile get corrupted.

Description:

As described in Bug # 39506 Zip packaged generated through Apache get
damaged. Creating Zip packages on CLI does work proper.

This bug seems to be introduced within 5.2.8, 5.2.6 is also working
proper.

Reproduce code:
---
?php
$zip = new ZipArchive;
$res = $zip-open( 'test.zip', ZipArchive::CREATE );
if ($res === TRUE) {
   $zip-addFile( 'TestDoc1.txt', 'entryname1.txt' );
   $zip-close();
   echo 'ok';
} else {
   echo 'failed';
  }
?


Expected result:

Readable Zip Archive

Actual result:
--
Zip Archive could not be read with WinZip.
Zip file is currently larger created with Apache than with CLI.

-- 
Edit bug report at http://bugs.php.net/?id=47274edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47274r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47274r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47274r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47274r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47274r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47274r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47274r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47274r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47274r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47274r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47274r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47274r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47274r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47274r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47274r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47274r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47274r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47274r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47274r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47274r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47274r=mysqlcfg



#47275 [NEW]: Execution Speed problem

2009-02-02 Thread kurianvarkey at yahoo dot com
From: kurianvarkey at yahoo dot com
Operating system: Windows 2003 Server
PHP version:  5.2.8
PHP Bug Type: *General Issues
Bug description:  Execution Speed problem

Description:

Hello,

I installed PHP 5.2.8 through windows installer in our windows 2003
server. I opted PHP cgi version with mysql, mysqli, curl, openssl,zip, bzip
for installation. Installation was successful. When I tried to run my
website all the pages with images are taking long time to load. I used
relative path and path all are correct. The same website in our old server
with 5.0.2 running is executing faster.

I uninstall 5.2.8 copy and tried to install 5.2.4, 5.2.5, 5.2.6 windows
installers, but all failed to install correctly on our windows 2003 server.
All are showing successful installations, but when I tried to execute, page
cannot find error is showing.

Now I install 5.0.2 and the website is running fast.

So do you have any idea about my problems? I don't know whether I am doing
anything wrong.

I feel in php 5.2.8, the page with images are taking more time, may be
with page itself, and request time for the browser is also high.

Thanks in advance.



-- 
Edit bug report at http://bugs.php.net/?id=47275edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47275r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47275r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47275r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47275r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47275r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47275r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47275r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47275r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47275r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47275r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47275r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47275r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47275r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47275r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47275r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47275r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47275r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47275r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47275r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47275r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47275r=mysqlcfg



#47270 [Bgs]: Invalid email address allowed as valid

2009-02-02 Thread jason at netmums dot com
 ID:   47270
 User updated by:  jason at netmums dot com
 Reported By:  jason at netmums dot com
 Status:   Bogus
 Bug Type: Filter related
 Operating System: RHEL 5.3
 PHP Version:  5.2.8
 New Comment:

Thanks, perhaps a flag could be added to test against valid public TLDs

supported by IANA versus technically valid internal addresses?


Previous Comments:


[2009-02-02 14:23:26] johan...@php.net

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 domain might exist at your network.



[2009-02-02 09:44:42] jason at netmums dot com

Description:

An email address is submitted to filter_var and returned as valid 
despite the domain being invalid. There are no single character top-
level domains.

Reproduce code:
---
$email = 'testu...@hotmail.co.u';
if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) {
echo Invalid email address.;
} else {
echo Valid email address.;
}



Expected result:

Invalid email address.

Actual result:
--
Valid email address.





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



#46767 [Bgs-Asn]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread pajoye
 ID:   46767
 Updated by:   paj...@php.net
 Reported By:  peaceable_whale at hotmail dot com
-Status:   Bogus
+Status:   Assigned
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
-Assigned To:  
+Assigned To:  mysql
 New Comment:

oh my bad, right.

So not related (it must be the 1st report in weeks not related to 5.1
=)

 assigned to mysql


Previous Comments:


[2009-02-02 13:32:22] peaceable_whale at hotmail dot com

Well, mysqlnd is in use as it is turned on by default in the Windows
builds:

mysqli

MysqlI Support  enabled
Client API library version  mysqlnd 5.0.5-dev - 081106 - $Revision:
1.3.2.21 $
Active Persistent Links 0
Inactive Persistent Links   0
Active Links0 

mysqlnd

mysqlnd enabled
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.21 $
Command buffer size 2048
Read buffer size32768
Collecting statistics   Yes
Collecting memory statisticsNo



[2009-02-02 13:29:48] paj...@php.net

Then be sure that the libmysql provided with php is first in your
PATH.

We do not support the libmysql 5.1, so never ever use it with PHP
binaries.



[2009-02-02 13:26:25] peaceable_whale at hotmail dot com

Yes, MySQL 5.1.30.



[2009-02-02 13:25:41] paj...@php.net

I suppose you have mysql 5.1 right?



[2009-02-02 13:16:12] peaceable_whale at hotmail dot com

Continue to have this problem in PHP 5.3.0 Beta 1; Reproducible in IIS
7.



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

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



#47270 [Opn-Bgs]: Invalid email address allowed as valid

2009-02-02 Thread johannes
 ID:   47270
 Updated by:   johan...@php.net
 Reported By:  jason at netmums dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Filter related
 Operating System: RHEL 5.3
 PHP Version:  5.2.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

That domain might exist at your network.


Previous Comments:


[2009-02-02 09:44:42] jason at netmums dot com

Description:

An email address is submitted to filter_var and returned as valid 
despite the domain being invalid. There are no single character top-
level domains.

Reproduce code:
---
$email = 'testu...@hotmail.co.u';
if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) {
echo Invalid email address.;
} else {
echo Valid email address.;
}



Expected result:

Invalid email address.

Actual result:
--
Valid email address.





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



#47284 [NEW]: Args disappear from stack trace

2009-02-02 Thread the...@php.net
From: the...@php.net
Operating system: Windows
PHP version:  5.2.8
PHP Bug Type: Scripting Engine problem
Bug description:  Args disappear from stack trace

Description:

Exception's stacktraces miss the args key in certain situations (whereas
debug_backtrace() will report them).

Reproduce code:
---
php -r 'class Chained extends Exception { function __construct($message,
$cause) { parent::__construct($message); $this-cause= $cause; }} function
raise($message, $cause) { throw new Chained($message, new
Exception($cause)); } try { raise(Arg, Cause); } catch (Exception $e) {
var_dump($e-getTrace(), $e-cause-getTrace()); }'

Expected result:

Twice this:

array(1) {
  [0]=
  array(4) {
[file]=
string(17) Command line code
[line]=
int(1)
[function]=
string(5) raise
[args]=
array(2) {
  [0]=
  string(3) Arg
  [1]=
  string(5) Cause
}
  }
}


Actual result:
--
array(1) {
  [0]=
  array(4) {
[file]=
string(17) Command line code
[line]=
int(1)
[function]=
string(5) raise
[args]=
array(2) {
  [0]=
  string(3) Arg
  [1]=
  string(5) Cause
}
  }
}
array(1) {
  [0]=
  array(3) {
[file]=
string(17) Command line code
[line]=
int(1)
[function]=
string(5) raise
  }
}

The second array is missing the args key. In PHP 5.3, it's present.

-- 
Edit bug report at http://bugs.php.net/?id=47284edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47284r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47284r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47284r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47284r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47284r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47284r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47284r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47284r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47284r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47284r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47284r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47284r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47284r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47284r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47284r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47284r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47284r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47284r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47284r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47284r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47284r=mysqlcfg



#47271 [Opn-Csd]: Datetime::Modify

2009-02-02 Thread mguichar at univ-lr dot fr
 ID:   47271
 User updated by:  mguichar at univ-lr dot fr
 Reported By:  mguichar at univ-lr dot fr
-Status:   Open
+Status:   Closed
 Bug Type: Date/time related
 Operating System: Windows / Linux
 PHP Version:  5.2.8
 New Comment:

Error come from default timezone ...


Previous Comments:


[2009-02-02 10:06:51] mguichar at univ-lr dot fr

Same bug with date :
1998/03/29
1999/03/28
2000/03/26
and probably for each year before 1998 !



[2009-02-02 09:58:42] mguichar at univ-lr dot fr

Description:

When I add 1 hour to Datetime Object (using modify function), it's not
1 hour but 2 hour which are added. This bug appear only for date :
2001-03-25 01:03:00 / 2002-03-31 01:03:00 / 2003-03-30 01:03:00 /
2004-03-28 01:03:00 / 2005-03-27 01:03:00 / 2006-03-26 01:03:00 /
2007-03-25 01:03:00 / 2008-03-30 01:03:00

Reproduce code:
---
$date= date_create('2001-03-25 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

$date= date_create('2002-03-31 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

...

Expected result:

2001-03-25 01:03:00 +1 hour =
2001-03-25 02:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 02:03:00

...

Actual result:
--
2001-03-25 01:03:00 +1 hour =
2001-03-25 03:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 03:03:00

...





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



#47271 [Csd-Bgs]: Datetime::Modify

2009-02-02 Thread felipe
 ID:   47271
 Updated by:   fel...@php.net
 Reported By:  mguichar at univ-lr dot fr
-Status:   Closed
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: Windows / Linux
 PHP Version:  5.2.8


Previous Comments:


[2009-02-02 10:20:36] mguichar at univ-lr dot fr

Error come from default timezone ...



[2009-02-02 10:06:51] mguichar at univ-lr dot fr

Same bug with date :
1998/03/29
1999/03/28
2000/03/26
and probably for each year before 1998 !



[2009-02-02 09:58:42] mguichar at univ-lr dot fr

Description:

When I add 1 hour to Datetime Object (using modify function), it's not
1 hour but 2 hour which are added. This bug appear only for date :
2001-03-25 01:03:00 / 2002-03-31 01:03:00 / 2003-03-30 01:03:00 /
2004-03-28 01:03:00 / 2005-03-27 01:03:00 / 2006-03-26 01:03:00 /
2007-03-25 01:03:00 / 2008-03-30 01:03:00

Reproduce code:
---
$date= date_create('2001-03-25 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

$date= date_create('2002-03-31 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

...

Expected result:

2001-03-25 01:03:00 +1 hour =
2001-03-25 02:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 02:03:00

...

Actual result:
--
2001-03-25 01:03:00 +1 hour =
2001-03-25 03:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 03:03:00

...





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



#47270 [NEW]: Invalid email address allowed as valid

2009-02-02 Thread jason at netmums dot com
From: jason at netmums dot com
Operating system: RHEL 5.3
PHP version:  5.2.8
PHP Bug Type: Filter related
Bug description:  Invalid email address allowed as valid

Description:

An email address is submitted to filter_var and returned as valid 
despite the domain being invalid. There are no single character top-
level domains.

Reproduce code:
---
$email = 'testu...@hotmail.co.u';
if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) {
echo Invalid email address.;
} else {
echo Valid email address.;
}



Expected result:

Invalid email address.

Actual result:
--
Valid email address.

-- 
Edit bug report at http://bugs.php.net/?id=47270edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47270r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47270r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47270r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47270r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47270r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47270r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47270r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47270r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47270r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47270r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47270r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47270r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47270r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47270r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47270r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47270r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47270r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47270r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47270r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47270r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47270r=mysqlcfg



#47277 [NEW]: strptime() returns invalid value for %y

2009-02-02 Thread stsung at mail dot ru
From: stsung at mail dot ru
Operating system: CentOS 5.2
PHP version:  5.2.8
PHP Bug Type: Date/time related
Bug description:  strptime() returns invalid value for %y

Description:

When strptime() is used with %y in format, it returns an invalid Year in
tm_year. 

Reproduce code:
---
$test = strptime('02-Feb-09 11:16:00', '%d-%b-%y %H:%M:%S');
echo $test['tm_year'];

Expected result:

2009

Actual result:
--
109

-- 
Edit bug report at http://bugs.php.net/?id=47277edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47277r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47277r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47277r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47277r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47277r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47277r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47277r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47277r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47277r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47277r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47277r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47277r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47277r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47277r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47277r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47277r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47277r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47277r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47277r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47277r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47277r=mysqlcfg



#46767 [Opn]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread peaceable_whale at hotmail dot com
 ID:   46767
 User updated by:  peaceable_whale at hotmail dot com
 Reported By:  peaceable_whale at hotmail dot com
 Status:   Open
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
 New Comment:

Continue to have this problem in PHP 5.3.0 Beta 1; Reproducible in IIS
7.


Previous Comments:


[2008-12-06 06:42:20] peaceable_whale at hotmail dot com

The error can be reproduced with all PHP-Windows versions--VC6 TS and
NTS, VC9 TS and NTS. I suspect it is mysqlnd related.



[2008-12-05 15:17:13] peaceable_whale at hotmail dot com

Description:

Server: IIS 5.1 with the official FastCGI plugin installed

When connecting to a MySQL server with PHP 5.3 Alpha 3, the following
error is returned:

FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

* The FastCGI process exceeded configured activity timeout
* Error Number: 258 (0x80070102).
* Error Description: The wait operation timed out.

HTTP Error 500 - Server Error.
Internet Information Services (IIS)

PHP 5.2.7 on the same system does not have the problem.

Reproduce code:
---
Install phpMyAdmin and use it to login to a MySQL server, client API is
not a concern because both MySQL and MySQLi yield the same error.

Expected result:

View the database successfully

Actual result:
--
Error returned





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



#40102 [Opn-Csd]: Mail() Function Abuse Tracking

2009-02-02 Thread pajoye
 ID:   40102
 Updated by:   paj...@php.net
 Reported By:  w dot ashcroft at redfoxuk dot com
-Status:   Open
+Status:   Closed
 Bug Type: Feature/Change Request
 Operating System: All
 PHP Version:  4.x.x, 5.x.x, 6.x.x
-Assigned To:  
+Assigned To:  iliaa
 New Comment:

a mail logging functionality that allows logging of mail sent via
mail() function has been implemented in 5.3.0 (from beta1), thx to Ilia.


Previous Comments:


[2008-08-25 19:44:47] w dot ashcroft at redfoxuk dot com

More information about this patch can be found at:

http://choon.net/php-mail-header.php



[2007-06-17 15:06:53] w dot ashcroft at redfoxuk dot com

Updated to all OS's.



[2007-06-16 15:35:13] paul at pwnewmedia dot com

I agree, this is very much needed and would help a lot in the battle
against spam!



[2007-01-11 22:16:26] w dot ashcroft at redfoxuk dot com

Description:

This isnt a bug as such, but rather a change that is desperatly needed
to the mail() function. Currently when this is abused there is NO WAY to
track which user/website/IP is abusing the function - what we really
need is for PHP to insert an header that cannot be removed by the
website administrator (possibly a setting in php.ini to enabled this
email header tracking feature by the system administrator).

This header will contain information that will help the system admin
track the abuser; such a patch that works very well (and is VERY simple
to implement) can be found here:

http://www.lancs.ac.uk:8080/~steveb/patches/php-mail-header-patch/

...it is a real headache for the system administrators that really need
this change to have to recompile PHP.

Reproduce code:
---
NA

Expected result:

NA

Actual result:
--
NA





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



#47276 [NEW]: array_change_value_case

2009-02-02 Thread david at ramaboo dot com
From: david at ramaboo dot com
Operating system: all
PHP version:  5.2.8
PHP Bug Type: Feature/Change Request
Bug description:  array_change_value_case

Description:

There is a function array_change_key_case but not array_change_value_case.
This should be part of the language.

Something like this:
/**
 * @brief Returns an array with all values lowercased or uppercased.
 * @return array Returns an array with all values lowercased or
uppercased.
 * @param object $input The array to work on 
 * @param int $case [optional] Either \c CASE_UPPER or \c CASE_LOWER
(default).
 */
function array_change_value_case(array $input, $case = CASE_LOWER) {
switch ($case) {
case CASE_LOWER:
return array_map('strtolower', $input);
break;
case CASE_UPPER:
return array_map('strtoupper', $input);
break;
default:
trigger_error('Case is not valid, CASE_LOWER or 
CASE_UPPER only',
E_USER_ERROR);
return false;
}
}


-- 
Edit bug report at http://bugs.php.net/?id=47276edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47276r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47276r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47276r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47276r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47276r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47276r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47276r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47276r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47276r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47276r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47276r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47276r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47276r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47276r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47276r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47276r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47276r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47276r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47276r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47276r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47276r=mysqlcfg



#46767 [Asn]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread peaceable_whale at hotmail dot com
 ID:   46767
 User updated by:  peaceable_whale at hotmail dot com
 Reported By:  peaceable_whale at hotmail dot com
 Status:   Assigned
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
 Assigned To:  mysql
 New Comment:

Thanks for changing it to Assigned :)


Previous Comments:


[2009-02-02 13:33:57] paj...@php.net

oh my bad, right.

So not related (it must be the 1st report in weeks not related to 5.1
=)

 assigned to mysql



[2009-02-02 13:32:22] peaceable_whale at hotmail dot com

Well, mysqlnd is in use as it is turned on by default in the Windows
builds:

mysqli

MysqlI Support  enabled
Client API library version  mysqlnd 5.0.5-dev - 081106 - $Revision:
1.3.2.21 $
Active Persistent Links 0
Inactive Persistent Links   0
Active Links0 

mysqlnd

mysqlnd enabled
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.21 $
Command buffer size 2048
Read buffer size32768
Collecting statistics   Yes
Collecting memory statisticsNo



[2009-02-02 13:29:48] paj...@php.net

Then be sure that the libmysql provided with php is first in your
PATH.

We do not support the libmysql 5.1, so never ever use it with PHP
binaries.



[2009-02-02 13:26:25] peaceable_whale at hotmail dot com

Yes, MySQL 5.1.30.



[2009-02-02 13:25:41] paj...@php.net

I suppose you have mysql 5.1 right?



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

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



#47271 [NEW]: Datetime::Modify

2009-02-02 Thread mguichar at univ-lr dot fr
From: mguichar at univ-lr dot fr
Operating system: Windows / Linux
PHP version:  5.2.8
PHP Bug Type: Date/time related
Bug description:  Datetime::Modify 

Description:

When I add 1 hour to Datetime Object (using modify function), it's not 1
hour but 2 hour which are added. This bug appear only for date : 2001-03-25
01:03:00 / 2002-03-31 01:03:00 / 2003-03-30 01:03:00 / 2004-03-28 01:03:00
/ 2005-03-27 01:03:00 / 2006-03-26 01:03:00 / 2007-03-25 01:03:00 /
2008-03-30 01:03:00

Reproduce code:
---
$date= date_create('2001-03-25 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

$date= date_create('2002-03-31 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

...

Expected result:

2001-03-25 01:03:00 +1 hour =
2001-03-25 02:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 02:03:00

...

Actual result:
--
2001-03-25 01:03:00 +1 hour =
2001-03-25 03:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 03:03:00

...

-- 
Edit bug report at http://bugs.php.net/?id=47271edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47271r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47271r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47271r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47271r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47271r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47271r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47271r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47271r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47271r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47271r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47271r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47271r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47271r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47271r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47271r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47271r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47271r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47271r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47271r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47271r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47271r=mysqlcfg



#47284 [Opn-Fbk]: Args disappear from exception stack trace (works in 5.3)

2009-02-02 Thread jani
 ID:   47284
 Updated by:   j...@php.net
 Reported By:  the...@php.net
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  5.2.8
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:


[2009-02-02 22:38:33] the...@php.net

Description:

Exception's stacktraces miss the args key in certain situations
(whereas debug_backtrace() will report them).

Reproduce code:
---
php -r 'class Chained extends Exception { function
__construct($message, $cause) { parent::__construct($message);
$this-cause= $cause; }} function raise($message, $cause) { throw new
Chained($message, new Exception($cause)); } try { raise(Arg, Cause);
} catch (Exception $e) { var_dump($e-getTrace(),
$e-cause-getTrace()); }'

Expected result:

Twice this:

array(1) {
  [0]=
  array(4) {
[file]=
string(17) Command line code
[line]=
int(1)
[function]=
string(5) raise
[args]=
array(2) {
  [0]=
  string(3) Arg
  [1]=
  string(5) Cause
}
  }
}


Actual result:
--
array(1) {
  [0]=
  array(4) {
[file]=
string(17) Command line code
[line]=
int(1)
[function]=
string(5) raise
[args]=
array(2) {
  [0]=
  string(3) Arg
  [1]=
  string(5) Cause
}
  }
}
array(1) {
  [0]=
  array(3) {
[file]=
string(17) Command line code
[line]=
int(1)
[function]=
string(5) raise
  }
}

The second array is missing the args key. In PHP 5.3, it's present.





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



#43535 [Com]: parse_ini_file('http://example.com/some.ini') and allow_url_include=off

2009-02-02 Thread stefan dot walk+php at gmail dot com
 ID:   43535
 Comment by:   stefan dot walk+php at gmail dot com
 Reported By:  sskaje at gmail dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: *
 PHP Version:  5.2.5
 New Comment:

I don't see how checking for allow_url_fopen instead of 
allow_url_include is a big change ...


Previous Comments:


[2007-12-12 10:12:07] j...@php.net

This requires changes too big for a bugfix (this is more like a new
feature as such) so most likely this will be in PHP 5.3.0 at earliest.



[2007-12-11 10:01:08] sskaje at gmail dot com

There is a ini file on a http server which has something i need on it.
so i tried to use parse_ini_file() to get the content and parse it.
i set teh 'allow_url_include' Off due to security issue, but i got an
error which said that i must turn it On



[2007-12-10 09:58:56] j...@php.net

And what exactly is the problem you have?
Currently the file opening for this function happens exactly how a
script is opened and I don't think there's anything wrong with that.



[2007-12-08 13:53:09] sskaje at gmail dot com

Description:

parse_ini_file() should not be configured with allow_url_include in
php.ini but allow_url_fopen
that make me cant directly parse the ini file on http server

Expected result:

nothing

Actual result:
--
nothing





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



#47282 [Opn-Ver]: FILTER_VALIDATE_EMAIL is marking potentially valid emails as invalid

2009-02-02 Thread jani
 ID:   47282
 Updated by:   j...@php.net
 Reported By:  jachin at clockwork dot net
-Status:   Open
+Status:   Verified
 Bug Type: Filter related
-Operating System: Gentoo
+Operating System: *
-PHP Version:  5.2.8
+PHP Version:  5.*,6 CVS-2009-02-02
 New Comment:

Note: the expected = actual result and actual = expected in above 
report.


Previous Comments:


[2009-02-02 21:56:18] jachin at clockwork dot net

Description:

I tried to refractor email validation code to use the 
FILTER_VALIDATE_EMAIL filter instead of a regex. Our Unit tests failed,

because it marked the following email addresses as invalid:

e.x.a.m.p.l...@example.com
a...@com






Reproduce code:
---
?php

$wacky_but_valid_emails[] = 'e.x.a.m.p.l...@example.com';
$wacky_but_valid_emails[] = 'a...@com';


foreach( $wacky_but_valid_emails as $email ) {
print $email : ;
$result = filter_var($email, FILTER_VALIDATE_EMAIL );
var_dump($result);
}

?

Expected result:

e.x.a.m.p.l...@example.com : bool(false)
a...@com : bool(false)

Actual result:
--
e.x.a.m.p.l...@example.com : string(e.x.a.m.p.l...@example.com)
a...@com : string(a...@com)





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



#47278 [Opn-Bgs]: preg_match behaves different to version 4.4.4

2009-02-02 Thread jani
 ID:   47278
 Updated by:   j...@php.net
 Reported By:  franklyn dot santana at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: PCRE related
 Operating System: Windows 2003 Server
 PHP Version:  5.2.8
 New Comment:

Hint: PREG_BACKTRACK_LIMIT_ERROR




Previous Comments:


[2009-02-02 20:46:12] fel...@php.net

Check preg_last_error().
http://docs.php.net/manual/en/function.preg-last-error.php



[2009-02-02 20:30:13] franklyn dot santana at gmail dot com

I read somewhere (right now I don't remember where) there is problem
with long regular expressions in php5. Is that true? I made the regular
expression shorter, now the script works (with some limitations due to
the short regex).



[2009-02-02 13:44:58] franklyn dot santana at gmail dot com

Description:

I have a code for url rewrite, I use the preg_match function to
separate the GET parameters.

The code works fine in PHP 4.4.4, I get a matches array with the GET
parameters. But it doesn't work on PHP 5.28, the matches array is
empty.

I was checking the documentation and It seems there are not changes on
this function. 

Reproduce code:
---
$url=http://localhost/test+param-2009.html;;

preg_match(/\/[^+]*\+?[^+]+\++([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)\.html/i, $url,
$parameters);

 print_r($parameters)


Expected result:

/*tested on PHP 4.4.4
Array ( [0] = //localhost/test+param-2009.html [1] = param [2] =
2009 [3] = [4] = [5] = [6] = [7] = [8] = [9] = [10] = [11] =
[12] = [13] = [14] = [15] = [16] = [17] = [18] = [19] = [20] =
) 

Actual result:
--
Array ( ) 





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



#47278 [NEW]: preg_match behaves different to version 4.4.4

2009-02-02 Thread franklyn dot santana at gmail dot com
From: franklyn dot santana at gmail dot com
Operating system: Windows 2003 Server
PHP version:  5.2.8
PHP Bug Type: *Regular Expressions
Bug description:  preg_match behaves different to version 4.4.4

Description:

I have a code for url rewrite, I use the preg_match function to separate
the GET parameters.

The code works fine in PHP 4.4.4, I get a matches array with the GET
parameters. But it doesn't work on PHP 5.28, the matches array is empty.

I was checking the documentation and It seems there are not changes on
this function. 

Reproduce code:
---
$url=http://localhost/test+param-2009.html;;

preg_match(/\/[^+]*\+?[^+]+\++([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)\.html/i, $url,
$parameters);

 print_r($parameters)


Expected result:

/*tested on PHP 4.4.4
Array ( [0] = //localhost/test+param-2009.html [1] = param [2] = 2009
[3] = [4] = [5] = [6] = [7] = [8] = [9] = [10] = [11] = [12] =
[13] = [14] = [15] = [16] = [17] = [18] = [19] = [20] = ) 

Actual result:
--
Array ( ) 

-- 
Edit bug report at http://bugs.php.net/?id=47278edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47278r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47278r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47278r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47278r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47278r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47278r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47278r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47278r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47278r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47278r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47278r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47278r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47278r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47278r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47278r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47278r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47278r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47278r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47278r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47278r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47278r=mysqlcfg



#46767 [Bgs]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread peaceable_whale at hotmail dot com
 ID:   46767
 User updated by:  peaceable_whale at hotmail dot com
 Reported By:  peaceable_whale at hotmail dot com
 Status:   Bogus
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
 New Comment:

Well, mysqlnd is in use as it is turned on by default in the Windows
builds:

mysqli

MysqlI Support  enabled
Client API library version  mysqlnd 5.0.5-dev - 081106 - $Revision:
1.3.2.21 $
Active Persistent Links 0
Inactive Persistent Links   0
Active Links0 

mysqlnd

mysqlnd enabled
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.21 $
Command buffer size 2048
Read buffer size32768
Collecting statistics   Yes
Collecting memory statisticsNo


Previous Comments:


[2009-02-02 13:29:48] paj...@php.net

Then be sure that the libmysql provided with php is first in your
PATH.

We do not support the libmysql 5.1, so never ever use it with PHP
binaries.



[2009-02-02 13:26:25] peaceable_whale at hotmail dot com

Yes, MySQL 5.1.30.



[2009-02-02 13:25:41] paj...@php.net

I suppose you have mysql 5.1 right?



[2009-02-02 13:16:12] peaceable_whale at hotmail dot com

Continue to have this problem in PHP 5.3.0 Beta 1; Reproducible in IIS
7.



[2008-12-06 06:42:20] peaceable_whale at hotmail dot com

The error can be reproduced with all PHP-Windows versions--VC6 TS and
NTS, VC9 TS and NTS. I suspect it is mysqlnd related.



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

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



#47278 [Bgs]: preg_match behaves different to version 4.4.4

2009-02-02 Thread franklyn dot santana at gmail dot com
 ID:   47278
 User updated by:  franklyn dot santana at gmail dot com
 Reported By:  franklyn dot santana at gmail dot com
 Status:   Bogus
 Bug Type: PCRE related
 Operating System: Windows 2003 Server
 PHP Version:  5.2.8
 New Comment:

yes, I didn't know there was a PREG_BACKTRACK_LIMIT_ERROR option at
php.ini in php5. I had to set it to 50 for the script to work.
Thanks people :D


Previous Comments:


[2009-02-02 23:23:54] j...@php.net

Hint: PREG_BACKTRACK_LIMIT_ERROR





[2009-02-02 20:46:12] fel...@php.net

Check preg_last_error().
http://docs.php.net/manual/en/function.preg-last-error.php



[2009-02-02 20:30:13] franklyn dot santana at gmail dot com

I read somewhere (right now I don't remember where) there is problem
with long regular expressions in php5. Is that true? I made the regular
expression shorter, now the script works (with some limitations due to
the short regex).



[2009-02-02 13:44:58] franklyn dot santana at gmail dot com

Description:

I have a code for url rewrite, I use the preg_match function to
separate the GET parameters.

The code works fine in PHP 4.4.4, I get a matches array with the GET
parameters. But it doesn't work on PHP 5.28, the matches array is
empty.

I was checking the documentation and It seems there are not changes on
this function. 

Reproduce code:
---
$url=http://localhost/test+param-2009.html;;

preg_match(/\/[^+]*\+?[^+]+\++([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?.
([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)\.html/i, $url,
$parameters);

 print_r($parameters)


Expected result:

/*tested on PHP 4.4.4
Array ( [0] = //localhost/test+param-2009.html [1] = param [2] =
2009 [3] = [4] = [5] = [6] = [7] = [8] = [9] = [10] = [11] =
[12] = [13] = [14] = [15] = [16] = [17] = [18] = [19] = [20] =
) 

Actual result:
--
Array ( ) 





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



#47263 [Fbk-Opn]: xmlrpc_set_type() doesn't respect timezone settings

2009-02-02 Thread daniel dot oconnor at gmail dot com
 ID:  47263
 User updated by: daniel dot oconnor at gmail dot com
 Reported By: daniel dot oconnor at gmail dot com
-Status:  Feedback
+Status:  Open
 Bug Type:XMLRPC-EPI related
 PHP Version: 5.2.8
 New Comment:

Windows: working happily now


C:\php -v
PHP 5.2.9-dev (cli) (built: Feb  2 2009 11:39:58)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

C:\php 147263.php
20060116T19:14:03
1137438843
1137438843
2006-01-16 19:14:03
2006-01-16 19:14:03
C:\


Previous Comments:


[2009-02-02 21:29:38] j...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/





[2009-02-01 16:12:37] daniel dot oconnor at gmail dot com

Description:

xmlrpc_set_type() doesn't appear to respect my timezone settings 

(alternatively, it should parse everything as GMT/UTC?)

Tested on 5.2.6  5.2.8

Reproduce code:
---
?php
date_default_timezone_set('UTC');

$time = time();
$date = date(Y-m-dTH:i:s, $time) . \n;
$date = 20060116T19:14:03;
$time = strtotime($date);

print $date . \n;
print $time . \n;

$xmlrpc_date = (string)$date;

xmlrpc_set_type($xmlrpc_date, 'datetime');
print $xmlrpc_date-timestamp . \n;;

print date(Y-m-d H:i:s, $time) . \n;
print date(Y-m-d H:i:s, $xmlrpc_date-timestamp);

/* 5.2.6 / ubuntu says:
20060116T19:14:03
1137438843
1137401043
2006-01-16 19:14:03
2006-01-16 08:44:03
*/

Expected result:

20060116T19:14:03
1137438843
1137438843
2006-01-16 19:14:03
2006-01-16 19:14:03

Actual result:
--
20060116T19:14:03
1137438843
1137401043
2006-01-16 19:14:03
2006-01-16 08:44:03





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



#46767 [Opn-Bgs]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread pajoye
 ID:   46767
 Updated by:   paj...@php.net
 Reported By:  peaceable_whale at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
 New Comment:

Then be sure that the libmysql provided with php is first in your
PATH.

We do not support the libmysql 5.1, so never ever use it with PHP
binaries.


Previous Comments:


[2009-02-02 13:26:25] peaceable_whale at hotmail dot com

Yes, MySQL 5.1.30.



[2009-02-02 13:25:41] paj...@php.net

I suppose you have mysql 5.1 right?



[2009-02-02 13:16:12] peaceable_whale at hotmail dot com

Continue to have this problem in PHP 5.3.0 Beta 1; Reproducible in IIS
7.



[2008-12-06 06:42:20] peaceable_whale at hotmail dot com

The error can be reproduced with all PHP-Windows versions--VC6 TS and
NTS, VC9 TS and NTS. I suspect it is mysqlnd related.



[2008-12-05 15:17:13] peaceable_whale at hotmail dot com

Description:

Server: IIS 5.1 with the official FastCGI plugin installed

When connecting to a MySQL server with PHP 5.3 Alpha 3, the following
error is returned:

FastCGI Error
The FastCGI Handler was unable to process the request.

Error Details:

* The FastCGI process exceeded configured activity timeout
* Error Number: 258 (0x80070102).
* Error Description: The wait operation timed out.

HTTP Error 500 - Server Error.
Internet Information Services (IIS)

PHP 5.2.7 on the same system does not have the problem.

Reproduce code:
---
Install phpMyAdmin and use it to login to a MySQL server, client API is
not a concern because both MySQL and MySQLi yield the same error.

Expected result:

View the database successfully

Actual result:
--
Error returned





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



#47282 [Ver-Csd]: FILTER_VALIDATE_EMAIL is marking valid email addresses as invalid

2009-02-02 Thread iliaa
 ID:   47282
 Updated by:   il...@php.net
 Reported By:  jachin at clockwork dot net
-Status:   Verified
+Status:   Closed
 Bug Type: Filter related
 Operating System: *
 PHP Version:  5.*,6 CVS-2009-02-02
 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:


[2009-02-02 23:18:41] j...@php.net

Note: the expected = actual result and actual = expected in above 
report.



[2009-02-02 21:56:18] jachin at clockwork dot net

Description:

I tried to refractor email validation code to use the 
FILTER_VALIDATE_EMAIL filter instead of a regex. Our Unit tests failed,

because it marked the following email addresses as invalid:

e.x.a.m.p.l...@example.com
a...@com






Reproduce code:
---
?php

$wacky_but_valid_emails[] = 'e.x.a.m.p.l...@example.com';
$wacky_but_valid_emails[] = 'a...@com';


foreach( $wacky_but_valid_emails as $email ) {
print $email : ;
$result = filter_var($email, FILTER_VALIDATE_EMAIL );
var_dump($result);
}

?

Expected result:

e.x.a.m.p.l...@example.com : bool(false)
a...@com : bool(false)

Actual result:
--
e.x.a.m.p.l...@example.com : string(e.x.a.m.p.l...@example.com)
a...@com : string(a...@com)





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



#46767 [Asn-Fbk]: FastCGI Error is returned when connecting to a MySQL server with PHP 5.3 Alpha3

2009-02-02 Thread johannes
 ID:   46767
 Updated by:   johan...@php.net
 Reported By:  peaceable_whale at hotmail dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: MySQLi related
 Operating System: win32 only
 PHP Version:  5.3.0alpha3
 Assigned To:  mysql
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ?php and ends with ?,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Does a simple mysql_connect() or mysqli_connect() work? Do simple
queries work? Do other applications than phpMyAdmin work?


Previous Comments:


[2009-02-02 13:35:42] peaceable_whale at hotmail dot com

Thanks for changing it to Assigned :)



[2009-02-02 13:33:57] paj...@php.net

oh my bad, right.

So not related (it must be the 1st report in weeks not related to 5.1
=)

 assigned to mysql



[2009-02-02 13:32:22] peaceable_whale at hotmail dot com

Well, mysqlnd is in use as it is turned on by default in the Windows
builds:

mysqli

MysqlI Support  enabled
Client API library version  mysqlnd 5.0.5-dev - 081106 - $Revision:
1.3.2.21 $
Active Persistent Links 0
Inactive Persistent Links   0
Active Links0 

mysqlnd

mysqlnd enabled
Version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.21 $
Command buffer size 2048
Read buffer size32768
Collecting statistics   Yes
Collecting memory statisticsNo



[2009-02-02 13:29:48] paj...@php.net

Then be sure that the libmysql provided with php is first in your
PATH.

We do not support the libmysql 5.1, so never ever use it with PHP
binaries.



[2009-02-02 13:26:25] peaceable_whale at hotmail dot com

Yes, MySQL 5.1.30.



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

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



#47285 [NEW]: strtotime() still leaks memory

2009-02-02 Thread danger at FreeBSD dot org
From: danger at FreeBSD dot org
Operating system: FreeBSD
PHP version:  5.2.8
PHP Bug Type: Date/time related
Bug description:  strtotime() still leaks memory

Description:

The strtotime() function still leaks memory in patched PHP 5.2.8 after
applying patches from http://news.php.net/php.cvs/55000. The memory leak
itself is much smaller than before applying fixes. Before, it took a few
seconds to leak 1gb of mem, now it takes some minutes however it's still
there.

This bug is related to http://bugs.php.net/bug.php?id=46889.

Reproduce code:
---
while (true)
{
   $tmp = inc_stamp(time(), 1);
}

function inc_stamp($timestamp, $off_days)
{
   return strtotime(+ . $off_days .  day, $timestamp);
}

Actual result:
--
Memory leak reported by top(1). If the script runs for longer time, it
gets killed by kernel since the system is going out of memory and swap.

-- 
Edit bug report at http://bugs.php.net/?id=47285edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47285r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47285r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47285r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47285r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47285r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47285r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47285r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47285r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47285r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47285r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47285r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47285r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47285r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47285r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47285r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47285r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47285r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47285r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47285r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47285r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47285r=mysqlcfg



#47286 [NEW]: oci8 and pdo_oci aren't in f5.3.0B1 builds

2009-02-02 Thread christopher dot jones at oracle dot com
From: christopher dot jones at oracle dot com
Operating system: Windows
PHP version:  5.3.0beta1
PHP Bug Type: Unknown/Other Function
Bug description:  oci8 and pdo_oci aren't in f5.3.0B1 builds

Description:

The 5.3.0beta1 bundles from http://windows.php.net/qa/ are
missing php_oci8.dll, php_oci8_11g.dll and pdo_oci.dll.  
These extensions are present in the PHP 5.3 snaps on
http://windows.php.net/snapshots/



-- 
Edit bug report at http://bugs.php.net/?id=47286edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47286r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47286r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47286r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47286r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47286r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47286r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47286r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47286r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47286r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47286r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47286r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47286r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47286r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47286r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47286r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47286r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47286r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47286r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47286r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47286r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47286r=mysqlcfg



#47243 [Asn]: oci_fetch_assoc() causes Apache 2.2.11 crashed and restarted (SQL CURSOR)

2009-02-02 Thread sixd
 ID:   47243
 Updated by:   s...@php.net
 Reported By:  pcdinh at gmail dot com
 Status:   Assigned
 Bug Type: OCI8 related
 Operating System: Windows XP SP3
 PHP Version:  5.3.0beta1
 Assigned To:  sixd
 New Comment:

Reproduces on Windows.  Also crashes with --enable-maintainer-zts mode
on Linux


Previous Comments:


[2009-01-30 04:47:03] kureikain at gmail dot com

I don't think that is a bug!I have ever had same problem(MySQL)!Because
i used wrong version of libmysql.dll!I copied frm XAMPP to System32!
when i install PHP from zip package,i forget to overwrite libmysql.dll
in system32!Apache keep crashing whenever PHP execs query



[2009-01-29 19:19:15] pcdinh at gmail dot com

Description:

I wrote code to retrieve data that was returned from a query with
Oracle cursor. However oci_fetch_assoc() causes Apache 2.2.11 being
crashed and restarted. I am not sure if it is a Oracle client native
library or OCI8 issue.

Reproduce code:
---
?php

$conn = oci_connect(hr, hr, 'xe');

$sql  = SELECT department_id, department_name, CURSOR(SELECT
COUNT(employee_id) num_empl
  FROM employees e
  WHERE
e.department_id = d.department_id) AS empl_count
 FROM departments d;
$stmt = oci_parse($conn, $sql);

oci_execute($stmt);

while ($data = oci_fetch_assoc($stmt))
{

}

oci_free_statement($stmt);
oci_close($conn);
?


Expected result:

Those code is a slightly modified version taken from PHP Manual
http://vn2.php.net/oci_new_cursor

It should be executed without any crash and data can be retrieved
normally (as guided by PHP Manual)

Actual result:
--
Apache crashes and restarts

Type of Analysis Performed   Crash Analysis 
Machine Name   HOME-4F44218659 
Operating System   Windows XP Service Pack 3 
Number Of Processors   2 
Process ID   2200 
Process Image   C:\server\Apache2.2\bin\httpd.exe 
System Up-Time   10:12:12 
Process Up-Time   00:01:07 


Thread 169 - System ID 2128
Entry point   msvcrt!endthreadex+3a 
Create time   1/30/2009 1:57:53 AM 
Time spent in user mode   0 Days 0:0:0.15 
Time spent in kernel mode   0 Days 0:0:0.93 






Function Arg 1 Arg 2 Arg 3   Source 
OraClient10!kpufhndl0+33 4e5f544e 0002 
OraClient10!kpufhndl+10 4e5f544e 0002 049ff9e8
OraClient10!OCIHandleFree+1a 4e5f544e 0002 0084eef0   

oci!OCIHandleFree+1d 4e5f544e 0002 01b8a9d8
php_oci8!php_oci_statement_free+121 05ecf448 01b8a9d8
0083aa23
php_oci8!php_oci_statement_list_dtor+11 05ed09b8 01b8a9d8
01be5278
php5ts!list_entry_destructor+43 05ed09b8 01b8a9d8 05ed0988 
  
php5ts!zend_hash_apply_deleter+97 01be5278 05ed0988
01b8a9d8
php5ts!zend_hash_apply_with_argument+5a 01be5278 01976a90
0022
php_oci8!zm_deactivate_oci+8a 0001 0029 01b8a9d8   

php5ts!module_registry_cleanup+1c 00fd4ec8 01b8a9d8
01b8a9d8
php5ts!zend_hash_apply+40 00cd7340 007882c0 01b8a9d8
php5ts!zend_deactivate_modules+62 049fffa4 
56433230
php5ts!zend_deactivate_modules+48 01b82a01 
05ecc7c0
php5ts!php_end_ob_buffers+26 01b8a9d8 0073a040 01b8a9d8   

php5ts!php_request_shutdown+247  00622fb6 01b82a18 
  
php5apache2_2!php_apache_request_dtor+8 01b82a18 01b8a9d8
0005
php5apache2_2!php_handler+646 01b82a18 0073a040 01b82a18   

libhttpd!ap_run_handler+21 01b82a18 01b82a18 01b82a18
libhttpd!ap_invoke_handler+ae  01b7d9c0 049fff38   

libhttpd!ap_die+29e 01b82a18  007447a8
libhttpd!ap_get_request_note+1c9c 01b7d9c0 01b7d9c0
01b7d9c0
libhttpd!ap_run_process_connection+21 01b7d9c0 007121e8
049fff80
libhttpd!ap_process_connection+33 01b7d9c0 01b76990
00e4
libhttpd!ap_regkey_value_remove+c7c 01b7d9b8 00e4
00e8
msvcrt!endthreadex+a9 01b73958 00e4 00e8
kernel32!GetModuleFileNameA+1b4 77c3a341 01b73958  
  




ORACLIENT10!KPUFHNDL0+33WARNING - DebugDiag was not able to locate
debug symbols for OraClient10.Dll, so the information below may be
incomplete.



In
httpd__PID__2200__Date__01_30_2009__Time_01_59_00AM__328__Second_Chance_Exception_C005.dmp
the assembly instruction at OraClient10!kpufhndl0+33 in
C:\oraclexe\app\oracle\product\10.2.0\server\BIN\OraClient10.Dll from
Oracle Corporation has caused an access violation exception (0xC005)
when trying to read from memory location 0x4e5f544e on thread 169

Module 

#47269 [Opn-Csd]: Typo: SoapSlient instead of SoapClient

2009-02-02 Thread felipe
 ID:   47269
 Updated by:   fel...@php.net
 Reported By:  php at koterov dot ru
-Status:   Open
+Status:   Closed
 Bug Type: SOAP related
 Operating System: all
 PHP Version:  5.2.8
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2009-02-02 09:11:06] php at koterov dot ru

Description:

In various extension error messages, e.g.

Uncaught SoapFault exception: [Client] SoapSlient::__doRequest()
returned non string value

You see, SoapSlient instead of SoapClient.

If you search by SoapSlient over the extension source code, you will
find all matches.






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



#47271 [Opn]: Datetime::Modify

2009-02-02 Thread mguichar at univ-lr dot fr
 ID:   47271
 User updated by:  mguichar at univ-lr dot fr
 Reported By:  mguichar at univ-lr dot fr
 Status:   Open
 Bug Type: Date/time related
 Operating System: Windows / Linux
 PHP Version:  5.2.8
 New Comment:

Same bug with date :
1998/03/29
1999/03/28
2000/03/26
and probably for each year before 1998 !


Previous Comments:


[2009-02-02 09:58:42] mguichar at univ-lr dot fr

Description:

When I add 1 hour to Datetime Object (using modify function), it's not
1 hour but 2 hour which are added. This bug appear only for date :
2001-03-25 01:03:00 / 2002-03-31 01:03:00 / 2003-03-30 01:03:00 /
2004-03-28 01:03:00 / 2005-03-27 01:03:00 / 2006-03-26 01:03:00 /
2007-03-25 01:03:00 / 2008-03-30 01:03:00

Reproduce code:
---
$date= date_create('2001-03-25 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

$date= date_create('2002-03-31 01:03:00');
echo $date-format(Y-m-d H:m:s). +1 hour =\n;
$date-modify(+1 hour);
echo $date-format(Y-m-d H:m:s).\n\n;

...

Expected result:

2001-03-25 01:03:00 +1 hour =
2001-03-25 02:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 02:03:00

...

Actual result:
--
2001-03-25 01:03:00 +1 hour =
2001-03-25 03:03:00

2002-03-31 01:03:00 +1 hour =
2002-03-31 03:03:00

...





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



#47272 [Com]: Library test for external Mysql misses -lrt and fails

2009-02-02 Thread yannick dot leny at atosorigin dot com
 ID:   47272
 Comment by:   yannick dot leny at atosorigin dot com
 Reported By:  yannick dot leny at atosorigin dot com
 Status:   Open
 Bug Type: Compile Failure
 Operating System: Sun Solaris 8 (SunOS 5.8)
 PHP Version:  5.2.8
 New Comment:

I try ld from Sun Solaris 8 Sparc and ld from GNU binutils 2.17 but
with no success.

#/usr/ccs/bin/ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.289

#/usr/local/bin/ld -V
GNU ld version 2.17
  Supported emulations:
   elf32_sparc
   elf64_sparc


Previous Comments:


[2009-02-02 10:00:53] yannick dot leny at atosorigin dot com

Description:

The library test for external Mysql static libraries fails on Solaris 8
(Sparc CPU) as it does not include -lrt and consequently always fails.

I found the same problem with Sqlite3 here :
http://bugs.php.net/bug.php?id=41794

And I try the workaround to add LDFLAGS=-lrt but it don't works.
I have a linking error when libtool try to create the libphp5.la file
:
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
I try ld from Sun Solaris and ld from binutils but with no success



I use :
 autoconf-2.63 
 automake-1.10.2 
 bison-2.4.1 
 coreutils-6.12 
 flex-2.5.35 
 gcc-3.4.6 
 libiconv-1.11 
 libintl-3.4.0 
 libsigsegv-2.6 
 libtool-1.5.24 
 m4-1.4.12 
 make-3.81 
 perl-5.8.8
 pkgconfig-0.23


Reproduce code:
---
Configure parameters :

CFLAGS=-O3 -mcpu=ultrasparc -mtune=ultrasparc CC=gcc CXX=gcc \
CPPFLAGS=-I/opt/apache-2.2.11/lib/openssl-0.9.8j/\
include/openssl \
-I/opt/apache-2.2.11/lib/openldap-2.4.11/include \
-I/opt/apache-2.2.11/lib/libxml2-2.6.32/include \
LDFLAGS=-R/opt/apache-2.2.11/lib/libgcc-3.4.2/lib \
-R/opt/apache-2.2.11/lib/oracle-10.2.0.4/lib \
-L/opt/apache-2.2.11/lib/libgcc-3.4.2/lib \
-L/opt/apache-2.2.11/lib/openssl-0.9.8j/lib \
-L/opt/apache-2.2.11/lib/openldap-2.4.11/lib \
-L/opt/apache-2.2.11/lib/libxml2-2.6.32/lib \
./configure \
--prefix=/opt/apache-2.2.11/php-5.2.8 \
--with-apxs2=/opt/apache-2.2.11/bin/apxs \
--with-config-file-path=/opt/apache-2.2.11/php-5.2.8 \
--with-libxml-dir=/opt/apache-2.2.11/lib/\
libxml2-2.6.32 \
--with-openssl=/opt/apache-2.2.11/lib/openssl-0.9.8j \
--with-pcre-regex \
--with-zlib=/opt/apache-2.2.11/lib/zlib-1.2.3 \
--with-bz2=shared,/opt/apache-2.2.11/lib/\
bzip2-1.0.5 \
--enable-calendar \
--enable-ctype \
--with-curl=shared,/opt/apache-2.2.11/lib/curl-7.19.3
--enable-dom \
--enable-filter \
--enable-ftp \
--with-gd \
--with-jpeg-dir=/opt/apache-2.2.11/lib/jpeg-6b \
--with-png-dir=/opt/apache-2.2.11/lib/libpng-1.2.34 \
--with-ttf=/usr \
--with-freetype-dir=/opt/apache-2.2.11/lib/\
freetype-2.3.8 \
--enable-gd-native-ttf \
--enable-hash \
--with-gettext=shared,/opt/apache-2.2.11/lib/\
gettext-0.17 \
--with-iconv-dir=/opt/apache-2.2.11/lib/libiconv-1.12 \
--enable-json \
--with-ldap=/opt/apache-2.2.11/lib/openldap-2.4.11 \
--enable-mbstring=shared \
--with-mcrypt=shared,/opt/apache-2.2.11/lib/\
libmcrypt-2.5.8 \
--with-mysql=shared,/opt/apache-2.2.11/lib/mysql-5.1.30 \
--with-mysqli=/opt/apache-2.2.11/lib/\
mysql-5.1.30/bin/mysql_config \
--with-oci8=shared,/opt/apache-2.2.11/lib/\
oracle-10.2.0.4 \
--enable-pdo \
--with-pdo-mysql=shared,/opt/apache-2.2.11/lib/mysql-5.1.30 \
--with-pdo-oci=shared,/opt/apache-2.2.11/lib/oracle-10.2.0.4 \
--without-pdo-sqlite \
--enable-posix \
--enable-reflection \
--enable-session \
--with-mm=/opt/apache-2.2.11/lib/mm-1.4.2 \
--enable-simplexml \
--enable-soap \
--enable-sockets \
--enable-spl \
--without-sqlite \
--enable-tokenizer \
--enable-xml \
--enable-xmlreader \
--enable-xmlwriter \
--with-xsl=shared,/opt/apache-2.2.11/lib/\
libxslt-1.1.24 \
--enable-zip=shared \
--disable-static --enable-shared --with-pic


1) Configure error because PHP configure don't use -lrt option 

*snip*
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for
more information.
make: Fatal error: No arguments to build


config.log:
configure:56417: checking for mhash support
configure:56901: checking whether to include mime_magic support
configure:57267: checking for MING support
configure:58507: checking for mSQL support
configure:59028: checking for MSSQL support via FreeTDS
configure:59689: checking for MySQL support
configure:59736: checking for specified location of the MySQL UNIX
socket
configure:59794: checking for MySQL UNIX socket location
configure:59985: checking for mysql_close in -lmysqlclient
configure:60004: gcc -o conftest 

#47272 [NEW]: Library test for external Mysql misses -lrt and fails

2009-02-02 Thread yannick dot leny at atosorigin dot com
From: yannick dot leny at atosorigin dot com
Operating system: Sun Solaris 8 (SunOS 5.8)
PHP version:  5.2.8
PHP Bug Type: Compile Failure
Bug description:  Library test for external Mysql misses -lrt and fails

Description:

The library test for external Mysql static libraries fails on Solaris 8
(Sparc CPU) as it does not include -lrt and consequently always fails.

I found the same problem with Sqlite3 here :
http://bugs.php.net/bug.php?id=41794

And I try the workaround to add LDFLAGS=-lrt but it don't works.
I have a linking error when libtool try to create the libphp5.la file :
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
I try ld from Sun Solaris and ld from binutils but with no success



I use :
 autoconf-2.63 
 automake-1.10.2 
 bison-2.4.1 
 coreutils-6.12 
 flex-2.5.35 
 gcc-3.4.6 
 libiconv-1.11 
 libintl-3.4.0 
 libsigsegv-2.6 
 libtool-1.5.24 
 m4-1.4.12 
 make-3.81 
 perl-5.8.8
 pkgconfig-0.23


Reproduce code:
---
Configure parameters :

CFLAGS=-O3 -mcpu=ultrasparc -mtune=ultrasparc CC=gcc CXX=gcc \
CPPFLAGS=-I/opt/apache-2.2.11/lib/openssl-0.9.8j/\
include/openssl \
-I/opt/apache-2.2.11/lib/openldap-2.4.11/include \
-I/opt/apache-2.2.11/lib/libxml2-2.6.32/include \
LDFLAGS=-R/opt/apache-2.2.11/lib/libgcc-3.4.2/lib \
-R/opt/apache-2.2.11/lib/oracle-10.2.0.4/lib \
-L/opt/apache-2.2.11/lib/libgcc-3.4.2/lib \
-L/opt/apache-2.2.11/lib/openssl-0.9.8j/lib \
-L/opt/apache-2.2.11/lib/openldap-2.4.11/lib \
-L/opt/apache-2.2.11/lib/libxml2-2.6.32/lib \
./configure \
--prefix=/opt/apache-2.2.11/php-5.2.8 \
--with-apxs2=/opt/apache-2.2.11/bin/apxs \
--with-config-file-path=/opt/apache-2.2.11/php-5.2.8 \
--with-libxml-dir=/opt/apache-2.2.11/lib/\
libxml2-2.6.32 \
--with-openssl=/opt/apache-2.2.11/lib/openssl-0.9.8j \
--with-pcre-regex \
--with-zlib=/opt/apache-2.2.11/lib/zlib-1.2.3 \
--with-bz2=shared,/opt/apache-2.2.11/lib/\
bzip2-1.0.5 \
--enable-calendar \
--enable-ctype \
--with-curl=shared,/opt/apache-2.2.11/lib/curl-7.19.3
--enable-dom \
--enable-filter \
--enable-ftp \
--with-gd \
--with-jpeg-dir=/opt/apache-2.2.11/lib/jpeg-6b \
--with-png-dir=/opt/apache-2.2.11/lib/libpng-1.2.34 \
--with-ttf=/usr \
--with-freetype-dir=/opt/apache-2.2.11/lib/\
freetype-2.3.8 \
--enable-gd-native-ttf \
--enable-hash \
--with-gettext=shared,/opt/apache-2.2.11/lib/\
gettext-0.17 \
--with-iconv-dir=/opt/apache-2.2.11/lib/libiconv-1.12 \
--enable-json \
--with-ldap=/opt/apache-2.2.11/lib/openldap-2.4.11 \
--enable-mbstring=shared \
--with-mcrypt=shared,/opt/apache-2.2.11/lib/\
libmcrypt-2.5.8 \
--with-mysql=shared,/opt/apache-2.2.11/lib/mysql-5.1.30 \
--with-mysqli=/opt/apache-2.2.11/lib/\
mysql-5.1.30/bin/mysql_config \
--with-oci8=shared,/opt/apache-2.2.11/lib/\
oracle-10.2.0.4 \
--enable-pdo \
--with-pdo-mysql=shared,/opt/apache-2.2.11/lib/mysql-5.1.30 \
--with-pdo-oci=shared,/opt/apache-2.2.11/lib/oracle-10.2.0.4 \
--without-pdo-sqlite \
--enable-posix \
--enable-reflection \
--enable-session \
--with-mm=/opt/apache-2.2.11/lib/mm-1.4.2 \
--enable-simplexml \
--enable-soap \
--enable-sockets \
--enable-spl \
--without-sqlite \
--enable-tokenizer \
--enable-xml \
--enable-xmlreader \
--enable-xmlwriter \
--with-xsl=shared,/opt/apache-2.2.11/lib/\
libxslt-1.1.24 \
--enable-zip=shared \
--disable-static --enable-shared --with-pic


1) Configure error because PHP configure don't use -lrt option 

*snip*
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more
information.
make: Fatal error: No arguments to build


config.log:
configure:56417: checking for mhash support
configure:56901: checking whether to include mime_magic support
configure:57267: checking for MING support
configure:58507: checking for mSQL support
configure:59028: checking for MSSQL support via FreeTDS
configure:59689: checking for MySQL support
configure:59736: checking for specified location of the MySQL UNIX socket
configure:59794: checking for MySQL UNIX socket location
configure:59985: checking for mysql_close in -lmysqlclient
configure:60004: gcc -o conftest -I/usr/local/include -O3 -mcpu=ultrasparc
-mtune=ultrasparc -I/opt/apache-2.2.11/lib/openssl-0.9.8j/include/openssl
 -I/opt/apache-2.2.11/lib/openldap-2.4.11/include
-I/opt/apache-2.2.11/lib/libxml2-2.6.32/include
-I/opt/apache-2.2.11/lib/curl-
7.19.3/include -D_POSIX_PTHREAD_SEMANTICS
-R/opt/apache-2.2.11/lib/mysql-5.1.30/lib/mysql
-L/opt/apache-2.2.11/lib/mysql-5.1.30/lib/mysql
-liconv -L/usr/local/lib -R/opt/apache-2.2.11/lib/libgcc-3.4.6/lib

#47287 [NEW]: Accessing non existant body element cause segfault

2009-02-02 Thread msiekkinen at gmail dot com
From: msiekkinen at gmail dot com
Operating system: CentOS 5.2
PHP version:  5.2CVS-2009-02-03 (snap)
PHP Bug Type: Reproducible crash
Bug description:  Accessing non existant body element cause segfault

Description:

OS

Linux myserver 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008
x86_64 x86_64 x86_64 GNU/Linux

CentOS release 5.2 (Final)

PHP

PHP 5.2.4 (cli) (built: Nov 14 2008 11:28:15)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Tidy

Tidy support = enabled
libTidy Release = 18 March 2008
Extension Version = 2.0 ($Id: tidy.c,v 1.66.2.8.2.23 2007/05/04 17:11:05
nlopess Exp $)


Calling tidy's body() method when none is present results in a segfault

Reproduce code:
---
$text='!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN
html
headtitleAssistant (Legal issues) m/w/title
/head
frameset name=frameset framespacing=0 border=falseframeborder=0
rows=41,*,25
noframes /noframes
frame scrolling=no name=oben src=/viewjob_header.php?jid=45482
frame scrolling=auto name=anzeige src=/viewjob_main.php?jid=45482
frame scrolling=no name=unten src=/viewjob_footer.php?jid=45482
/frameset';

$tidy = new tidy();
$tidyConfig=array('char-encoding'='utf8','input-encoding'='utf8','output-
bom'='false','output-encoding'='utf8');

$tidy-parseString(file_get_contents('wtf.html'),$tidyConfig,'utf8');

print Parsed it at least\n;
$tidy-CleanRepair();
print Repaired\n;
$body = $tidy-body();
print This message will not see the light of day;
var_dump($body);

Expected result:

I would expect it to run through and output *something* in the var_dump(),
but it segfaults before it can get that far.

Actual result:
--
#0 0x00cd86aa in tidyGetChild () from /usr/local/lib/libtidy-0.99.so.0
#1 0x082d8495 in tidy_add_default_properties (obj=0xb7439358,
type=is_node) at /usr/local/src/php-5.2.4/ext/tidy/tidy.c:811
#2 0x082d88ee in php_tidy_create_node (ht=0, return_value=0xb67a947c,
return_value_ptr=0x0, this_ptr=0xb692c690, return_value_used=1,
node=is_body_node) at /usr/local/src/php-5.2.4/ext/tidy/tidy.c:902
#3 0x082dad5d in zif_tidy_get_body (ht=0, return_value=0xb67a947c,
return_value_ptr=0x0, this_ptr=0xb692c690, return_value_used=1) at
/usr/local/src/php-5.2.4/ext/tidy/tidy.c:1548
#4 0x08358d8f in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfef4af0) at
/usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:200
#5 0x083597a5 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xbfef4af0) at
/usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:322
#6 0x083589a4 in execute (op_array=0xb7f42bc4) at
/usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:92
#7 0x083393c2 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/local/src/php-5.2.4/Zend/zend.c:1134
#8 0x082f2bfd in php_execute_script (primary_file=0xbfef6eb0) at
/usr/local/src/php-5.2.4/main/main.c:1982
#9 0x0839f299 in main (argc=2, argv=0xbfef6f84) at
/usr/local/src/php-5.2.4/sapi/cli/php_cli.c:1140



-- 
Edit bug report at http://bugs.php.net/?id=47287edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47287r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47287r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47287r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47287r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47287r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47287r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=47287r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=47287r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=47287r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=47287r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=47287r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=47287r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=47287r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47287r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=47287r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=47287r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=47287r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=47287r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=47287r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=47287r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=47287r=mysqlcfg



#45533 [Com]: cURL output includes content from redirects when CURLOPT_FOLLOWLOCATION set

2009-02-02 Thread satishpalasa at hotmail dot com
 ID:   45533
 Comment by:   satishpalasa at hotmail dot com
 Reported By:  signe at cothlamadh dot net
 Status:   No Feedback
 Bug Type: cURL related
 Operating System: FreeBSD 7.0
 PHP Version:  5.2.6
 Assigned To:  fb-req-jani
 New Comment:

I am facing the same problem the header content is not recorded. will
there be any problem with this.


Previous Comments:


[2008-08-07 01:00:01] 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.



[2008-07-30 18:57:33] j...@php.net

When you can provide a script that reproduces this problem every time,
give us feedback.



[2008-07-17 00:17:50] signe at cothlamadh dot net

I didn't try before reporting, and since they've made a modification,
my one known verification site is lost.

I saw this bug in a previous version of php (5.1.2, I believe) and at
that point in time, I couldn't replicate it with curl commandline. I
upgraded to 5.2.3 (along with a newer libcurl) on that particular server
and wasn't able to reproduce it after the upgrade so I didn't report it
at the time.

I need to try to create a redirect script that can cause the behavior -
until I do, no, I can't reproduce it in either PHP or curl.



[2008-07-16 22:29:29] j...@php.net

Can you reproduce this using curl on command line? ie. without PHP?



[2008-07-16 22:03:49] signe at cothlamadh dot net

Of course, after posting the reproduction, the server that was causing
the issue modified something and it's no longer reproducing against
them.  This was the original output from a request to their server:

telnet www.crn.com 80
Trying 66.77.24.10...
Connected to crn.com.
Escape character is '^]'.
GET /rss/cisco/index.xml HTTP/1.1
Host: www.crn.com

HTTP/1.1 302 Found
Date: Wed, 16 Jul 2008 21:52:30 GMT
Server: Apache
Location: http://feeds.pheedo.com/rss/cisco
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Vary: Accept-Encoding, User-Agent

119
!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
HTMLHEAD
TITLE302 Found/TITLE
/HEADBODY
H1Found/H1
The document has moved A
HREF=http://feeds.pheedo.com/rss/cisco;here/A.P
HR
ADDRESSApache/1.3.29 Server at www.crn.com Port 80/ADDRESS
/BODY/HTML

0

Connection closed by foreign host.



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

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