#46823 [Opn->Bgs]: backward compatibility of namespaces

2008-12-16 Thread kalle
 ID:   46823
 Updated by:   ka...@php.net
 Reported By:  Thomas dot Worm at gsp-software dot de
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
-Operating System: Windows
+Operating System: *
 PHP Version:  5.3.0alpha3
 New Comment:

We cannot change past releases, as adding BC for new language
elements/constructs in future versions requires the parser to be
altered.

Same thing with PHP4 doesn't support method chainging, or PHP 5.1
allows Array as type hint. If you want to use namespaces you will need
to use PHP 5.3 or greater, BC cannot and will not be added.


Previous Comments:


[2008-12-10 14:47:59] Thomas dot Worm at gsp-software dot de

Description:

I would like to do backward compatibility in namespace code.

Reproduce code:
---
= 5.3)
namespace MySpace\SubSpace;

?>
= 5.3)
use MySpace\SubSpace\MyClass;

?>

Expected result:

In PHP >= 5.3... All classes are in \MySpace\SubSpace
In PHP < 5.3... All classes are in global Space \


Actual result:
--
Parse error: parse error, expecting `T_NS_SEPARATOR' in space.lib.php
on line 3





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



#46880 [Bgs]: Configuration Problem

2008-12-16 Thread bineet dot kumar at wipro dot com
 ID:   46880
 User updated by:  bineet dot kumar at wipro dot com
 Reported By:  bineet dot kumar at wipro dot com
 Status:   Bogus
 Bug Type: *Configuration Issues
 Operating System: Linux RHEL 5
 PHP Version:  5.2.8
 New Comment:

i have taken tar file of mysql from mysql.com but inside that there is
no folder called mysql-devel.so, what should i do now.


Previous Comments:


[2008-12-16 18:00:46] j...@php.net

As I assume you installed the binaries provided at mysql.com, you most
likely did not install the "headers and libraries" package. Install that
and the configure will pass.



[2008-12-16 15:09:17] bineet dot kumar at wipro dot com

i have checked in mysql. mysql-devel is not present there. But can you
tell me how this is related to the problem



[2008-12-16 14:59:02] bineet dot kumar at wipro dot com

mysql-devel package is not available in mysql distribution



[2008-12-16 14:52:36] johan...@php.net

Do you have the mysql-devel package from your distribution installed?



[2008-12-16 11:49:20] bineet dot kumar at wipro dot com

Description:

When i am trying to configure PHP with this option
 ./configure --with-apxs2=/usr/web_server2.0.59/bin/apxs
--disable-debug --enable-ftp --enable-inline-optimization
--enable-magic-quotes --enable-mbstring --enable-mm=shared
--enable-safe-mode --enable-track-vars --enable-trans-sid
--enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext
--with-mysql=/usr/local/mysql --with-regex=system --with-xml
--with-zlib-dir=/usr/lib

Getting error is :-
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.

PHP INFORMATION
PHP 5.2.8 (cli) (built: Dec 15 2008 19:57:27)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

MySQL INFORMATION
mysql-5.0.67-linux-i686 (installed location is /usr/local/mysql)

Please suggest me what i should do. Thanks in advance

Reproduce code:
---
na

Expected result:

na

Actual result:
--
Not installed





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



#46861 [Opn->Fbk]: mktime returns the wrong number of days for November.

2008-12-16 Thread jani
 ID:   46861
 Updated by:   j...@php.net
 Reported By:  john at designingforbusiness dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Date/time related
 Operating System: OS X, Ubantu
 PHP Version:  5.2.8
 New Comment:

Ever heard of date("t") ?


Previous Comments:


[2008-12-14 03:27:54] john at designingforbusiness dot com

Description:

While using date("d", mktime(0,0,0,11+1,0,2008); to retrieve the number
of days in November I continually have 29 returned. While December and
other months are correct.

Reproduce code:
---
foreach($this->vacationDays as $entry) {
$nowdate = split("/", $entry[1]);
$ourDate =
mktime(0,0,0,(int)$nowdate[0],(int)$nowdate[1],(int)$nowdate[2]);
$ourMonth = date("M", $ourDate);
$ourDay = date("D", $ourDate);
$ourYear = date("o", $ourDate);
$firstDayOfMonth = mktime(0,0,0, $nowdate[0], 1 , $nowdate[2]);
$firstDayInMonth = date("D", $firstDayOfMonth);
$daysInMonth = date("d", mktime(0,0,0,(int)($nowdate[0]+1), 0,
(int)$nowdate[2]));
$day_of_week = $firstDayInMonth;

switch($day_of_week) {
case "Sun": $blank = 0; break;
case "Mon": $blank = 1; break;
case "Tue": $blank = 2; break;
case "Wed": $blank = 3; break;
case "Thu": $blank = 4; break;
case "Fri": $blank = 5; break;
case "Sat": $blank = 6; break;
}

if(isset($currentMonth) && $ourMonth != $currentMonth) {
$currentMonth = $ourMonth;

$this->startCalendarMonth($ourMonth, $ourYear);

$day_count = $this->shootBlanks($blank);

for($day_num = 1; $day_num <= $daysInMonth; $day_num++)
{   
echo "$day_num";
$day_count++;
if($day_count > 7) {
echo "\n";
$day_count = 1;
}
}
$this->endCalendar();
}


Expected result:

The expected result is that November 2008 would return 30 days and
December 2008 return 31 days.  

Actual result:
--
The current result is Nov 2008 returns 29 days and December 2008
returns 31.  Clearly the problem is with November.





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



#46839 [Opn->Fbk]: cant compile 5.2.8 with imap c-client compiled manually

2008-12-16 Thread jani
 ID:   46839
 Updated by:   j...@php.net
 Reported By:  naox at o2 dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: IMAP related
 Operating System: linux centos 5
 PHP Version:  5.2.8
 New Comment:

So does that linkage.h contain auth_gss ?


Previous Comments:


[2008-12-16 19:01:16] naox at o2 dot pl

Yes, I use '--with-kerberos' on my configure. And also
'--with-imap=/root/c-client-my'

That has files from compiled imap-2007d - files are placed as 
instructed at
http://pl.php.net/manual/en/imap.setup.php
all of these files comes from imap-2007d...



[2008-12-16 18:31:09] j...@php.net

Are you sure you don't have linkage.h file from some other build than
that you compiled yourself? And did you use --with-kerberos in your php
configure line?



[2008-12-12 00:38:44] naox at o2 dot pl

Description:

I use manualy compiled imap-2007d. I do this because there is a 
problem - c-client has small number FD_SETSIZE. If your apache 
httpd.conf opens a lot of log files than c-client crashes apache 
child if called from PHP. So I cant use standard c-client suplied 
with linux.

Now when I try to compile PHP 5.2.8 with manualy complied c-client

/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zm_startup_imap':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: 'auth_gss' 
undeclared (first use in this function)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: (Each 
undeclared identifier is reported only once
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: for each 
function it appears in.)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zif_imap_rfc822_parse_adrlist':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:2175: warning: passing 
argument 3 of 'rfc822_parse_adrlist' from incompatible pointer type
make: *** [ext/imap/php_imap.lo] Error 1


Problem only occurs in PHP 5.2.8. In PHP 5.2.6 everything works fine. 
Also problem does not appear if I compile PHP 5.2.8 with standard c-
client suplied with linux.

If I copy ext/imap/php_imap.c from 5.2.6 into 5.2.8 I can compile php 
without problems

There are some old bug reports about this problem resolved years ago 
with "fixed in cvs". So I suspect you reverted your php_imap.c in 
5.2.8 to state where it was not fixec.






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



#46844 [Opn->Ver]: First line of included files not output if they begin with #

2008-12-16 Thread jani
 ID:   46844
 Updated by:   j...@php.net
 Reported By:  phildrisc...@php.net
-Status:   Open
+Status:   Verified
 Bug Type: Scripting Engine problem
 Operating System: Ubuntu Gutsy
 PHP Version:  5.3.0alpha3
 New Comment:

I was kinda hoping it was some CLI/CGI thing only. :)




Previous Comments:


[2008-12-16 18:41:52] phildrisc...@php.net

Yes Jani - my test setup has PHP compiled as an Apache2 module.



[2008-12-16 18:20:41] j...@php.net

I can reproduce this with CLI and CGI, but does it happen also with
f.e. Apache SAPIs? 



[2008-12-12 11:51:56] phildrisc...@php.net

Description:

5.3.0alpha3 does not output the first line of an included script if 
the line begins with #. Earlier versions of PHP 
(prior to 5.3.0alpha1) do output first lines beginning with #.


Reproduce code:
---
test.php



test.inc
#1
#2
#3

Expected result:

#1
#2
#3

Actual result:
--
#2
#3





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



#46885 [Opn->Fbk]: Passing a variable by Reference does not return object created in function

2008-12-16 Thread jani
 ID:   46885
 Updated by:   j...@php.net
 Reported By:  Chowarmaan at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Windows 2000/XP
 PHP Version:  5.2.8
 New Comment:

How about you comment out the latter call and let the script work 
like it does?


Previous Comments:


[2008-12-16 21:26:23] Chowarmaan at gmail dot com

Description:

Calling a function in a class that accepts a variable by reference,
then checks the variable and creates an object for it will not allow the
object to be returned outside of the function.


Reproduce code:
---
SetText_('Testing Complete');
return TRUE;
}
}

class TEST_CLASS2
{
public $Variable;

public function SetText_($s)
{
$this->Variable = $s;
}
}

$Test = new TEST_CLASS();
$Test->GetResponse($Response, 100);   // Fails
$Test->GetResponse(&$Response, 100);  // Works

echo $Response->Variable . "\n";
?>


Expected result:

$Response should be of type TEST_CLASS2 and the echo should return the
text:
Testing Complete

Actual result:
--
$Response is a NULL





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



#46753 [Opn]: weird crash when calling is_subclass_of under very specific conditions

2008-12-16 Thread essen at dev-extend dot eu
 ID:   46753
 User updated by:  essen at dev-extend dot eu
 Reported By:  essen at dev-extend dot eu
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Linux Ubuntu 8.10
 PHP Version:  5.2CVS-2008-12-08
 New Comment:

It also crashes on NetBSD running PHP 5.2.4.


Previous Comments:


[2008-12-17 01:12:56] essen at dev-extend dot eu

Okay I've narrowed down the bug a bit.

First, the crash do not happen in PHP 5.3 using the latest snapshot.

Second, I've tried to make a small example and failed. So I made all
the files involved available here:
http://blog.extend.ws/~essen/bug46753.tar.gz

I've changed a few things in the code to make it more friendly to an
environment without some specific extensions, all you need is mysql and
xsl. You need however to create a database (a script is available in
app/sql). The configuration for the database can be changed in
app/conf/wee.cnf.

There is a hack in the index.php file to make it usable from the
command line. If you want to use it from a browser, remove the line and
point your browser to index.php/toppage/add instead.

If everything goes well, you should have an error message instead of
nothing and a segfault.

One last thing. I've let the .svn directory in wee/db/meta/mysql in the
archive. The crash doesn't happen if you remove this specific directory.
Other directories were removed for this archive.



[2008-12-16 01:00:00] 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-12-08 22:35:36] j...@php.net

Please try isolate the code. As short as possible script. You should 
also try the PHP 5.3 snapshot: http://snaps.php.net/php5.3-
latest.tar.gz just in case this same issue is already fixed there..



[2008-12-08 17:31:15] essen at dev-extend dot eu

Exactly the same problem using the snapshot. The problem also occurs
from the command line (both on 5.2.6 and using the snapshot).

The "bt full" made using this snapshot is available at the following
address:
http://blog.extend.ws/~essen/bug46753btfull.txt

I can try to isolate the code leading to the segfault if you need it,
but it's not going to be an easy task as it crashes inside classes
querying metadata information from a MySQL database, and also because
the same code works without problem for a different page.



[2008-12-08 11:34:58] 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/





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

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



#46753 [NoF->Opn]: weird crash when calling is_subclass_of under very specific conditions

2008-12-16 Thread essen at dev-extend dot eu
 ID:   46753
 User updated by:  essen at dev-extend dot eu
 Reported By:  essen at dev-extend dot eu
-Status:   No Feedback
+Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Linux Ubuntu 8.10
 PHP Version:  5.2CVS-2008-12-08
 New Comment:

Okay I've narrowed down the bug a bit.

First, the crash do not happen in PHP 5.3 using the latest snapshot.

Second, I've tried to make a small example and failed. So I made all
the files involved available here:
http://blog.extend.ws/~essen/bug46753.tar.gz

I've changed a few things in the code to make it more friendly to an
environment without some specific extensions, all you need is mysql and
xsl. You need however to create a database (a script is available in
app/sql). The configuration for the database can be changed in
app/conf/wee.cnf.

There is a hack in the index.php file to make it usable from the
command line. If you want to use it from a browser, remove the line and
point your browser to index.php/toppage/add instead.

If everything goes well, you should have an error message instead of
nothing and a segfault.

One last thing. I've let the .svn directory in wee/db/meta/mysql in the
archive. The crash doesn't happen if you remove this specific directory.
Other directories were removed for this archive.


Previous Comments:


[2008-12-16 01:00:00] 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-12-08 22:35:36] j...@php.net

Please try isolate the code. As short as possible script. You should 
also try the PHP 5.3 snapshot: http://snaps.php.net/php5.3-
latest.tar.gz just in case this same issue is already fixed there..



[2008-12-08 17:31:15] essen at dev-extend dot eu

Exactly the same problem using the snapshot. The problem also occurs
from the command line (both on 5.2.6 and using the snapshot).

The "bt full" made using this snapshot is available at the following
address:
http://blog.extend.ws/~essen/bug46753btfull.txt

I can try to isolate the code leading to the segfault if you need it,
but it's not going to be an easy task as it crashes inside classes
querying metadata information from a MySQL database, and also because
the same code works without problem for a different page.



[2008-12-08 11:34:58] 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/





[2008-12-05 00:23:16] essen at dev-extend dot eu

Description:

I encountered a strange crash. I can reproduce it, it always happens,
but only under very specific conditions. It first happened when I
changed a completely unrelated part of my code in a different file of
the project.

PHP crash on an is_subclass_of call. This call worked correctly before
my changes, and still works correctly on the other pages. Other
is_subclass_of works fine too. I'm not sure what trigger this, as I've
only changed a few methods, nothing changing the outcome of the
script...

Another thing. If I add a require_once before the is_subclass_of call,
there is no crash. The crash only happens when the class isn't defined
in the current script, which should and does trigger the autoload
callback to load the class. The class is successfully loaded by the
callback, the crash happens only after.

I'm not sure what more can I say. If you need further details, feel
free to ask.

Actual result:
--
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal 11, Segmentation fault.
[New process 19175]
#0  0xb72c372a in is_a_impl (ht=-47466807, return_value=0xb9a602b0, 
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, 
only_subclass=1 '\001')
at /build/buildd/php5-5.2.6/Zend/zend_builtin_functions.c:657
657 /build/buildd/php5-5.2.6/Zend/zend_builtin_functions.c: No such
file or directory.
in /build/buildd/php5-5.2.6/Zend/zend_builtin_functions.c
(gdb) bt
#0  0xb72c372a in is_a_impl (ht=-47466807, return_value=0xb9a602b0, 
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1, 
only_subclass=1 '\001')
at /build/buildd/php5-5.2.6/Zend/zend_builtin_functions.c:657
#1  0xb72ecba3 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf854fd8)
at /build/buildd/php5-5.2.6/Zend/zend_vm_execute.h:200
#2  0xb72d803b in execute (op_array=0xb9a5c364)
at /build/buildd/php5-5.2.6/Zend/zend_vm_execute.h:92
#3  0xb72e

#45996 [Asn]: libxml2 2.7.1 causes breakage with character data in xml_parse()

2008-12-16 Thread rrichards
 ID:   45996
 Updated by:   rricha...@php.net
 Reported By:  phpbugs at colin dot guthr dot ie
 Status:   Assigned
 Bug Type: XML related
 Operating System: Mandriva Linux
 PHP Version:  5.2.6
 Assigned To:  rrichards
 New Comment:

Does no one pay attention to the comments? The fix for this needs to 
happen on the libxml2 layer. The next version of libxml2 should resolve

this and this bug is being kept open only in case some modification to

the extension also needs to occur with the fix.


Previous Comments:


[2008-12-17 00:49:19] scott...@php.net

Recompile with libexpat or downgrade libxml. One of those will sort you
out.

A change to libxml will be in the next release, though the patch isn't
in their repository yet.



[2008-12-17 00:09:52] joshua at joshuascott dot net

Any update on resolving this issue?  All of my web based RSS aggregator
sites are broken, I am unable to post using any desktop clients and none
of the workarounds seem to work or can't be implemented due to various
reasons.  

Please advise.  This bug has been open for a long time and it seems to
be affecting a lot of people.



[2008-12-14 22:17:37] alykhanii at yahoo dot com

This bug has been open for 4 months now.  Any chance of this getting
fixed anytime soon?



[2008-12-07 13:08:43] rolysatch at hotmail dot com

i did apply a patch to php 5.2.6 and got this bug with libxml2 fixed,
but i just upgraded php to 5.2.7 cli (where i thought this big had been
fixed) and i've got the same problem back again with angled brackets
being stripped. anyone else upgraded and still got this issue?



[2008-12-03 17:46:18] hoffie at gentoo dot org

What is the current status of a fix (in contrast to a work around)?
This issue breaks lots of web apps (Wordpress as we heard here, Typo3 as
we heard in our bug tracker at Gentoo) and considering that the last
release of 5.2.x is supposed to be released tomorrow, this sounds rather
urgent...

Downstream bug for Gentoo:
http://bugs.gentoo.org/show_bug.cgi?id=249703
(Gentoo users: Please report such bugs to us (as well), especially in
case of such library interaction issues)



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

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



#45996 [Asn]: libxml2 2.7.1 causes breakage with character data in xml_parse()

2008-12-16 Thread scottmac
 ID:   45996
 Updated by:   scott...@php.net
 Reported By:  phpbugs at colin dot guthr dot ie
 Status:   Assigned
 Bug Type: XML related
 Operating System: Mandriva Linux
 PHP Version:  5.2.6
 Assigned To:  rrichards
 New Comment:

Recompile with libexpat or downgrade libxml. One of those will sort you
out.

A change to libxml will be in the next release, though the patch isn't
in their repository yet.


Previous Comments:


[2008-12-17 00:09:52] joshua at joshuascott dot net

Any update on resolving this issue?  All of my web based RSS aggregator
sites are broken, I am unable to post using any desktop clients and none
of the workarounds seem to work or can't be implemented due to various
reasons.  

Please advise.  This bug has been open for a long time and it seems to
be affecting a lot of people.



[2008-12-14 22:17:37] alykhanii at yahoo dot com

This bug has been open for 4 months now.  Any chance of this getting
fixed anytime soon?



[2008-12-07 13:08:43] rolysatch at hotmail dot com

i did apply a patch to php 5.2.6 and got this bug with libxml2 fixed,
but i just upgraded php to 5.2.7 cli (where i thought this big had been
fixed) and i've got the same problem back again with angled brackets
being stripped. anyone else upgraded and still got this issue?



[2008-12-03 17:46:18] hoffie at gentoo dot org

What is the current status of a fix (in contrast to a work around)?
This issue breaks lots of web apps (Wordpress as we heard here, Typo3 as
we heard in our bug tracker at Gentoo) and considering that the last
release of 5.2.x is supposed to be released tomorrow, this sounds rather
urgent...

Downstream bug for Gentoo:
http://bugs.gentoo.org/show_bug.cgi?id=249703
(Gentoo users: Please report such bugs to us (as well), especially in
case of such library interaction issues)



[2008-11-21 15:32:53] phpbugs at colin dot guthr dot ie

To build with expat just read my earlier posts on this bug where I've
shown how we did this in our recent Mandriva 2009 release.



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

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



#45996 [Com]: libxml2 2.7.1 causes breakage with character data in xml_parse()

2008-12-16 Thread joshua at joshuascott dot net
 ID:   45996
 Comment by:   joshua at joshuascott dot net
 Reported By:  phpbugs at colin dot guthr dot ie
 Status:   Assigned
 Bug Type: XML related
 Operating System: Mandriva Linux
 PHP Version:  5.2.6
 Assigned To:  rrichards
 New Comment:

Any update on resolving this issue?  All of my web based RSS aggregator
sites are broken, I am unable to post using any desktop clients and none
of the workarounds seem to work or can't be implemented due to various
reasons.  

Please advise.  This bug has been open for a long time and it seems to
be affecting a lot of people.


Previous Comments:


[2008-12-14 22:17:37] alykhanii at yahoo dot com

This bug has been open for 4 months now.  Any chance of this getting
fixed anytime soon?



[2008-12-07 13:08:43] rolysatch at hotmail dot com

i did apply a patch to php 5.2.6 and got this bug with libxml2 fixed,
but i just upgraded php to 5.2.7 cli (where i thought this big had been
fixed) and i've got the same problem back again with angled brackets
being stripped. anyone else upgraded and still got this issue?



[2008-12-03 17:46:18] hoffie at gentoo dot org

What is the current status of a fix (in contrast to a work around)?
This issue breaks lots of web apps (Wordpress as we heard here, Typo3 as
we heard in our bug tracker at Gentoo) and considering that the last
release of 5.2.x is supposed to be released tomorrow, this sounds rather
urgent...

Downstream bug for Gentoo:
http://bugs.gentoo.org/show_bug.cgi?id=249703
(Gentoo users: Please report such bugs to us (as well), especially in
case of such library interaction issues)



[2008-11-21 15:32:53] phpbugs at colin dot guthr dot ie

To build with expat just read my earlier posts on this bug where I've
shown how we did this in our recent Mandriva 2009 release.



[2008-11-21 15:31:40] ajay12006 at gmail dot com

I already have libxml 2.7.2

Can anyone help me how to "build PHP with libxml2 <= 2.6.32 or 
build ext/xml with expat."? Any link on how to so it?

Thanks.



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

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



#46796 [Fbk->Opn]: make test: Error 137

2008-12-16 Thread isjackawesome at gmail dot com
 ID:   46796
 User updated by:  isjackawesome at gmail dot com
 Reported By:  isjackawesome at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Streams related
 Operating System: Linux/Ubuntu 8.04
 PHP Version:  5.2.8
 New Comment:

256MB RAM
20GB storage ( of which about 0.15% is taken up ;) )

I dont have another linux box to test this on - this is on a 
production server I'm setting up.

thanks,
Jack


Previous Comments:


[2008-12-16 18:34:07] j...@php.net

Exactly how much memory do you have in that machine? Are you able to
reproduce this on any other machines?



[2008-12-12 01:47:15] isjackawesome at gmail dot com

Ive installed the latest snapshot and i still receive the error.

however at the end it says:
 4616/5387 instead of the original 3912/4619

I can make install and use php fine - the make test fails.



[2008-12-08 14:03:43] 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/





[2008-12-08 13:48:27] isjackawesome at gmail dot com

Description:

Compiled with:
./configure –with-apxs2=/usr/local/server/apache2/bin/apxs –with-
mysqli=/usr/local/server/mysql/bin/mysql_config –enable-debug=no --
with-mcrypt=/usr/local/server/libmcrypt –enable-ftp –with-gd –with-
jpeg-dir=/usr/local –with-png-dir=/usr/local –with-zlib-
dir=/usr/local --enable-shared --enable-static

make - works no errors
make test, stalls on stream_get_meta_data_socket_variation1 
(3912/4619)




Reproduce code:
---
TEST 3912/4619
[ext/standard/tests/streams/stream_get_meta_data_socket_variationOut of
memory: Killed process 4398 (php).
/bin/sh: line 18:  4398 Killed 
TEST_PHP_EXECUTABLE=/root/downloads/php-5.2.6/sapi/cli/php
TEST_PHP_SRCDIR=/root/downloads/php-5.2.6 CC="gcc"
/root/downloads/php-5.2.6/sapi/cli/php -d 'open_basedir=' -d
'output_buffering=0' -d 'memory_limit=-1'
/root/downloads/php-5.2.6/run-tests.php -c
/root/downloads/php-5.2.6/tmp-php.ini -U -d
extension_dir=/root/downloads/php-5.2.6/modules/ ` if test "x" != "x";
then for i in ""; do . $i; /root/downloads/php-5.2.6/build/shtool echo
-n -- " -d extension=$dlname"; done; fi`
make: [test] Error 137 (ignored)








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



#46837 [Opn->Csd]: imap. Invalid CL_EXPUNGE are not caught.

2008-12-16 Thread zoe
 ID:   46837
 Updated by:   z...@php.net
 Reported By:  zoe dot slattery at googlemail dot com
-Status:   Open
+Status:   Closed
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  5.3.0alpha3
 Assigned To:  zoe
 New Comment:

fixed


Previous Comments:


[2008-12-16 21:14:21] z...@php.net

assigning to myself after discussion with ilia



[2008-12-11 14:58:36] zoe dot slattery at googlemail dot com

Description:

The value of CL_EXPUNGE is checked in imap_close() but the check just
ensures that any value that ends in a 1 is treated as valid, this is a
similar issue to #46731 and the fix is similar. The value of CL_EXPUNGE
should be either 0 or 32768.

The attached patches do an explicit check for 0 or 32768.

php52: http://pastebin.ca/1282662
php53: http://pastebin.ca/1282664
php6: http://pastebin.ca/1282667


Reproduce code:
---
This testcase: http://pastebin.ca/1282641


Expected result:

Th expected result is shown in the test case

Actual result:
--
The actual result from PHP52 is: http://pastebin.ca/1282656






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



#46885 [NEW]: Passing a variable by Reference does not return object created in function

2008-12-16 Thread Chowarmaan at gmail dot com
From: Chowarmaan at gmail dot com
Operating system: Windows 2000/XP
PHP version:  5.2.8
PHP Bug Type: Scripting Engine problem
Bug description:  Passing a variable by Reference does not return object 
created in function

Description:

Calling a function in a class that accepts a variable by reference, then
checks the variable and creates an object for it will not allow the object
to be returned outside of the function.


Reproduce code:
---
SetText_('Testing Complete');
return TRUE;
}
}

class TEST_CLASS2
{
public $Variable;

public function SetText_($s)
{
$this->Variable = $s;
}
}

$Test = new TEST_CLASS();
$Test->GetResponse($Response, 100);   // Fails
$Test->GetResponse(&$Response, 100);  // Works

echo $Response->Variable . "\n";
?>


Expected result:

$Response should be of type TEST_CLASS2 and the echo should return the
text:
Testing Complete

Actual result:
--
$Response is a NULL

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



#46837 [Opn]: imap. Invalid CL_EXPUNGE are not caught.

2008-12-16 Thread zoe
 ID:   46837
 Updated by:   z...@php.net
 Reported By:  zoe dot slattery at googlemail dot com
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  5.3.0alpha3
-Assigned To:  
+Assigned To:  zoe
 New Comment:

assigning to myself after discussion with ilia


Previous Comments:


[2008-12-11 14:58:36] zoe dot slattery at googlemail dot com

Description:

The value of CL_EXPUNGE is checked in imap_close() but the check just
ensures that any value that ends in a 1 is treated as valid, this is a
similar issue to #46731 and the fix is similar. The value of CL_EXPUNGE
should be either 0 or 32768.

The attached patches do an explicit check for 0 or 32768.

php52: http://pastebin.ca/1282662
php53: http://pastebin.ca/1282664
php6: http://pastebin.ca/1282667


Reproduce code:
---
This testcase: http://pastebin.ca/1282641


Expected result:

Th expected result is shown in the test case

Actual result:
--
The actual result from PHP52 is: http://pastebin.ca/1282656






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



#46884 [Opn->Csd]: Options are not checked in /ext/imap

2008-12-16 Thread zoe
 ID:   46884
 Updated by:   z...@php.net
 Reported By:  z...@php.net
-Status:   Open
+Status:   Closed
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  5.3.0alpha3
 Assigned To:  zoe
 New Comment:

fixed


Previous Comments:


[2008-12-16 21:05:14] z...@php.net

assigning to myself after discussion with ilia



[2008-12-16 17:26:19] z...@php.net

Description:

This is essentially the same problem as described in #46731 and
#46837.
The values of options passed to imap functions are not checked
precisely.

Patches for:
imap_body(),imap_fetchstructure(),imap_fetchbody(),imap_fetchheader()

Are here:
http://www.pastebin.ca/1286942
http://www.pastebin.ca/1286943
http://www.pastebin.ca/1286944


I have also fixed missing initialisation of flags in fetchheader() in
PHP53 and PHP6.


Reproduce code:
---
Test cases here

http://www.pastebin.ca/1286945
http://www.pastebin.ca/1286947
http://www.pastebin.ca/1286948
http://www.pastebin.ca/1286949

Expected result:

As shown in test cases

Actual result:
--
PHP_INT_MAX is accepted as a valid option.





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



#46826 [Asn->Csd]: problem in installation i'hv downloaded from php.net/downloads

2008-12-16 Thread jmertic
 ID:   46826
 Updated by:   jmer...@php.net
 Reported By:  web-guru at in dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Windows Installer
 Operating System: win32 only - xp
 PHP Version:  5.2.8
 Assigned To:  jmertic
 New Comment:

This bug has been fixed in CVS.

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

Will try to get installer on PHP.net updated in the next few days.


Previous Comments:


[2008-12-10 18:05:51] web-guru at in dot com

Description:

there is a problem with this windows installer package. A script
required for this install to complete could not be run. Contact your
support personnel or package vendor.


this error occured while installing php 5.2.8

and also if you can tell that it provides inbuilt support for the
mysql_connect();






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



#46603 [Asn->Fbk]: Installation fails ....

2008-12-16 Thread jmertic
 ID:   46603
 Updated by:   jmer...@php.net
 Reported By:  ktildsley at btinternet dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: Windows Installer
 Operating System: xp2
 PHP Version:  5.2.6
 Assigned To:  jmertic
 New Comment:

Make sure all traces of PHP 4 are removed, and the PHPRC env variable
is properly set and the path to php5apache2_2.dll is correct. It sounds
like the traces of PHP 4 are causing problems.


Previous Comments:


[2008-11-18 13:51:49] ktildsley at btinternet dot com

A Google search for "PHPinidir invalid command" throws up a bunch of
pages where people seem to have the same problem.



[2008-11-18 13:46:11] ktildsley at btinternet dot com

Description:

Attempting to upgared from PHP 4 to 5. Used the installer for windows,
seemed to work, no problems. However, when Apache starts it complains
about the end of httpd.conf, namely the line PHPIniDir "C:/Program
Files/PHP5/"
Errors says PHPIniDir is an invalid command.

Removing the offending (to see what happens)line leads to an error that
Apache can't find php5apache2_2.dll in the path given, even though the
file is most certainly there.

Furthermore, after uninstalling PHP5, IE no longer executes
Apache/PHP4, the browser just attempts to download the php file, rather
than having Apache/PHP4 execute it. Configuration files are the way they
have been for last two years, so not sure what has got meesed up by
installing and then uninstalling PHP5

Expected result:

I expected the installer to work.

Actual result:
--
Apache.exe no longer runs but generates error message detailed above.





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



#46884 [Opn]: Options are not checked in /ext/imap

2008-12-16 Thread zoe
 ID:   46884
 Updated by:   z...@php.net
 Reported By:  z...@php.net
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: *
 PHP Version:  5.3.0alpha3
-Assigned To:  
+Assigned To:  zoe
 New Comment:

assigning to myself after discussion with ilia


Previous Comments:


[2008-12-16 17:26:19] z...@php.net

Description:

This is essentially the same problem as described in #46731 and
#46837.
The values of options passed to imap functions are not checked
precisely.

Patches for:
imap_body(),imap_fetchstructure(),imap_fetchbody(),imap_fetchheader()

Are here:
http://www.pastebin.ca/1286942
http://www.pastebin.ca/1286943
http://www.pastebin.ca/1286944


I have also fixed missing initialisation of flags in fetchheader() in
PHP53 and PHP6.


Reproduce code:
---
Test cases here

http://www.pastebin.ca/1286945
http://www.pastebin.ca/1286947
http://www.pastebin.ca/1286948
http://www.pastebin.ca/1286949

Expected result:

As shown in test cases

Actual result:
--
PHP_INT_MAX is accepted as a valid option.





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



#46839 [Fbk->Opn]: cant compile 5.2.8 with imap c-client compiled manually

2008-12-16 Thread naox at o2 dot pl
 ID:   46839
 User updated by:  naox at o2 dot pl
 Reported By:  naox at o2 dot pl
-Status:   Feedback
+Status:   Open
 Bug Type: IMAP related
 Operating System: linux centos 5
 PHP Version:  5.2.8
 New Comment:

Yes, I use '--with-kerberos' on my configure. And also
'--with-imap=/root/c-client-my'

That has files from compiled imap-2007d - files are placed as 
instructed at
http://pl.php.net/manual/en/imap.setup.php
all of these files comes from imap-2007d...


Previous Comments:


[2008-12-16 18:31:09] j...@php.net

Are you sure you don't have linkage.h file from some other build than
that you compiled yourself? And did you use --with-kerberos in your php
configure line?



[2008-12-12 00:38:44] naox at o2 dot pl

Description:

I use manualy compiled imap-2007d. I do this because there is a 
problem - c-client has small number FD_SETSIZE. If your apache 
httpd.conf opens a lot of log files than c-client crashes apache 
child if called from PHP. So I cant use standard c-client suplied 
with linux.

Now when I try to compile PHP 5.2.8 with manualy complied c-client

/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zm_startup_imap':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: 'auth_gss' 
undeclared (first use in this function)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: (Each 
undeclared identifier is reported only once
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: for each 
function it appears in.)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zif_imap_rfc822_parse_adrlist':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:2175: warning: passing 
argument 3 of 'rfc822_parse_adrlist' from incompatible pointer type
make: *** [ext/imap/php_imap.lo] Error 1


Problem only occurs in PHP 5.2.8. In PHP 5.2.6 everything works fine. 
Also problem does not appear if I compile PHP 5.2.8 with standard c-
client suplied with linux.

If I copy ext/imap/php_imap.c from 5.2.6 into 5.2.8 I can compile php 
without problems

There are some old bug reports about this problem resolved years ago 
with "fixed in cvs". So I suspect you reverted your php_imap.c in 
5.2.8 to state where it was not fixec.






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



#46831 [Opn->Fbk]: safe mode bypass in readdir(), realpath()

2008-12-16 Thread iliaa
 ID:   46831
 Updated by:   il...@php.net
 Reported By:  cmos_clr at hotmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Safe Mode/open_basedir
 Operating System: linux
 PHP Version:  5.2CVS-2008-12-11 (snap)
 New Comment:

Where is the security issue, you get an appropriate error about access

denied it would seem, no?


Previous Comments:


[2008-12-11 04:36:18] cmos_clr at hotmail dot com

Description:

::_::_::_::_::_::_::_::_::_::__::_::_::_::_::_::_::_::_::__::_::_::_::_::_::_::_::_::_::_::

::
::Found by  :  CmOs_CLR & hard_hakerz
::
::MAILS :  cmos_...@hotmail.com & hard_hak...@hotmail.com
::
::SITE  :  wwW.SEC4EVER.coM
::
::---ABOUT Software: 
::
::VERSION   : PHP 5.2.6
::
::Vendor: http://www.php.net
::
::--
::
::
::Responsible Functions : readdir() , realpath()
::
::WHERE IS THE PROBLEM ?
::
::IN SERVERS WITH SAFE MODE ON AND * getmyuid() * DISABLED WE CAN  
::BYPASS THIS.
::
::FIRST THIS ERROR WILL RESULT : getmyuid() has been disabled for
::security reasons.
::
::FOR readdir() :
::
::  
::  
::
::for realpath() :
::
::
::  
::
::THE RESULTAT IS :
:: The script whose *uid is 100* is not allowed to access /etc/passwd
::owned by uid 0 in 
:: /home/*user*/domains/site.com/public_html/function.php on line xx
::
::NOTE : a lot of others function can result this error "getmyuid()
::bypass "  un attacker can take a lot of information from this 
::error. like is the safe mode activat from http.conf or php.ini? the
::user of a site who? = user of ftp this can simplify a ftpbrute
::forcing only the case of pass because the user is known ..etc 
::this error is getmyuid() bypass in disabled fuction .
::
::
::thanks+good luck
::
::
::






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



#46844 [Fbk->Opn]: First line of included files not output if they begin with #

2008-12-16 Thread phildrisc...@php.net
 ID:   46844
 User updated by:  phildrisc...@php.net
 Reported By:  phildrisc...@php.net
-Status:   Feedback
+Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Ubuntu Gutsy
 PHP Version:  5.3.0alpha3
 New Comment:

Yes Jani - my test setup has PHP compiled as an Apache2 module.


Previous Comments:


[2008-12-16 18:20:41] j...@php.net

I can reproduce this with CLI and CGI, but does it happen also with
f.e. Apache SAPIs? 



[2008-12-12 11:51:56] phildrisc...@php.net

Description:

5.3.0alpha3 does not output the first line of an included script if 
the line begins with #. Earlier versions of PHP 
(prior to 5.3.0alpha1) do output first lines beginning with #.


Reproduce code:
---
test.php



test.inc
#1
#2
#3

Expected result:

#1
#2
#3

Actual result:
--
#2
#3





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



#46796 [Opn->Fbk]: make test: Error 137

2008-12-16 Thread jani
 ID:   46796
 Updated by:   j...@php.net
 Reported By:  isjackawesome at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Streams related
 Operating System: Linux/Ubuntu 8.04
-PHP Version:  5.2.6
+PHP Version:  5.2.8
 New Comment:

Exactly how much memory do you have in that machine? Are you able to
reproduce this on any other machines?


Previous Comments:


[2008-12-12 01:47:15] isjackawesome at gmail dot com

Ive installed the latest snapshot and i still receive the error.

however at the end it says:
 4616/5387 instead of the original 3912/4619

I can make install and use php fine - the make test fails.



[2008-12-08 14:03:43] 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/





[2008-12-08 13:48:27] isjackawesome at gmail dot com

Description:

Compiled with:
./configure –with-apxs2=/usr/local/server/apache2/bin/apxs –with-
mysqli=/usr/local/server/mysql/bin/mysql_config –enable-debug=no --
with-mcrypt=/usr/local/server/libmcrypt –enable-ftp –with-gd –with-
jpeg-dir=/usr/local –with-png-dir=/usr/local –with-zlib-
dir=/usr/local --enable-shared --enable-static

make - works no errors
make test, stalls on stream_get_meta_data_socket_variation1 
(3912/4619)




Reproduce code:
---
TEST 3912/4619
[ext/standard/tests/streams/stream_get_meta_data_socket_variationOut of
memory: Killed process 4398 (php).
/bin/sh: line 18:  4398 Killed 
TEST_PHP_EXECUTABLE=/root/downloads/php-5.2.6/sapi/cli/php
TEST_PHP_SRCDIR=/root/downloads/php-5.2.6 CC="gcc"
/root/downloads/php-5.2.6/sapi/cli/php -d 'open_basedir=' -d
'output_buffering=0' -d 'memory_limit=-1'
/root/downloads/php-5.2.6/run-tests.php -c
/root/downloads/php-5.2.6/tmp-php.ini -U -d
extension_dir=/root/downloads/php-5.2.6/modules/ ` if test "x" != "x";
then for i in ""; do . $i; /root/downloads/php-5.2.6/build/shtool echo
-n -- " -d extension=$dlname"; done; fi`
make: [test] Error 137 (ignored)








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



#46839 [Opn->Fbk]: cant compile 5.2.8 with imap c-client compiled manually

2008-12-16 Thread jani
 ID:   46839
 Updated by:   j...@php.net
 Reported By:  naox at o2 dot pl
-Status:   Open
+Status:   Feedback
 Bug Type: IMAP related
 Operating System: linux centos 5
 PHP Version:  5.2.8
 New Comment:

Are you sure you don't have linkage.h file from some other build than
that you compiled yourself? And did you use --with-kerberos in your php
configure line?


Previous Comments:


[2008-12-12 00:38:44] naox at o2 dot pl

Description:

I use manualy compiled imap-2007d. I do this because there is a 
problem - c-client has small number FD_SETSIZE. If your apache 
httpd.conf opens a lot of log files than c-client crashes apache 
child if called from PHP. So I cant use standard c-client suplied 
with linux.

Now when I try to compile PHP 5.2.8 with manualy complied c-client

/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zm_startup_imap':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: 'auth_gss' 
undeclared (first use in this function)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: (Each 
undeclared identifier is reported only once
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:477: error: for each 
function it appears in.)
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c: In function 
'zif_imap_rfc822_parse_adrlist':
/root/naox/php-5.2.8.mod/ext/imap/php_imap.c:2175: warning: passing 
argument 3 of 'rfc822_parse_adrlist' from incompatible pointer type
make: *** [ext/imap/php_imap.lo] Error 1


Problem only occurs in PHP 5.2.8. In PHP 5.2.6 everything works fine. 
Also problem does not appear if I compile PHP 5.2.8 with standard c-
client suplied with linux.

If I copy ext/imap/php_imap.c from 5.2.6 into 5.2.8 I can compile php 
without problems

There are some old bug reports about this problem resolved years ago 
with "fixed in cvs". So I suspect you reverted your php_imap.c in 
5.2.8 to state where it was not fixec.






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



#46841 [Opn->Bgs]: Session_name issue

2008-12-16 Thread jani
 ID:   46841
 Updated by:   j...@php.net
 Reported By:  vijaybabur at mobiusservices dot in
-Status:   Open
+Status:   Bogus
-Bug Type: *General Issues
+Bug Type: Session related
 Operating System: Cent OS
 PHP Version:  5.1.6
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #45380


Previous Comments:


[2008-12-12 11:25:07] vijaybabur at mobiusservices dot in

My PHP version is 5.1.6
>From my php.ini file - for your ref
session.name = PHPSESSID
session.auto_start = 0



[2008-12-12 06:35:24] vijaybabur at mobiusservices dot in

Description:

Hi,

I think this is a bug. I am facing problem in handling more than one
session in a single page. 


When i set the session_name at first, it's working fine. But if i
change the session.name in the next looping, it has changed but the
session values doesn't get changed. It's showing the previous session
value's only.

Reproduce code:
---
foreach ($projects as $key => $val)
{   
 ini_set('session.name',$val);
 session_name($val);
 session_start();
 session_regenerate_id(false);
 echo session_id();
 .
 .
 

 .
 session_write_close();
}

Expected result:

I need to handle more than one session values in a single page.






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



#46836 [Opn->Fbk]: $_SERVER['PHP_SELF'] path repeated

2008-12-16 Thread jani
 ID:   46836
 Updated by:   j...@php.net
 Reported By:  editoria dot francisco at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: CGI related
 Operating System: Windows 2000
 PHP Version:  5.2.8
 New Comment:

Are you sure you've updated PHP correctly? I can not reproduce this
with clean install. Check in phpinfo() output that the version really is
5.2.8. Also, with what webserver software this happens with? See bug
#45637 if you have Abyss..


Previous Comments:


[2008-12-11 14:12:16] editoria dot francisco at gmail dot com

Description:

$_SERVER['PHP_SELF'] path repeated.
Same bug related in:
http://bugs.php.net/bug.php?id=42699, PHP Version: 5.2CVS-2007-09-18
http://bugs.php.net/bug.php?id=42523, PHP Version: 5.2.4

Reproduce code:
---
echo $_SERVER['PHP_SELF'];

Expected result:

/path/test.php


Actual result:
--
/path/test.php/path/test.php





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



#46842 [Com]: calls to mysql_connect crash

2008-12-16 Thread michail1982 at gmail dot com
 ID:   46842
 Comment by:   michail1982 at gmail dot com
 Reported By:  pdp2108 at gmail dot com
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Windows XP SP2
 PHP Version:  5.2.8
 New Comment:

I not shure, that is a PHP bug... Thats happends, when i use
libMysql.dll from Mysql source.. when i use this dll from prevous Mysql
(5.0.51b) it`s OK
PS go to Mysql site :)

PPS Sorry? my english is bad


Previous Comments:


[2008-12-15 21:19:11] adrian at cozuweb dot com

I have exactly the same problem, just my Apache server version is
2.2.11.

just wanted to add that if I run the script using the cli (php.exe) :

php -f dbtest.php
 
it works perfectly.
If I access the same file using the web server I get the access
violation.

The content of dbtest.php is:

I started with a clean installation of the three packages, everything
else seems to be running fine



[2008-12-12 07:58:53] pdp2108 at gmail dot com

Description:

I have an isolated test case that reliably generates a segmentation
fault in php5ts.dll. 

Here is the environment:

Windows XP, SP2, Single Athlon 64 3200+ CPU, 1 GB RAM

MySQL version 5.1.30 for Win32
Apache version 2.2.10 for Win32
PHP 5.2.8

PHP was installed with the .msi installer.  The following extensions
were added at installation:  GD, mysql, mysqli and multi-byte string.

I have configured Apache & MySQL and have created some databases, which
I can access through mysql and Navicat.  I have used a simple
phpinfo.php script to track down an incorrect libmysql.dll in my path
and have eliminated that and have verified that the client version of
libmysql is 5.1.30 in phpinfo.



Reproduce code:
---



Expected result:

One expects to see the "Past mysql_connect" statement print out.

Actual result:
--
Thread 0 - System ID 4232
Entry point   php!mainCRTStartup 
Create time   12/12/2008 2:17:59 AM 
Time spent in user mode   0 Days 0:0:0.0 
Time spent in kernel mode   0 Days 0:0:0.31 






Function Arg 1 Arg 2 Arg 3   Source 
php5ts!zend_mm_search_large_block+fa 00f35230 0048
001c
php5ts!_zend_mm_alloc_int+153  003f 1009ba69   

php5ts!_emalloc+39 003f 0111c4c8 00f327a0
php5ts!_zend_hash_add_or_update+2d9 00f36148 0111c4e0
001c
php_mysql!php_mysql_do_connect+867 0111c460 0111c4c8

php_mysql!zif_mysql_connect+25 0003 0111c4c8   
 
php5ts!zend_do_fcall_common_helper_SPEC+7d9 00c0fbd0 00f327a0  
  0111be8c
php5ts!ZEND_DO_FCALL_SPEC_CONST_HANDLER+e5  00f327a0   
 00f327a0
php5ts!execute+1c5 0111be98 00f327a0 
php5ts!zend_execute_scripts+107 0008 00f327a0  
  
php5ts!php_execute_script+20d 00c0fec8 00f327a0 000e   

php!main+bca 0003 00f33fd0 00f32d60
php!mainCRTStartup+e3 000e  7ffdf000
kernel32!BaseProcessStart+23 00402f72     





PHP5TS!ZEND_MM_SEARCH_LARGE_BLOCK+FAIn
php__PID__3284__Date__12_12_2008__Time_02_18_29AM__734__Second_Chance_Exception_C005.dmp
the assembly instruction at php5ts!zend_mm_search_large_block+fa in
C:\PHP\php5ts.dll from The PHP Group has caused an access violation
exception (0xC005) when trying to read from memory location
0x0014 on thread 0

Module Information 
Image Name: C:\PHP\php5ts.dll   Symbol Type:  PDB 
Base address: 0x1000   Time Stamp:  Mon Dec 08 14:31:08 2008  
Checksum: 0x   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.2.8.8 
Managed DLL: False   Internal Name:  php5ts.dll 
VB DLL: False   Legal Copyright:  Copyright © 1997-2007 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:  C:\PHP\php5ts.dll   Original filename:  php5ts.dll

Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP Script Interpreter 
Module Size:  4.98 MBytes   Product Version:  5.2.8 
Symbol File Name:  C:\PHP_Debug\php5ts.pdb   Special Build:  & 






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



#46844 [Opn->Fbk]: First line of included files not output if they begin with #

2008-12-16 Thread jani
 ID:   46844
 Updated by:   j...@php.net
 Reported By:  phildrisc...@php.net
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Ubuntu Gutsy
 PHP Version:  5.3.0alpha3
 New Comment:

I can reproduce this with CLI and CGI, but does it happen also with
f.e. Apache SAPIs? 


Previous Comments:


[2008-12-12 11:51:56] phildrisc...@php.net

Description:

5.3.0alpha3 does not output the first line of an included script if 
the line begins with #. Earlier versions of PHP 
(prior to 5.3.0alpha1) do output first lines beginning with #.


Reproduce code:
---
test.php



test.inc
#1
#2
#3

Expected result:

#1
#2
#3

Actual result:
--
#2
#3





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



#46846 [Opn->Asn]: Regex failure in run-tests

2008-12-16 Thread jani
 ID:   46846
 Updated by:   j...@php.net
 Reported By:  hannes dot magnusson at gmail dot com
-Status:   Open
+Status:   Assigned
 Bug Type: *Configuration Issues
 Operating System: Linux
 PHP Version:  5.3.0alpha3
 Assigned To:  zoe


Previous Comments:


[2008-12-12 17:07:05] z...@php.net

Ignore my previous comment. It not a PCRE problem, it's that the test
is producing too much output. The behaviour of PCRE hasn't changed, but
the test has. I have no idea how it ever passed in this form.




[2008-12-12 16:39:59] z...@php.net

Although the test isn't very good at it produces far too much output
the problem is in preg_match() and did not exist in PHP 5.2.6.I believe
that it was probably introduced when the PCRE library was upgraded to
version 7.8. From the documentation for preg_match() the maximum length
of a compiled pattern is 65539, preg_match() fails with pattern strings
sizes somewhere between 29738 and 29310 characters, I'm not sure what
the relationship is between the string length and the compiled pattern
length.



[2008-12-12 12:35:58] hannes dot magnusson at gmail dot com

Description:

Running ext/standard/tests/file/tempnam_variation4.phpt via
run-tests.php causes regex compile failure.

Reproduce code:
---
5.3$ TEST_PHP_EXECUTABLE=auto sapi/cli/php run-tests.php
ext/standard/tests/file/tempnam_variation4.phpt 


Actual result:
--
PHP Warning:  preg_match(): Compilation failed: regular expression is
too large at offset 35480 in /usr/src/php/5.3/run-tests.php on line
1781






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



#46862 [Opn->Fbk]: Upload and post limits

2008-12-16 Thread jani
 ID:   46862
 Updated by:   j...@php.net
 Reported By:  alp3r at msn dot com
-Status:   Open
+Status:   Feedback
 Bug Type: PHP options/info functions
 Operating System: CENTOS Enterprise 4.7 i686
 PHP Version:  5.2.8
 New Comment:

First of all, check in phpinfo() output that the correct php.ini file
is loaded (if any!). This information can be found in the very first
lines in the output: "Loaded Configuration File"


Previous Comments:


[2008-12-14 13:44:06] alp3r at msn dot com

Description:

I changed my dedicated server.
In the old one, php version was 5.2.5 and the new one, it's 5.2.8.
I had to change the php.ini (/usr/local/lib/php.ini) file.
I change safe mode to on from off, memory limit to 100M, post_max_size
to 100M from 8M, upload_max_filesize to 100M from 2M. And i restarted
the apache.
And then, when i look to phpinfo, i saw it look like this;
safe mode = on. (It's ok.)
memory limit = 100M. (It's ok.)
post_max_size = 8M (It's wrong! I changed it to 100M)
upload_max_filesize = 2M (It's wrong! I changed it to 100M too)

Is there any bug about php 5.2.8? Or how can i fix this problem?






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



#46873 [Opn->Ver]: Bus error: 10 (core dumped) in zend_hash.c

2008-12-16 Thread jani
 ID:   46873
 Updated by:   j...@php.net
 Reported By:  christian at enovo dot dk
-Status:   Open
+Status:   Verified
 Bug Type: Reproducible crash
-Operating System: FreeBSD 7.1-PRERELEASE #0
+Operating System: *
-PHP Version:  5.2.8
+PHP Version:  5.*-CVS (2008-12-16)
 New Comment:

Output with reduced test script:

# src/build/php_5_2/sapi/cli/php t.php
Segmentation fault
# src/build/php_5_3/sapi/cli/php t.php
Segmentation fault
# src/build/php_6/sapi/cli/php t.php

Warning: Invalid argument supplied for foreach() in /home/jani/t.php on
line 12

So it seems the bug is only in PHP_5* branches.


Previous Comments:


[2008-12-16 03:08:53] crrodriguez at opensuse dot org

reduced test case

 array(
'level1'
)
);

$flattened = flatten($data);

function flatten($data, $separator = array()) {
extract($separator, EXTR_OVERWRITE);
foreach ($data as $key => $val) {
flatten($val, array('separator' => $separator));
}
}

?>



[2008-12-15 23:05:56] crrodriguez at opensuse dot org

VERIFIED in 5_3

gdb) bt
#0  0x007f59b7 in zend_hash_get_current_data_ex (ht=0xfd6bf0,
pData=0x7fff96781c68, pos=0x7fff96781c48)
at /home/cristian/php5/Zend/zend_hash.c:1163
#1  0x006c313b in zif_extract (ht=2, return_value=0xfd5590,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
at /home/cristian/php5/ext/standard/array.c:1287
#2  0x00814959 in zend_do_fcall_common_helper_SPEC
(execute_data=0x7f598e5fa6e0) at
/home/cristian/php5/Zend/zend_vm_execute.h:313
#3  0x0081a050 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x7f598e5fa6e0) at
/home/cristian/php5/Zend/zend_vm_execute.h:1564
#4  0x00813a47 in execute (op_array=0xfd9298) at
/home/cristian/php5/Zend/zend_vm_execute.h:104
#5  0x007e4089 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/cristian/php5/Zend/zend.c:1197
#6  0x00766aa1 in php_execute_script
(primary_file=0x7fff96784440) at /home/cristian/php5/main/main.c:2080
#7  0x0088336b in main (argc=2, argv=0x7fff96784698) at
/home/cristian/php5/sapi/cli/php_cli.c:1126



[2008-12-15 19:43:07] christian at enovo dot dk

The issue does not exist with php 5.2.6 - but in 5.2.7/8 only.

Both with and without the Suhosin patch



[2008-12-15 19:41:35] christian at enovo dot dk

Description:

Failing server:
FreeBSD fox.enovo.dk 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE 
#0: Sat Nov  1 17:48:22 UTC 2008 
jippi...@fox.enovo.dk:/usr/obj/usr/src/sys/Fox  amd64
PHP 5.2.8 (cli) (built: Dec 15 2008 16:38:16) (DEBUG)
 
Working server:
FreeBSD cox.enovo.dk 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE 
#1: Sat Nov  1 16:45:54 UTC 2008 
jippi...@cox.enovo.dk:/usr/obj/usr/src/sys/Cox  amd64
PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Oct  8 
2008 21:37:20)


Trace:
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and 
you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `php'.
Program terminated with signal 10, Bus error.
Reading symbols from /lib/libcrypt.so.4...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libz.so.4...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libexslt.so.8...done.
Loaded symbols for /usr/local/lib/libexslt.so.8
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libmcrypt.so.8...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.8
Reading symbols from /usr/local/lib/libltdl.so.4...done.
Loaded symbols for /usr/local/lib/libltdl.so.4
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/lib/libssl.so.5...done.
Loaded symbols for /usr/lib/libssl.so.5
Reading symbols from /lib/libcrypto.so.5...done.
Loaded symbols for /lib/libcrypto.so.5
Reading symbols from /usr/lib/libbz2.so.3...done.
Loaded symbols for /usr/lib/libbz2.so.3
Reading symbols from /usr/local/lib/libcurl.so.4...done.
Loaded symbols for /usr/local/lib/libcurl.so.4
Reading symbols from /usr/local/lib/libcares.so.1...done.
Loaded symbols for /

#46880 [Opn->Bgs]: Configuration Problem

2008-12-16 Thread jani
 ID:   46880
 Updated by:   j...@php.net
 Reported By:  bineet dot kumar at wipro dot com
-Status:   Open
+Status:   Bogus
 Bug Type: *Configuration Issues
 Operating System: Linux RHEL 5
 PHP Version:  5.2.8
 New Comment:

As I assume you installed the binaries provided at mysql.com, you most
likely did not install the "headers and libraries" package. Install that
and the configure will pass.


Previous Comments:


[2008-12-16 15:09:17] bineet dot kumar at wipro dot com

i have checked in mysql. mysql-devel is not present there. But can you
tell me how this is related to the problem



[2008-12-16 14:59:02] bineet dot kumar at wipro dot com

mysql-devel package is not available in mysql distribution



[2008-12-16 14:52:36] johan...@php.net

Do you have the mysql-devel package from your distribution installed?



[2008-12-16 11:49:20] bineet dot kumar at wipro dot com

Description:

When i am trying to configure PHP with this option
 ./configure --with-apxs2=/usr/web_server2.0.59/bin/apxs
--disable-debug --enable-ftp --enable-inline-optimization
--enable-magic-quotes --enable-mbstring --enable-mm=shared
--enable-safe-mode --enable-track-vars --enable-trans-sid
--enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext
--with-mysql=/usr/local/mysql --with-regex=system --with-xml
--with-zlib-dir=/usr/lib

Getting error is :-
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.

PHP INFORMATION
PHP 5.2.8 (cli) (built: Dec 15 2008 19:57:27)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

MySQL INFORMATION
mysql-5.0.67-linux-i686 (installed location is /usr/local/mysql)

Please suggest me what i should do. Thanks in advance

Reproduce code:
---
na

Expected result:

na

Actual result:
--
Not installed





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



#46883 [Opn->Fbk]: ext/standard/tests/streams/bug46024.phpt hangs

2008-12-16 Thread jani
 ID:   46883
 Updated by:   j...@php.net
 Reported By:  long at ku dot edu
-Status:   Open
+Status:   Feedback
 Bug Type: Streams related
 Operating System: Solaris 8
 PHP Version:  5.2.8
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:


[2008-12-16 16:58:18] long at ku dot edu

Description:

When running 'make test' it is repeatedly freezing on
ext/standard/tests/streams/bug46024.phpt.  ps shows that no CPU time is
being used.

Reproduce code:
---
Using solaris 8 with cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15
configure using:

#! /bin/sh
#
# Created by configure

CFLAGS='-O' \
CC='cc' \
'./configure' \
'--enable-discard-path' \
'--with-openssl=shared' \
'--with-zlib=shared' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-dba=shared' \
'--enable-dbase' \
'--enable-exif' \
'--enable-ftp' \
'--with-gd=shared' \
'--enable-gd-native-ttf' \
'--enable-gd-jis-conv' \
'--with-gettext=shared' \
'--with-kerberos' \
'--with-imap-ssl' \
'--with-ldap' \
'--enable-mbstring' \
'--with-mysql' \
'--with-oci8' \
'--enable-shmop' \
'--enable-sockets' \
'--with-sqlite' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-freetype-dir' \
'--with-jpeg-dir' \
'--with-mysqli' \
'--with-pdo-mysql' \
'--with-pdo-oci' \
'--enable-cgi' \
'--disable-libxml' \
'--disable-dom' \
'--disable-simplexml' \
'--disable-xmlreader' \
'--disable-xmlwriter' \
'--with-libexpat-dir' \
'--enable-zip' \
'--with-iconv=/usr/local' \
"$@"

then make and make test



Expected result:

I expect the make test to complete its run.


Actual result:
--
I get something like this:

...
PASS Bug MOPB-29 (wrong length calculation for S)
[ext/standard/tests/serialize/unserializeS.phpt]
PASS Bug #44818 (php://memory writeable when opened read only)
[ext/standard/tests/streams/bug44818.phpt]
TEST 5082/5818 [ext/standard/tests/streams/bug46024.phpt]

and it has been that way for over 12 hours now.





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



#46742 [Opn->Bgs]: is_numeric function not working as per "common sense"

2008-12-16 Thread johannes
 ID:   46742
 Updated by:   johan...@php.net
 Reported By:  ben at ajmadison dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: any
 PHP Version:  5.2.6
 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:


[2008-12-16 15:51:04] zyss at mail dot zp dot ua

It shouldn't.

is_numeric() works just in the same way as in other languages,
specifically as described in PHP docs:

"Numeric strings consist of optional sign, any number of digits,
optional decimal part and optional exponential part. Thus +0123.45e6 is
a valid numeric value. Hexadecimal notation (0xFF) is allowed too but
only without sign, decimal and exponential part."

This doesn't prevent one from implementing his own algorithm with a
custom function.



[2008-12-03 17:54:02] ben at ajmadison dot com

Description:

is_numeric("1343.32") returns true, but is_numeric("1,343.32") returns
false. Since the comma is used just for visual representation, the
number represented is still numeric and is_numeric function should
return true.

Reproduce code:
---
echo is_numeric("1,343.32");

Expected result:

true

Actual result:
--
false





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



#46884 [NEW]: Options are not checked in /ext/imap

2008-12-16 Thread z...@php.net
From: z...@php.net
Operating system: Windows and Linux
PHP version:  5.3.0alpha3
PHP Bug Type: Scripting Engine problem
Bug description:  Options are not checked in /ext/imap 

Description:

This is essentially the same problem as described in #46731 and #46837.
The values of options passed to imap functions are not checked precisely.

Patches for:
imap_body(),imap_fetchstructure(),imap_fetchbody(),imap_fetchheader()

Are here:
http://www.pastebin.ca/1286942
http://www.pastebin.ca/1286943
http://www.pastebin.ca/1286944


I have also fixed missing initialisation of flags in fetchheader() in
PHP53 and PHP6.


Reproduce code:
---
Test cases here

http://www.pastebin.ca/1286945
http://www.pastebin.ca/1286947
http://www.pastebin.ca/1286948
http://www.pastebin.ca/1286949

Expected result:

As shown in test cases

Actual result:
--
PHP_INT_MAX is accepted as a valid option.

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



#46883 [NEW]: ext/standard/tests/streams/bug46024.phpt hangs

2008-12-16 Thread long at ku dot edu
From: long at ku dot edu
Operating system: Solaris 8
PHP version:  5.2.8
PHP Bug Type: Streams related
Bug description:  ext/standard/tests/streams/bug46024.phpt hangs

Description:

When running 'make test' it is repeatedly freezing on
ext/standard/tests/streams/bug46024.phpt.  ps shows that no CPU time is
being used.

Reproduce code:
---
Using solaris 8 with cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15
configure using:

#! /bin/sh
#
# Created by configure

CFLAGS='-O' \
CC='cc' \
'./configure' \
'--enable-discard-path' \
'--with-openssl=shared' \
'--with-zlib=shared' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-dba=shared' \
'--enable-dbase' \
'--enable-exif' \
'--enable-ftp' \
'--with-gd=shared' \
'--enable-gd-native-ttf' \
'--enable-gd-jis-conv' \
'--with-gettext=shared' \
'--with-kerberos' \
'--with-imap-ssl' \
'--with-ldap' \
'--enable-mbstring' \
'--with-mysql' \
'--with-oci8' \
'--enable-shmop' \
'--enable-sockets' \
'--with-sqlite' \
'--enable-sysvmsg' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-freetype-dir' \
'--with-jpeg-dir' \
'--with-mysqli' \
'--with-pdo-mysql' \
'--with-pdo-oci' \
'--enable-cgi' \
'--disable-libxml' \
'--disable-dom' \
'--disable-simplexml' \
'--disable-xmlreader' \
'--disable-xmlwriter' \
'--with-libexpat-dir' \
'--enable-zip' \
'--with-iconv=/usr/local' \
"$@"

then make and make test



Expected result:

I expect the make test to complete its run.


Actual result:
--
I get something like this:

...
PASS Bug MOPB-29 (wrong length calculation for S)
[ext/standard/tests/serialize/unserializeS.phpt]
PASS Bug #44818 (php://memory writeable when opened read only)
[ext/standard/tests/streams/bug44818.phpt]
TEST 5082/5818 [ext/standard/tests/streams/bug46024.phpt]

and it has been that way for over 12 hours now.

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



#46648 [Com]: Cannot redeclare declared function

2008-12-16 Thread zyss at mail dot zp dot ua
 ID:   46648
 Comment by:   zyss at mail dot zp dot ua
 Reported By:  satovey at yahoo dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Win98
 PHP Version:  5.2.6
 New Comment:

include_once can be used instead of include (in this case) - file will
not be included twice so there will be no errors about the function
redeclaration.


Previous Comments:


[2008-11-25 15:21:25] satovey at yahoo dot com

112508

Last night while trying to create a stripped down
version of my script so that you guys could recreate
the bug, I discovered what was actually causing it and
it was not anything that was suggested.

This turns out to not be an issue with the interpreter
or zend framework but the way errors are reported.

To recreate this error you need to do the following:

1) You will need three files.
testbug.php, testincl1.php, testincl2.php

   create a directory called testdir and put 
   testincl1.php and testincl2.php within it.

2)   Within testbug.php put the following code: 

//error reporting
ini_set('display_errors', '1');
error_reporting(E_ALL);
include("testdir/testincl1.php");

include("testdir/testincl2.php");

3) Within testincl1.php put the following code.

  echo "testincl1.php";
  include ("testincl2.php");

   At this point, you may already see the problem.
   If not step 4 will enlighten you :)

4) Within testincl2.php put the following code.

  echo "testincl2.php";
  function testfunc(){echo "testfunction";}
  testfunc();

The reason I didn't immediately catch this is due to the
fact that in my main file which calls include2.php the 
second time is that the command is on line 161

So the real issue is not an engine bug but an error reporting
bug.

*** Solutions ***

Because the error does not refer to the two seperate 
include commands for testincl2.php,
the error is obscure and hard to find.

There are three ways to handle this issue.

1) Do nothing as it is a bug in the programmers code and
has nothing to do with PHP. That's the easy way out but 
you'll keep getting these bugs reported when they for
apparent reason occur.

2) Change the debugger so that it refers to both include
commands and where they are located.

3) The best approach is to implement a new
programming rule for includes. As no two functions
can have the same name, neither should any two 
directory/includefile.php bare the same name.

Under this rule 
** Allowed **
/dir1/includefile.php
and
/dir2/includefile.php 
would be allowed because they reside under two 
different directories. This is desirable as it
is necessary for templates and themes to work
properly.

** Not Allowed **
include ("dir/includefile.php")  
include ("dir/includefile.php")
would not be allowed as they are the same file
within the same directory.

include ("dir/includefile2.php") 
within the index.php file
and 
/dir2/includefile.php which contains 
include ("includefile2.php")
would not be allowed as they are the same file 
within the same directory.

In this way, an error message would point to 
both include instances and what line they
occur on.

If the same bug in other versions have not been found out, this 
is most likely what caused them. Following either suggestion two
or three and patching previous versions to correct the issue
will take care of it permanently.

Take care.

Scott



[2008-11-23 15:14:01] crrodriguez at opensuse dot org

XAMMP includes Zend Optimizer and possible other zend extensions,
please disable all zend extensions and report back if the problem still
exists.



[2008-11-22 22:57:20] lbarn...@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 ,
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 rep

#46742 [Com]: is_numeric function not working as per "common sense"

2008-12-16 Thread zyss at mail dot zp dot ua
 ID:   46742
 Comment by:   zyss at mail dot zp dot ua
 Reported By:  ben at ajmadison dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: any
 PHP Version:  5.2.6
 New Comment:

It shouldn't.

is_numeric() works just in the same way as in other languages,
specifically as described in PHP docs:

"Numeric strings consist of optional sign, any number of digits,
optional decimal part and optional exponential part. Thus +0123.45e6 is
a valid numeric value. Hexadecimal notation (0xFF) is allowed too but
only without sign, decimal and exponential part."

This doesn't prevent one from implementing his own algorithm with a
custom function.


Previous Comments:


[2008-12-03 17:54:02] ben at ajmadison dot com

Description:

is_numeric("1343.32") returns true, but is_numeric("1,343.32") returns
false. Since the comma is used just for visual representation, the
number represented is still numeric and is_numeric function should
return true.

Reproduce code:
---
echo is_numeric("1,343.32");

Expected result:

true

Actual result:
--
false





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



#46882 [Opn]: Serialize / Unserialize missbehaviour under OS with different bit numbers

2008-12-16 Thread max at phoenixweb dot it
 ID:   46882
 User updated by:  max at phoenixweb dot it
 Reported By:  max at phoenixweb dot it
 Status:   Open
 Bug Type: Variables related
 Operating System: Centos 5.2 x86 64bit
 PHP Version:  5.2.8
 New Comment:

But this is a problem.

Serialize is needed to store PHP object as a string. Is this correct?
There are a lot of possibility of needed an object as a string, like
complex data storage, and pass data from a server to another server.

If the data is not unserializable from a different server, it's
completely useless.

When i'll upgrade my server to 12Gb of RAM (needing a 64bit OS), i'll
have to trash all the data stored with SERIALIZE on my MySqls?

I don't think that the correct way is just to add a comment to the
current documentation.

I think this should be consider a bug, cause SERIALIZE / UNSERIALIZE is
used to storage data and pass it across servers, so must be compliant
with the problems of differents OS system behaviours.


Previous Comments:


[2008-12-16 15:13:54] crrodriguez at opensuse dot org

This behavior is expected, but the documentation of serialize() does
not mention it, this is a documentation problem.



[2008-12-16 15:03:19] max at phoenixweb dot it

As I can see from the Function Manual, JSON is not a possible
alternative due to his limitation in nested elements.

So... i have to wait that somebody fix this one.

:(



[2008-12-16 14:54:16] max at phoenixweb dot it

Description:

The problem is easy.

I use SERIALIZE - UNSERIALIZE to pass complex PHP objects between
server e store it on remote.

However the SERIALIZE - UNSERIALIZE process fail while this happens
between a 64bit OS and a 32bit OS, due to a missbehaviour in the number
rappresentation (int).

For the 64bit the (INT) is the correct data type for the number:
4139868160 while for a 32bit system that numbero can handled only by a
(DOUBLE)
 

s:3:"mem";a:2:{s:6:"memory";a:5:{s:5:"total";i:4139868160;s:4:"free";i:1306845184;s:7:"buffers";i:74797056;s:6:"cached";i:2103566336;s:4:"used";i:2833022976;}s:4:"swap";a:3:{s:5:"total";i:8389742592;s:4:"free";i:8389742592;s:4:"used";i:0;}}

During the UNSERIALIZE function on the 32bit system the bitcode is lost
and the number became negative.

Reproduce code:
---
serialize this object on different OS:


[mem] => Array
(
[memory] => Array
(
[total] => 4139868160
[free] => 1331732480
[buffers] => 68988928
[cached] => 2102939648
[used] => 2808135680
)

[swap] => Array
(
[total] => 8389742592
[free] => 8389742592
[used] => 0
)

)

you'll get different SERIALIZED string that are not OS indipendent.

Expected result:

I expected that the object could be pass throug PHP servers
indipendently from the OS bit system.

Actual result:
--
The actual result is a serialized string not indipendent from OS, i
think i'll use JSON functions instead of serialize / unserialize.








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



#46882 [Com]: Serialize / Unserialize missbehaviour under OS with different bit numbers

2008-12-16 Thread crrodriguez at opensuse dot org
 ID:   46882
 Comment by:   crrodriguez at opensuse dot org
 Reported By:  max at phoenixweb dot it
 Status:   Open
 Bug Type: Variables related
 Operating System: Centos 5.2 x86 64bit
 PHP Version:  5.2.8
 New Comment:

This behavior is expected, but the documentation of serialize() does
not mention it, this is a documentation problem.


Previous Comments:


[2008-12-16 15:03:19] max at phoenixweb dot it

As I can see from the Function Manual, JSON is not a possible
alternative due to his limitation in nested elements.

So... i have to wait that somebody fix this one.

:(



[2008-12-16 14:54:16] max at phoenixweb dot it

Description:

The problem is easy.

I use SERIALIZE - UNSERIALIZE to pass complex PHP objects between
server e store it on remote.

However the SERIALIZE - UNSERIALIZE process fail while this happens
between a 64bit OS and a 32bit OS, due to a missbehaviour in the number
rappresentation (int).

For the 64bit the (INT) is the correct data type for the number:
4139868160 while for a 32bit system that numbero can handled only by a
(DOUBLE)
 

s:3:"mem";a:2:{s:6:"memory";a:5:{s:5:"total";i:4139868160;s:4:"free";i:1306845184;s:7:"buffers";i:74797056;s:6:"cached";i:2103566336;s:4:"used";i:2833022976;}s:4:"swap";a:3:{s:5:"total";i:8389742592;s:4:"free";i:8389742592;s:4:"used";i:0;}}

During the UNSERIALIZE function on the 32bit system the bitcode is lost
and the number became negative.

Reproduce code:
---
serialize this object on different OS:


[mem] => Array
(
[memory] => Array
(
[total] => 4139868160
[free] => 1331732480
[buffers] => 68988928
[cached] => 2102939648
[used] => 2808135680
)

[swap] => Array
(
[total] => 8389742592
[free] => 8389742592
[used] => 0
)

)

you'll get different SERIALIZED string that are not OS indipendent.

Expected result:

I expected that the object could be pass throug PHP servers
indipendently from the OS bit system.

Actual result:
--
The actual result is a serialized string not indipendent from OS, i
think i'll use JSON functions instead of serialize / unserialize.








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



#46880 [Fbk->Opn]: Configuration Problem

2008-12-16 Thread bineet dot kumar at wipro dot com
 ID:   46880
 User updated by:  bineet dot kumar at wipro dot com
 Reported By:  bineet dot kumar at wipro dot com
-Status:   Feedback
+Status:   Open
 Bug Type: *Configuration Issues
 Operating System: Linux RHEL 5
 PHP Version:  5.2.8
 New Comment:

i have checked in mysql. mysql-devel is not present there. But can you
tell me how this is related to the problem


Previous Comments:


[2008-12-16 14:59:02] bineet dot kumar at wipro dot com

mysql-devel package is not available in mysql distribution



[2008-12-16 14:52:36] johan...@php.net

Do you have the mysql-devel package from your distribution installed?



[2008-12-16 11:49:20] bineet dot kumar at wipro dot com

Description:

When i am trying to configure PHP with this option
 ./configure --with-apxs2=/usr/web_server2.0.59/bin/apxs
--disable-debug --enable-ftp --enable-inline-optimization
--enable-magic-quotes --enable-mbstring --enable-mm=shared
--enable-safe-mode --enable-track-vars --enable-trans-sid
--enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext
--with-mysql=/usr/local/mysql --with-regex=system --with-xml
--with-zlib-dir=/usr/lib

Getting error is :-
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.

PHP INFORMATION
PHP 5.2.8 (cli) (built: Dec 15 2008 19:57:27)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

MySQL INFORMATION
mysql-5.0.67-linux-i686 (installed location is /usr/local/mysql)

Please suggest me what i should do. Thanks in advance

Reproduce code:
---
na

Expected result:

na

Actual result:
--
Not installed





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



#46882 [Com]: Serialize / Unserialize missbehaviour under OS with different bit numbers

2008-12-16 Thread max at phoenixweb dot it
 ID:   46882
 Comment by:   max at phoenixweb dot it
 Reported By:  max at phoenixweb dot it
 Status:   Open
 Bug Type: Variables related
 Operating System: Centos 5.2 x86 64bit
 PHP Version:  5.2.8
 New Comment:

As I can see from the Function Manual, JSON is not a possible
alternative due to his limitation in nested elements.

So... i have to wait that somebody fix this one.

:(


Previous Comments:


[2008-12-16 14:54:16] max at phoenixweb dot it

Description:

The problem is easy.

I use SERIALIZE - UNSERIALIZE to pass complex PHP objects between
server e store it on remote.

However the SERIALIZE - UNSERIALIZE process fail while this happens
between a 64bit OS and a 32bit OS, due to a missbehaviour in the number
rappresentation (int).

For the 64bit the (INT) is the correct data type for the number:
4139868160 while for a 32bit system that numbero can handled only by a
(DOUBLE)
 

s:3:"mem";a:2:{s:6:"memory";a:5:{s:5:"total";i:4139868160;s:4:"free";i:1306845184;s:7:"buffers";i:74797056;s:6:"cached";i:2103566336;s:4:"used";i:2833022976;}s:4:"swap";a:3:{s:5:"total";i:8389742592;s:4:"free";i:8389742592;s:4:"used";i:0;}}

During the UNSERIALIZE function on the 32bit system the bitcode is lost
and the number became negative.

Reproduce code:
---
serialize this object on different OS:


[mem] => Array
(
[memory] => Array
(
[total] => 4139868160
[free] => 1331732480
[buffers] => 68988928
[cached] => 2102939648
[used] => 2808135680
)

[swap] => Array
(
[total] => 8389742592
[free] => 8389742592
[used] => 0
)

)

you'll get different SERIALIZED string that are not OS indipendent.

Expected result:

I expected that the object could be pass throug PHP servers
indipendently from the OS bit system.

Actual result:
--
The actual result is a serialized string not indipendent from OS, i
think i'll use JSON functions instead of serialize / unserialize.








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



#46880 [Com]: Configuration Problem

2008-12-16 Thread bineet dot kumar at wipro dot com
 ID:   46880
 Comment by:   bineet dot kumar at wipro dot com
 Reported By:  bineet dot kumar at wipro dot com
 Status:   Feedback
 Bug Type: *Configuration Issues
 Operating System: Linux RHEL 5
 PHP Version:  5.2.8
 New Comment:

mysql-devel package is not available in mysql distribution


Previous Comments:


[2008-12-16 14:52:36] johan...@php.net

Do you have the mysql-devel package from your distribution installed?



[2008-12-16 11:49:20] bineet dot kumar at wipro dot com

Description:

When i am trying to configure PHP with this option
 ./configure --with-apxs2=/usr/web_server2.0.59/bin/apxs
--disable-debug --enable-ftp --enable-inline-optimization
--enable-magic-quotes --enable-mbstring --enable-mm=shared
--enable-safe-mode --enable-track-vars --enable-trans-sid
--enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext
--with-mysql=/usr/local/mysql --with-regex=system --with-xml
--with-zlib-dir=/usr/lib

Getting error is :-
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.

PHP INFORMATION
PHP 5.2.8 (cli) (built: Dec 15 2008 19:57:27)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

MySQL INFORMATION
mysql-5.0.67-linux-i686 (installed location is /usr/local/mysql)

Please suggest me what i should do. Thanks in advance

Reproduce code:
---
na

Expected result:

na

Actual result:
--
Not installed





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



#46882 [NEW]: Serialize / Unserialize missbehaviour under OS with different bit numbers

2008-12-16 Thread max at phoenixweb dot it
From: max at phoenixweb dot it
Operating system: Centos 5.2 x86 64bit
PHP version:  5.2.8
PHP Bug Type: Variables related
Bug description:  Serialize / Unserialize missbehaviour under OS with different 
bit numbers

Description:

The problem is easy.

I use SERIALIZE - UNSERIALIZE to pass complex PHP objects between server e
store it on remote.

However the SERIALIZE - UNSERIALIZE process fail while this happens
between a 64bit OS and a 32bit OS, due to a missbehaviour in the number
rappresentation (int).

For the 64bit the (INT) is the correct data type for the number:
4139868160 while for a 32bit system that numbero can handled only by a
(DOUBLE)
 

s:3:"mem";a:2:{s:6:"memory";a:5:{s:5:"total";i:4139868160;s:4:"free";i:1306845184;s:7:"buffers";i:74797056;s:6:"cached";i:2103566336;s:4:"used";i:2833022976;}s:4:"swap";a:3:{s:5:"total";i:8389742592;s:4:"free";i:8389742592;s:4:"used";i:0;}}

During the UNSERIALIZE function on the 32bit system the bitcode is lost
and the number became negative.

Reproduce code:
---
serialize this object on different OS:


[mem] => Array
(
[memory] => Array
(
[total] => 4139868160
[free] => 1331732480
[buffers] => 68988928
[cached] => 2102939648
[used] => 2808135680
)

[swap] => Array
(
[total] => 8389742592
[free] => 8389742592
[used] => 0
)

)

you'll get different SERIALIZED string that are not OS indipendent.

Expected result:

I expected that the object could be pass throug PHP servers indipendently
from the OS bit system.

Actual result:
--
The actual result is a serialized string not indipendent from OS, i think
i'll use JSON functions instead of serialize / unserialize.




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



#46880 [Opn->Fbk]: Configuration Problem

2008-12-16 Thread johannes
 ID:   46880
 Updated by:   johan...@php.net
 Reported By:  bineet dot kumar at wipro dot com
-Status:   Open
+Status:   Feedback
 Bug Type: *Configuration Issues
 Operating System: Linux RHEL 5
 PHP Version:  5.2.8
 New Comment:

Do you have the mysql-devel package from your distribution installed?


Previous Comments:


[2008-12-16 11:49:20] bineet dot kumar at wipro dot com

Description:

When i am trying to configure PHP with this option
 ./configure --with-apxs2=/usr/web_server2.0.59/bin/apxs
--disable-debug --enable-ftp --enable-inline-optimization
--enable-magic-quotes --enable-mbstring --enable-mm=shared
--enable-safe-mode --enable-track-vars --enable-trans-sid
--enable-wddx=shared --enable-xml --with-dom --with-gd --with-gettext
--with-mysql=/usr/local/mysql --with-regex=system --with-xml
--with-zlib-dir=/usr/lib

Getting error is :-
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.

PHP INFORMATION
PHP 5.2.8 (cli) (built: Dec 15 2008 19:57:27)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

MySQL INFORMATION
mysql-5.0.67-linux-i686 (installed location is /usr/local/mysql)

Please suggest me what i should do. Thanks in advance

Reproduce code:
---
na

Expected result:

na

Actual result:
--
Not installed





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



#39726 [Com]: segmentation fault in imap_open

2008-12-16 Thread michel at webawere dot com
 ID:   39726
 Comment by:   michel at webawere dot com
 Reported By:  rommer at active dot by
 Status:   No Feedback
 Bug Type: IMAP related
 Operating System: Centos-3 x86
 PHP Version:  4.4.4
 New Comment:

Hi,

I have this simmular problem. In tried it on centos linux 5.2 with
apache and php 5.2.5. AND php 5.2.8

This command will get me an empty webpage and a line about segmentation
fault in errorlog.
$mbox = imap_open($mailbox, $user, $passwd);

In errorlog:
[notice] child pid 14851 exit signal Segmentation fault (11)

Is there a work-around ?
regards,
Michel


Previous Comments:


[2006-12-12 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".



[2006-12-04 14:23:06] tony2...@php.net

>I have increased __FD_SETSIZE in <..skip..>to 262144 before compiling
php
You should have done this before compiling c-client, as imap_open() is
just a wrapper for c-client functions.

Please make sure you've configured PHP with --enabled-debug and
regenerate the backtrace.



[2006-12-04 14:17:37] rommer at active dot by

This is backtrace (php with --enable-debug, non-stripped)

(gdb) run -X
Starting program: /usr/local/apache-clean/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 3248)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3248)]
0x404e8e64 in ?? () from /usr/local/apache-clean/modules/libphp4.so
(gdb) bt
#0  0x404e8e64 in ?? () from
/usr/local/apache-clean/modules/libphp4.so
#1  0x1011 in ?? ()
#2  0x in ?? ()



[2006-12-04 10:50:09] tony2...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2006-12-04 10:41:59] rommer at active dot by

Description:

Segmentation fault in function imap_open if script opens
~ 4000 files before.
I have increased __FD_SETSIZE in
/usr/include/bits/typesizes.h
/usr/include/linux/posix_types.h
to 262144 before compiling php (4.4.4, 5.1.6, 4.4.5-dev)


Reproduce code:
---


Expected result:

no segfault

Actual result:
--
Segmentation fault.





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



#46881 [NEW]: if file contains BOM , persian characters corrupts, replaces with QuestionMarks

2008-12-16 Thread jhoseinii at gmail dot com
From: jhoseinii at gmail dot com
Operating system: Linux-CentOS 5.2 i686
PHP version:  5.2CVS-2008-12-16 (snap)
PHP Bug Type: Unicode Engine related
Bug description:  if file contains BOM , persian characters corrupts, replaces 
with QuestionMarks

Description:

Hi,

some of windows editors adds 3 BOM character in start of files for unicode

but in my server if php-server finds BOM in start of files, it will read
php files in ISO encoding instead of UTF
and it will put out some question marks instead of persian characters
cause of the persian characters are not supported on iso encoding method

is there any plugin or module to fix this issue on server?
I insist to fix this issue on server, and I want my server to waive BOM
completely, but i cant



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



#46729 [Opn->Bgs]: xslt_base_dir parameter doesn't work

2008-12-16 Thread rrichards
 ID:   46729
 Updated by:   rricha...@php.net
 Reported By:  gpl at ircf dot fr
-Status:   Open
+Status:   Bogus
 Bug Type: XSLT related
 Operating System: Linux Ubuntu 8.10
 PHP Version:  5.2.6
 New Comment:

That syntax is from the old sablotron extension.
You can set the base directory from a document loaded via memory
using:
$xslDom->documentURI = dirname(__FILE__) . '/base/';




Previous Comments:


[2008-12-02 09:29:14] gpl at ircf dot fr

Description:

Base path cannot be changed by setting the parameter xslt_base_dir in
the xslt processor. This bug was also reported here :
http://bugs.php.net/bug.php?id=43454&edit=3

Reproduce code:
---
http://www.w3.org/1999/XSL/Transform";>');

// Then initialize the XSLTProcessor
$xsltProcessor = new xsltprocessor();

// Set the xslt_base_dir
$xsltProcessor->setParameter('','xslt_base_dir','base');


// Import the stylesheet in the processor
$xsltProcessor->importStylesheet($xslDom);
?>

Expected result:

This program should raise the following warning : Failed to load
external entity ".../base/foo"

Actual result:
--
The program raises the warning : Failed to load external entity
".../foo"





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



#46769 [Opn->WFx]: addAttributes requires prefix even when namespace is previously declared

2008-12-16 Thread rrichards
 ID:   46769
 Updated by:   rricha...@php.net
 Reported By:  keith at blacknight dot com
-Status:   Open
+Status:   Wont fix
 Bug Type: SimpleXML related
 Operating System: Ubuntu 8.10
 PHP Version:  5.2.7
 New Comment:

To maintain consistency, insure well-formed XML and prevent invalid 
internal XML structures, prefixes are required when creating namespaced

attributes. SimpleXML will re-use an already bound prefix if in scope 
though. DOM should be used if a more liberal interface is desired.


Previous Comments:


[2008-12-12 17:40:23] keith at blacknight dot com

Problem also confirmed under FreeBSD 7.0 with PHP 5.2.8.



[2008-12-05 16:53:15] keith at blacknight dot com

Sorry, this line in the sample code:

$child->addAttribute('xsi:schemaLocation', "$ns_foo foo.xsd",
$ns_xsi);

Should be:

$child->addAttribute('schemaLocation', "$ns_foo foo.xsd", $ns_xsi);



[2008-12-05 16:51:36] keith at blacknight dot com

Description:

Before bug #43221  was fixed,
addAttribute did not requires attribute names to be qnames where the
namespace has previously been declared on a parent element of the
element to which the attribute was being added. Revision 1.246
 broke this by requiring both that attributes with a
namespace other than the default namespace *must* be prefixed regardless
of whether the namespace has been declared with a prefix or not.

SimpleXML->addAttribute() should only require qnames be prefixed if and
only if the namespace provided has not been previously declared.

Reproduce code:
---
http://www.w3.org/2001/XMLSchema-instance";;

$root_doc = <<

EOT;

$root = simplexml_load_string($root_doc);
print_r($root->asXml());
$child = $root->addChild('bar', null, $ns_foo);
print_r($root->asXml());
$child->addAttribute('xsi:schemaLocation', "$ns_foo foo.xsd",
$ns_xsi);
print_r($root->asXml());


Expected result:


http://www.w3.org/2001/XMLSchema-instance";
xmlns="tag:example.com,2008" xmlns:foo="tag:example.com,2008:foo"
xsi:schemaLocation="tag:example.com,2008 root.xsd">

Actual result:
--
Warning: SimpleXMLElement::addAttribute(): Attribute requires prefix
for namespace in /home/keith/simplexml-regression.php on line 15

http://www.w3.org/2001/XMLSchema-instance";
xmlns="tag:example.com,2008" xmlns:foo="tag:example.com,2008:foo"
xsi:schemaLocation="tag:example.com,2008 root.xsd">





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



#46866 [Opn->Bgs]: xml_parse now ignoring html entities in the xml

2008-12-16 Thread rrichards
 ID:   46866
 Updated by:   rricha...@php.net
 Reported By:  bill at billjill dot org
-Status:   Open
+Status:   Bogus
-Bug Type: XML Reader
+Bug Type: *XML functions
 Operating System: Linux
 PHP Version:  5.2.8
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Dupe of bug #45996


Previous Comments:


[2008-12-15 03:57:35] bill at billjill dot org

Description:

Under 5.2.6 and earlier version, the xml parser would correctly read in
html entities (such as <) in the XML. In 5.2.8, these entities are
being ignored

Reproduce code:
---
You can see the source for a simple test program here:
http://outofthebloo.com/test/xmlparsertest.php.txt

Expected result:

Do a View Source on the result of the xmlparsertest.php program, and
you should see this (see the portion toward the bottom near "This should
be bold")

Array
(
[0] => Array
(
[name] => OVERLAYS
[attrs] => Array
(
)

[children] => Array
(
[0] => Array
(
[name] => OVERLAY
[attrs] => Array
(
)

[children] => Array
(
[0] => Array
(
[name] => NAME
[attrs] => Array
(
)

[tagData] => Test
)

[1] => Array
(
[name] => TYPE
[attrs] => Array
(
)

[tagData] => template
)

[2] => Array
(
[name] => SYNTAX
[attrs] => Array
(
)

[tagData] => This should be bold
)

)

)

)

)

)



Actual result:
--
Here's the actual result. NOTE that the "<" and ">" tag characters are
missing near the "This should be bold" text:

Array
(
[0] => Array
(
[name] => OVERLAYS
[attrs] => Array
(
)

[children] => Array
(
[0] => Array
(
[name] => OVERLAY
[attrs] => Array
(
)

[children] => Array
(
[0] => Array
(
[name] => NAME
[attrs] => Array
(
)

[tagData] => Test
)

[1] => Array
(
[name] => TYPE
[attrs] => Array
(
)

[tagData] => template
)

[2] => Array
(
[name] => SYNTAX
[attrs] => Array
(
)

[tagData] => div
id=quotebThis should be bold/b/div
)


#46849 [Asn->Csd]: Cloning DOMDocument doesn't clone the properties

2008-12-16 Thread rrichards
 ID:   46849
 Updated by:   rricha...@php.net
 Reported By:  hannes dot magnusson at gmail dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: DOM XML related
 Operating System: Linux
 PHP Version:  5.3.0alpha3
 Assigned To:  rrichards
 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:


[2008-12-12 14:01:42] hannes dot magnusson at gmail dot com

Description:

Cloning and DOMDocument doesn't clone the properties

Reproduce code:
---
formatOutput = 1;
var_dump($dom->formatOutput);

$dom2 = clone $dom;
var_dump($dom2->formatOutput);


Expected result:

bool(true)
bool(true)

Actual result:
--
bool(true)
bool(false)





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



#46880 [NEW]: Configuration Problem

2008-12-16 Thread bineet dot kumar at wipro dot com
From: bineet dot kumar at wipro dot com
Operating system: Linux RHEL 5
PHP version:  5.2.8
PHP Bug Type: *Configuration Issues
Bug description:  Configuration Problem

Description:

When i am trying to configure PHP with this option
 ./configure --with-apxs2=/usr/web_server2.0.59/bin/apxs --disable-debug
--enable-ftp --enable-inline-optimization --enable-magic-quotes
--enable-mbstring --enable-mm=shared --enable-safe-mode --enable-track-vars
--enable-trans-sid --enable-wddx=shared --enable-xml --with-dom --with-gd
--with-gettext --with-mysql=/usr/local/mysql --with-regex=system --with-xml
--with-zlib-dir=/usr/lib

Getting error is :-
checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
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.

PHP INFORMATION
PHP 5.2.8 (cli) (built: Dec 15 2008 19:57:27)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

MySQL INFORMATION
mysql-5.0.67-linux-i686 (installed location is /usr/local/mysql)

Please suggest me what i should do. Thanks in advance

Reproduce code:
---
na

Expected result:

na

Actual result:
--
Not installed

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



#46879 [Opn->Bgs]: Float addition not always precise

2008-12-16 Thread derick
 ID:   46879
 Updated by:   der...@php.net
 Reported By:  php at thwien dot de
-Status:   Open
+Status:   Bogus
 Bug Type: Variables related
 Operating System: Linux-Debian 4.0
 PHP Version:  5.2CVS-2008-12-16 (snap)
 New Comment:

Floating point values have a limited precision. Hence a value might 
not have the same string representation after any processing. That also
includes writing a floating point value in your script and directly 
printing it without any mathematical operations.

If you would like to know more about "floats" and what IEEE
754 is, read this:
http://docs.sun.com/source/806-3568/ncg_goldberg.html
 
Thank you for your interest in PHP.

.


Previous Comments:


[2008-12-16 11:24:06] php at thwien dot de

Description:

Float comparison after addition isn't precise always.

Reproduce code:
---
$floatTotal = 19.99 + 39.99;
  
print ($floatTotal - 59.98);

Expected result:

0

Actual result:
--
7.105427357601E-15





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



#46879 [NEW]: Float addition not always precise

2008-12-16 Thread php at thwien dot de
From: php at thwien dot de
Operating system: Linux-Debian 4.0
PHP version:  5.2CVS-2008-12-16 (snap)
PHP Bug Type: Variables related
Bug description:  Float addition not always precise

Description:

Float comparison after addition isn't precise always.

Reproduce code:
---
$floatTotal = 19.99 + 39.99;
  
print ($floatTotal - 59.98);

Expected result:

0

Actual result:
--
7.105427357601E-15

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



#46848 [Com]: Missing Record in query

2008-12-16 Thread mapopa at gmail dot com
 ID:   46848
 Comment by:   mapopa at gmail dot com
 Reported By:  lestilucio at gmail dot com
 Status:   Open
 Bug Type: InterBase related
 Operating System: windows xp professional
 PHP Version:  5.2.8
 New Comment:

Tested with latest stable 5.2.8 and results are correct 

/opt/php5.2.8/bin/php -v 
PHP 5.2.8 (cli) (built: Dec 16 2008 12:19:54) (DEBUG)



/opt/php5.2.8/bin/php /var/www/test.php 
1Baldwin2Bender3Bennet4Bishop5Brown6Burbank7Cook8De
Souza9Ferrari10Fisher11Forest12Glon13Green14Guckenheimer15Hall16Ichida17Johnson18Johnson19Lambert20Lee21Leung22MacDonald23Montgomery24Nelson25Nordstrom26O'Brien27Osborne28Page29Papadopoulos30Parker31Phong32Ramanathan33Reeves34Stansbury35Steadman36Sutherland37Weston38Williams39Yamamoto40Yanowski41Young42Young


also in flamerobin results are the same 

could you post the php_info ?


Previous Comments:


[2008-12-16 10:02:20] mapopa at gmail dot com

I have tested on my ubuntu box (jaunty) with firebird2.1 and php 5.2.6

and the rows are returned correctly 

$query='SELECT * FROM employee ORDER BY LAST_NAME ASC';

$username = "SYSDBA";
$password = "masterkey";
$host = '/var/lib/firebird/2.1/data/employee.fdb';
$conn = ibase_connect($host, $username, $password,'ISO8859_1',0,2)
or die("Connection failed:");
$dati = ibase_query($conn, $query)
or die("invalid query");
$i=0;
while ($row = ibase_fetch_object ($dati))
{
echo ++$i;
echo $row->LAST_NAME;


Here is the result

1Baldwin2Bender3Bennet4Bishop5Brown6Burbank7Cook8De
Souza9Ferrari10Fisher11Forest12Glon13Green14Guckenheimer15Hall16Ichida17Johnson18Johnson19Lambert20Lee21Leung22MacDonald23Montgomery24Nelson25Nordstrom26O'Brien27Osborne28Page29Papadopoulos30Parker31Phong32Ramanathan33Reeves34Stansbury35Steadman36Sutherland37Weston38Williams39Yamamoto40Yanowski41Young42Young



[2008-12-12 12:50:45] lestilucio at gmail dot com

Description:

Hello,
I'm having a problem with an application developed in PHP, with an
interbase/firebird database. I have Firebird 2.0.0 installed.
I use the following code to display the whole records of a table with a
query:

Reproduce code:
---
$query='SELECT * FROM ARTICLES ORDER BY DESCRIPTION ASC';

$username = "SYSDBA";
$password = "masterkey";
$host = 'C:\myposCE\EMPORIUMDB.GDB';
$conn = ibase_connect($host, $username, $password,'ISO8859_1',0,2)
or die("Connection failed:");
$dati = ibase_query($conn, $query)
or die("invalid query");

while ($row = ibase_fetch_object ($dati)) 
{
echo $row->DESCRIPTION;
echo "";
}

Expected result:

I'm expected to see:
1 - GLASS
2 - TABLE
3 - CHAIR

Actual result:
--
Actual output:
1- TABLE
2- CHAIR

The problem is that the query miss the first record of the table.
Trying to change the ASC clause in DESC will only miss the last record
instead of the first.

If my table contains only a record, the query will display nothing at
all!

How can I solve this problem? 





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



#46878 [NEW]: my wsdl is not loaded correctly

2008-12-16 Thread a at rejetto dot com
From: a at rejetto dot com
Operating system: both windows xp and linux
PHP version:  5.2CVS-2008-12-16 (snap)
PHP Bug Type: SOAP related
Bug description:  my wsdl is not loaded correctly

Description:

this wsdl appears to be correct. Indeed, this website loads it correctly,
showing method getNumeroEsami(matricola)

http://www.soapclient.com/soapclient?template=%2Fclientform.html&fn=soapform&SoapTemplate=%2FSoapResult.html&SoapWSDL=http%3A%2F%2Fdelphi.uniroma2.it%2Ftotem%2Fservices%2FCarrieraStudenti%3Fwsdl&_ArraySize=2

by using the attached php code, you'll see the method is not listed (and
another one is instead duplicated, non-sense isn't it?)


Reproduce code:
---
$soap = new
SoapClient("http://delphi.uniroma2.it/totem/services/CarrieraStudenti?wsdl";);

var_dump($soap->__getFunctions());


Expected result:

array(3) {
  [0]=>
  string(45) "string getNumeroEsami(string $cf, string $aa)"
  [1]=>
  string(45) "string getNumeroEsami(string $matricola)"
  [2]=>
  string(43) "Studente getElencoEsami(string $codFiscale)"
}


Actual result:
--
array(3) {
  [0]=>
  string(45) "string getNumeroEsami(string $cf, string $aa)"
  [1]=>
  string(45) "string getNumeroEsami(string $cf, string $aa)"
  [2]=>
  string(43) "Studente getElencoEsami(string $codFiscale)"
}


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



#45176 [Com]: Create image from ttf file failed

2008-12-16 Thread patrick dot landolt at artack dot ch
 ID:   45176
 Comment by:   patrick dot landolt at artack dot ch
 Reported By:  heyond at yahoo dot com dot cn
 Status:   Assigned
 Bug Type: GD related
 Operating System: windows 2003
 PHP Version:  5.2.6
 Assigned To:  pajoye
 New Comment:

I also have the same problem with GD on PHP V5.2.6 installed. My font
is a chinese one.


Previous Comments:


[2008-06-05 06:45:11] heyond at yahoo dot com dot cn

The completed script is:
http://www.guomo.com/data/fonts/1.ttf This file
'1.ttf' is normal
$fontfile =
'./data/fonts/174.ttf';//http://www.guomo.com/data/fonts/174.ttf This
file '174.ttf' is abnormal

$width = 30
$height = 40;

$fontsize = 20;
$x = 0;
$y = $fontsize + 10;

$im = imagecreate($wordnum * $width, $height);
$bgcolor = imagecolorallocate($im, hexdec(substr(BG1, 0, 2)),
hexdec(substr(BG1, 2, 2)), hexdec(substr(BG1, 4, 2)));
$fgcolor = imagecolorallocate($im, 0, 0, 0);
imagefill($im, 0, 0, $bgcolor);

imagettftext($im, $fontsize, 0, $x, $y, $fgcolor, $fontfile, $word);
imagejpeg($im);
imagedestroy($im);
exit;

?>



[2008-06-05 06:38:14] heyond at yahoo dot com dot cn

http://www.guomo.com/data/fonts/174.ttf



[2008-06-04 16:23:40] paj...@php.net

"Warning: imagettftext() [function.imagettftext]: Unable to find a
CharMap that I can handle in D:\www\guomo.com\ttf.php on line 33"

Is a pretty clear error message.

Please provide a link to the font you are using a complete script to
reproduce your problem.





[2008-06-04 14:24:08] heyond at yahoo dot com dot cn

Description:

I try to create a font image from ttf file, but I encounted a error :

Warning: imagettftext() [function.imagettftext]: Unable to find a
CharMap that I can handle in D:\www\mvc\ttf2.php on line 49

only few ttf file like this, I guess the freetypes version too lower.

Reproduce code:
---
imagettftext($im, $fontsize, 0, $x, $y, $fgcolor, $fontfile, 'abc');

Expected result:

a binary image.

Actual result:
--
Warning: imagettftext() [function.imagettftext]: Unable to find a
CharMap that I can handle in D:\www\guomo.com\ttf.php on line 33
ÿ?JFIFÿ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality ÿC    $.' ",#(7),01444'9=82<.342ÿC

2!!22ÿ(J"ÿ
ÿ?}!1AQa"q2‘?#B±ÁRÑð$3br?
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øù?
ÿ?w!1AQaq"2?B‘¡±Á
#3R?br?$4??&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚâãäåæçèéêòóôõö÷øùúÿ
?õJ(¢¸Í‚ÿ





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



#46848 [Com]: Missing Record in query

2008-12-16 Thread mapopa at gmail dot com
 ID:   46848
 Comment by:   mapopa at gmail dot com
 Reported By:  lestilucio at gmail dot com
 Status:   Open
 Bug Type: InterBase related
 Operating System: windows xp professional
 PHP Version:  5.2.8
 New Comment:

I have tested on my ubuntu box (jaunty) with firebird2.1 and php 5.2.6

and the rows are returned correctly 

$query='SELECT * FROM employee ORDER BY LAST_NAME ASC';

$username = "SYSDBA";
$password = "masterkey";
$host = '/var/lib/firebird/2.1/data/employee.fdb';
$conn = ibase_connect($host, $username, $password,'ISO8859_1',0,2)
or die("Connection failed:");
$dati = ibase_query($conn, $query)
or die("invalid query");
$i=0;
while ($row = ibase_fetch_object ($dati))
{
echo ++$i;
echo $row->LAST_NAME;


Here is the result

1Baldwin2Bender3Bennet4Bishop5Brown6Burbank7Cook8De
Souza9Ferrari10Fisher11Forest12Glon13Green14Guckenheimer15Hall16Ichida17Johnson18Johnson19Lambert20Lee21Leung22MacDonald23Montgomery24Nelson25Nordstrom26O'Brien27Osborne28Page29Papadopoulos30Parker31Phong32Ramanathan33Reeves34Stansbury35Steadman36Sutherland37Weston38Williams39Yamamoto40Yanowski41Young42Young


Previous Comments:


[2008-12-12 12:50:45] lestilucio at gmail dot com

Description:

Hello,
I'm having a problem with an application developed in PHP, with an
interbase/firebird database. I have Firebird 2.0.0 installed.
I use the following code to display the whole records of a table with a
query:

Reproduce code:
---
$query='SELECT * FROM ARTICLES ORDER BY DESCRIPTION ASC';

$username = "SYSDBA";
$password = "masterkey";
$host = 'C:\myposCE\EMPORIUMDB.GDB';
$conn = ibase_connect($host, $username, $password,'ISO8859_1',0,2)
or die("Connection failed:");
$dati = ibase_query($conn, $query)
or die("invalid query");

while ($row = ibase_fetch_object ($dati)) 
{
echo $row->DESCRIPTION;
echo "";
}

Expected result:

I'm expected to see:
1 - GLASS
2 - TABLE
3 - CHAIR

Actual result:
--
Actual output:
1- TABLE
2- CHAIR

The problem is that the query miss the first record of the table.
Trying to change the ASC clause in DESC will only miss the last record
instead of the first.

If my table contains only a record, the query will display nothing at
all!

How can I solve this problem? 





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



#46874 [Opn->Bgs]: DatePeriod not resetting after foreach loop

2008-12-16 Thread derick
 ID:   46874
 Updated by:   der...@php.net
 Reported By:  php at michaelcrumley dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Date/time related
 Operating System: WIN32
 PHP Version:  5.3.0alpha3
 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:


[2008-12-15 20:55:18] php at michaelcrumley dot com

Description:

After looping through a DatePeriod object, the current date is not
reset so looping again starts at the same date. Maybe that is the
intended behavior, but I would expect it to start at the same date each
time.


Reproduce code:
---
$dp = new DatePeriod('R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M');

foreach ($dp as $date) {
echo $date->format("Y-m-d H:i:s\n");
}

echo "\n";

// this should repeat the same range
foreach ($dp as $date) {
echo $date->format("Y-m-d H:i:s\n");
}


Expected result:

2008-03-01 13:00:00
2009-05-11 15:30:00
2010-07-21 18:00:00
2011-10-01 20:30:00
2012-12-11 23:00:00
2014-02-22 01:30:00

2008-03-01 13:00:00
2009-05-11 15:30:00
2010-07-21 18:00:00
2011-10-01 20:30:00
2012-12-11 23:00:00
2014-02-22 01:30:00


Actual result:
--
2008-03-01 13:00:00
2009-05-11 15:30:00
2010-07-21 18:00:00
2011-10-01 20:30:00
2012-12-11 23:00:00
2014-02-22 01:30:00

2015-05-02 04:00:00
2016-07-12 06:30:00
2017-09-22 09:00:00
2018-12-02 11:30:00
2020-02-12 14:00:00
2021-04-22 16:30:00






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



#44679 [NoF->Fbk]: Lighttpd spawn-fcgi CRASH with PHP 5.2.6RC4

2008-12-16 Thread pajoye
 ID:   44679
 Updated by:   paj...@php.net
 Reported By:  nanu at comsenz dot com
-Status:   No Feedback
+Status:   Feedback
 Bug Type: CGI related
 Operating System: CentOS 5.1
 PHP Version:  5.2.6RC4
 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:


[2008-12-16 04:54:03] yebssy at gmail dot com

PHP 5.2.8 reproduced.
$ sudo /opt/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 4 -u nobody -f
/opt/bin/php-cgi
spawn-fcgi.c.229: child exited with: 254



[2008-04-17 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-04-09 22:30:15] j...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2008-04-09 14:19:04] nanu at comsenz dot com

Description:

Today, I upgrade my server's PHP to 5.2.6RC4, after installed PHP, when
I start PHP Fast-CGI via spawn-fcgi,it reports the following error
message and quit.

spawn-fcgi.c.218: child exited with: 254, Unknown error 254

My Lighttpd (spawn-fcgi) version is 1.4.19,and didn't use any other
compile option while install Lighttpd, just ./configure && make. 

And this version of spawn-fcgi works well with php5.2-200803131130
snap.






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