[PHP-BUG] Bug #62616 [NEW]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault

2012-07-20 Thread zoeslam at gmail dot com
From: zoeslam at gmail dot com
Operating system: Ubuntu 12.04
PHP version:  5.4.5
Package:  SPL related
Bug Type: Bug
Bug description:ArrayIterator::count() from IteratorIterator instance gives 
Segmentation fault

Description:

The code explains all, no idea why it happens.

Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.

Test script:
---
$ai = new ArrayIterator(array(0,1));

var_dump($ai-count());

$ii = new IteratorIterator($ai);

var_dump($ii-count());


Expected result:

int(2)
int(2)

Actual result:
--
int(2)
int(2)
Segmentation fault

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



Bug #62616 [Com]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault

2012-07-20 Thread vanidlesky dot jr at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62616edit=1

 ID: 62616
 Comment by: vanidlesky dot jr at gmail dot com
 Reported by:zoeslam at gmail dot com
 Summary:ArrayIterator::count() from IteratorIterator
 instance gives Segmentation fault
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Ubuntu 12.04
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

VanZCool


Previous Comments:

[2012-07-20 08:07:05] zoeslam at gmail dot com

Description:

The code explains all, no idea why it happens.

Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.

Test script:
---
$ai = new ArrayIterator(array(0,1));

var_dump($ai-count());

$ii = new IteratorIterator($ai);

var_dump($ii-count());


Expected result:

int(2)
int(2)

Actual result:
--
int(2)
int(2)
Segmentation fault






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


Bug #55544 [Com]: ob_gzhandler always conflicts with zlib.output_compression

2012-07-20 Thread webmaster at abyssunderground dot co dot uk
Edit report at https://bugs.php.net/bug.php?id=55544edit=1

 ID: 55544
 Comment by: webmaster at abyssunderground dot co dot uk
 Reported by:diogin at gmail dot com
 Summary:ob_gzhandler always conflicts with
 zlib.output_compression
 Status: Closed
 Type:   Bug
 Package:Output Control
 Operating System:   Windows XP SP3 x86
 PHP Version:5.4.0alpha3
 Assigned To:mike
 Block user comment: N
 Private report: N

 New Comment:

Still present in the recent 5.4.5 update. Very frustrating.


Previous Comments:

[2012-07-17 17:11:23] manu at gandi dot net

same problem open for 5.4.4:
https://bugs.php.net/bug.php?id=62335


[2012-07-17 14:15:36] bugs dot php at mohiva dot com

Same problem here. This bug isn't fixed in 5.4.5RC1.


[2012-07-02 07:26:54] dietmar at gps-tour dot info

Hi, it's not fixed in my PHP Version: 5.4.4-2~dotdeb.0

The Line ZLIBG(output_compression) = 0; in ext/zlib/zlib.c from the obove 
commit 
is not in the actual head or 5.4.4 branch anymore.


[2012-06-22 13:35:28] ewal at pointpro dot nl

You are right. It seems to be fixed in php-5.4.4-1; no more errors now. Thanks.


[2012-06-21 11:56:24] v dot a dot popov at gmail dot com

Seems to be a problem in merging the fix to actual branch, which releases are 
made of.
This commit:
http://git.php.net/?p=php-src.git;a=commit;h=85a62e9086db7a8ddfcda4ab1279a2439935f8d5
really fixes the problem, but relevant line is not present in php-5.4.3 and 
php-5.4.4.




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

https://bugs.php.net/bug.php?id=55544


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


Doc-Bug #62537 [Opn]: Composed class has fatal error with duplicate, equal array properties

2012-07-20 Thread aharvey
Edit report at https://bugs.php.net/bug.php?id=62537edit=1

 ID: 62537
 Updated by: ahar...@php.net
 Reported by:jeremeamia at gmail dot com
 Summary:Composed class has fatal error with duplicate, equal
 array properties
 Status: Open
-Type:   Documentation Problem
+Type:   Bug
-Package:Documentation problem
+Package:Class/Object related
 Operating System:   Ubuntu
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

I'd call this a bug, rather than a documentation issue; if Foo::$var === 
Bar::$var, I can't really see why it should fatal.

Reclassifying, and we'll see what the engine folk think.


Previous Comments:

[2012-07-12 01:36:55] jeremeamia at gmail dot com

Another test script, which might be even more relevant:

  trait Foo {public $var = [];}
  class Bar {use Foo; public $var = [];}

This also causes a fatal error for me, which should only be a strict error 
based 
on the documentation.


[2012-07-11 19:45:00] jeremeamia at gmail dot com

Description:

---
From manual page: http://www.php.net/language.oop5.traits
---

The manual says, If a trait defines a property then a class can not define a 
property with the same name, otherwise an error is issued. It is an E_STRICT if 
the class definition is compatible (same visibility and initial value) or fatal 
error otherwise.

This does not appear to be true when the same-named properties have array 
values. 
See the test script for a quick example. It seems that it behaves as the 
documentation describes only with scalar values.

This is either missing/erroneous documentation (i.e. the behavior is intended), 
or 
it is a bug (i.e. equal array values should not cause a fatal error).

Test script:
---
trait Foo {public $var = [];}
trait Bar {public $var = [];}
class Baz {use Foo, Bar;}

Expected result:

To behave as the documentation describes, i.e. no fatal errors occuring.

Actual result:
--
PHP Fatal error:  Foo and Bar define the same property ($var) in the 
composition 
of Baz. However, the definition differs and is considered incompatible.






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


Bug #45191 [Com]: error_log ignores date.timezone php.ini val when setting logging timestamps

2012-07-20 Thread rohgeo at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=45191edit=1

 ID: 45191
 Comment by: rohgeo at gmail dot com
 Reported by:info at organicdata dot co dot za
 Summary:error_log ignores date.timezone php.ini val when
 setting logging timestamps
 Status: Closed
 Type:   Bug
 Package:Date/time related
 Operating System:   Centos el5
 PHP Version:5.2CVS-2008-06-05 (snap)
 Assigned To:derick
 Block user comment: N
 Private report: N

 New Comment:

Same problem here with PHP 5.4.5.


Previous Comments:

[2012-07-17 09:54:40] rohgeo at gmail dot com

php 5.4.4
all messages in /var/log/php_errors.log have UTC timestamps


[2012-06-23 13:55:17] bram at ebskamp dot me

Same problem here with PHP 5.4.3.


[2012-05-30 07:32:57] rohgeo at gmail dot com

php 5.4.3
all messages in /var/log/php_errors.log have UTC timestamps.


[2012-05-03 14:37:16] php at sboxx dot org

Red Hat Entrprise Linux 6.2
PHP 5.4.1
date.timezone = Europe/Berlin
log_errors = On
error_log = /var/log/php_errors.log

All messages in /var/log/php_errors.log have UTC timestamps.
System time is set and correctly displayed as CET/CEST.


[2012-02-12 09:56:41] wadkar at gmail dot com

@christopher
Interesting observation. My report is with 5.3.8 version, which outputs the log 
with UTC timestamp (the timezone is part of it). I am getting a feeling that 
this might not be a direct issue with php-src but somewhere in between system 
calls made by php-src for logging and the OS itself which passes on TZ data for 
this call.




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

https://bugs.php.net/bug.php?id=45191


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


[PHP-BUG] Bug #62619 [NEW]: com_create_guid not available anymore

2012-07-20 Thread mb at smartftp dot com
From: mb at smartftp dot com
Operating system: Windows 7
PHP version:  5.4.5
Package:  COM related
Bug Type: Bug
Bug description:com_create_guid not available anymore

Description:

The com_create_guid function does not seem to be available anymore in PHP
5.4.5.

Test script:
---
com_create_guid();


Expected result:

no error

Actual result:
--
PHP Fatal error:  Call to undefined function com_create_guid()

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



Bug #62616 [Opn]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault

2012-07-20 Thread fa
Edit report at https://bugs.php.net/bug.php?id=62616edit=1

 ID: 62616
 Updated by: f...@php.net
 Reported by:zoeslam at gmail dot com
 Summary:ArrayIterator::count() from IteratorIterator
 instance gives Segmentation fault
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Ubuntu 12.04
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

Reproducible on Debian wheezy with 5.4.0 and 5.4.5.


Previous Comments:

[2012-07-20 08:13:34] vanidlesky dot jr at gmail dot com

VanZCool


[2012-07-20 08:07:05] zoeslam at gmail dot com

Description:

The code explains all, no idea why it happens.

Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.

Test script:
---
$ai = new ArrayIterator(array(0,1));

var_dump($ai-count());

$ii = new IteratorIterator($ai);

var_dump($ii-count());


Expected result:

int(2)
int(2)

Actual result:
--
int(2)
int(2)
Segmentation fault






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


Bug #62619 [Opn-Nab]: com_create_guid not available anymore

2012-07-20 Thread ab
Edit report at https://bugs.php.net/bug.php?id=62619edit=1

 ID: 62619
 Updated by: a...@php.net
 Reported by:mb at smartftp dot com
 Summary:com_create_guid not available anymore
-Status: Open
+Status: Not a bug
 Type:   Bug
 Package:COM related
 Operating System:   Windows 7
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

The com_dotnet extension isn't compiled in statically anymore. It's still 
available as a shared extension and must be activated in php.ini. See UPGRADING 
windows section.


Previous Comments:

[2012-07-20 11:41:37] mb at smartftp dot com

Description:

The com_create_guid function does not seem to be available anymore in PHP 5.4.5.

Test script:
---
com_create_guid();


Expected result:

no error

Actual result:
--
PHP Fatal error:  Call to undefined function com_create_guid()






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


Bug #62616 [Opn]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault

2012-07-20 Thread fa
Edit report at https://bugs.php.net/bug.php?id=62616edit=1

 ID: 62616
 Updated by: f...@php.net
 Reported by:zoeslam at gmail dot com
 Summary:ArrayIterator::count() from IteratorIterator
 instance gives Segmentation fault
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Ubuntu 12.04
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

BT

#0  0x7fdfaf4221d8 in ?? ()
#1  0x00594a41 in spl_dual_it_free (intern=0x7fdfaf53fa20) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:1585
#2  spl_dual_it_dtor (_object=0x7fdfaf53fa20, handle=optimized out) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:2237
#3  0x006a7b20 in zend_objects_store_del_ref_by_handle_ex (handle=2, 
handlers=optimized out) at /opt/src/php-5.4.5/Zend/zend_objects_API.c:206
#4  0x006a7b63 in zend_objects_store_del_ref (zobject=0x7fdfaf53f990) 
at 
/opt/src/php-5.4.5/Zend/zend_objects_API.c:172
#5  0x00674082 in _zval_dtor (zvalue=optimized out) at /opt/src/php-
5.4.5/Zend/zend_variables.h:35
#6  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:438
#7  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:427
#8  0x0068e28b in zend_hash_apply_deleter (ht=ht@entry=0xd34508, 
p=p@entry=0x7fdfaf53fb18) at /opt/src/php-5.4.5/Zend/zend_hash.c:650
#9  0x0068fdd1 in zend_hash_reverse_apply (ht=0xd34508, 
apply_func=apply_func@entry=0x673f10 zval_call_destructor) at /opt/src/php-
5.4.5/Zend/zend_hash.c:804
#10 0x0067438b in shutdown_destructors () at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:217
#11 0x006826c0 in zend_call_destructors () at /opt/src/php-
5.4.5/Zend/zend.c:925
#12 0x00624805 in php_request_shutdown (dummy=dummy@entry=0x0) at 
/opt/src/php-5.4.5/main/main.c:1723
#13 0x00726004 in do_cli (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1174
#14 0x00428455 in main (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1364


Previous Comments:

[2012-07-20 11:54:38] f...@php.net

Reproducible on Debian wheezy with 5.4.0 and 5.4.5.


[2012-07-20 08:13:34] vanidlesky dot jr at gmail dot com

VanZCool


[2012-07-20 08:07:05] zoeslam at gmail dot com

Description:

The code explains all, no idea why it happens.

Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.

Test script:
---
$ai = new ArrayIterator(array(0,1));

var_dump($ai-count());

$ii = new IteratorIterator($ai);

var_dump($ii-count());


Expected result:

int(2)
int(2)

Actual result:
--
int(2)
int(2)
Segmentation fault






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


Bug #62619 [Nab]: com_create_guid not available anymore

2012-07-20 Thread mb at smartftp dot com
Edit report at https://bugs.php.net/bug.php?id=62619edit=1

 ID: 62619
 User updated by:mb at smartftp dot com
 Reported by:mb at smartftp dot com
 Summary:com_create_guid not available anymore
 Status: Not a bug
 Type:   Bug
 Package:COM related
 Operating System:   Windows 7
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

It is certainly not a good idea to make such a change in a maintenance release 
(5.4.5) as the functions were still available in 5.4.4.
There was also nothing mentioned in the official changelog/NEWS.


Previous Comments:

[2012-07-20 12:30:43] a...@php.net

The com_dotnet extension isn't compiled in statically anymore. It's still 
available as a shared extension and must be activated in php.ini. See UPGRADING 
windows section.


[2012-07-20 11:41:37] mb at smartftp dot com

Description:

The com_create_guid function does not seem to be available anymore in PHP 5.4.5.

Test script:
---
com_create_guid();


Expected result:

no error

Actual result:
--
PHP Fatal error:  Call to undefined function com_create_guid()






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


Bug #62616 [Opn-Ver]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault

2012-07-20 Thread fa
Edit report at https://bugs.php.net/bug.php?id=62616edit=1

 ID: 62616
 Updated by: f...@php.net
 Reported by:zoeslam at gmail dot com
 Summary:ArrayIterator::count() from IteratorIterator
 instance gives Segmentation fault
-Status: Open
+Status: Verified
 Type:   Bug
 Package:SPL related
 Operating System:   Ubuntu 12.04
 PHP Version:5.4.5
 Block user comment: N
 Private report: N



Previous Comments:

[2012-07-20 12:54:55] f...@php.net

BT

#0  0x7fdfaf4221d8 in ?? ()
#1  0x00594a41 in spl_dual_it_free (intern=0x7fdfaf53fa20) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:1585
#2  spl_dual_it_dtor (_object=0x7fdfaf53fa20, handle=optimized out) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:2237
#3  0x006a7b20 in zend_objects_store_del_ref_by_handle_ex (handle=2, 
handlers=optimized out) at /opt/src/php-5.4.5/Zend/zend_objects_API.c:206
#4  0x006a7b63 in zend_objects_store_del_ref (zobject=0x7fdfaf53f990) 
at 
/opt/src/php-5.4.5/Zend/zend_objects_API.c:172
#5  0x00674082 in _zval_dtor (zvalue=optimized out) at /opt/src/php-
5.4.5/Zend/zend_variables.h:35
#6  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:438
#7  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:427
#8  0x0068e28b in zend_hash_apply_deleter (ht=ht@entry=0xd34508, 
p=p@entry=0x7fdfaf53fb18) at /opt/src/php-5.4.5/Zend/zend_hash.c:650
#9  0x0068fdd1 in zend_hash_reverse_apply (ht=0xd34508, 
apply_func=apply_func@entry=0x673f10 zval_call_destructor) at /opt/src/php-
5.4.5/Zend/zend_hash.c:804
#10 0x0067438b in shutdown_destructors () at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:217
#11 0x006826c0 in zend_call_destructors () at /opt/src/php-
5.4.5/Zend/zend.c:925
#12 0x00624805 in php_request_shutdown (dummy=dummy@entry=0x0) at 
/opt/src/php-5.4.5/main/main.c:1723
#13 0x00726004 in do_cli (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1174
#14 0x00428455 in main (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1364


[2012-07-20 11:54:38] f...@php.net

Reproducible on Debian wheezy with 5.4.0 and 5.4.5.


[2012-07-20 08:13:34] vanidlesky dot jr at gmail dot com

VanZCool


[2012-07-20 08:07:05] zoeslam at gmail dot com

Description:

The code explains all, no idea why it happens.

Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.

Test script:
---
$ai = new ArrayIterator(array(0,1));

var_dump($ai-count());

$ii = new IteratorIterator($ai);

var_dump($ii-count());


Expected result:

int(2)
int(2)

Actual result:
--
int(2)
int(2)
Segmentation fault






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


Bug #50997 [Com]: SOAP Error when trying to submit 2nd Element of a choice

2012-07-20 Thread jboffel at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=50997edit=1

 ID: 50997
 Comment by: jboffel at gmail dot com
 Reported by:mrsharp at gmx dot de
 Summary:SOAP Error when trying to submit 2nd Element of a
 choice
 Status: Open
 Type:   Bug
 Package:SOAP related
 Operating System:   debian
 PHP Version:5.2.12
 Block user comment: N
 Private report: N

 New Comment:

Hi,

I'll give a try to help to solve that bug.

I think I identified the problem.

Algorythm for choice validation is : 

xsd:choice
 xsd:sequence
   xsd:element name=firstName type=xsd:string /xsd:element
   xsd:element name=surName type=xsd:string/
 /xsd:sequence
 xsd:element name=code type=xsd:string/
/xsd:choice

- Enter choice element
- Take first sequence sub element
- Try to match list of elements against properties given to the function
- If fail (like in that example because we use element code instead of the 
sequence) = pass to second choice
- Try to match list of elements...
- Success !
- return OK

And that is correctly implemented for what I saw in the soap_encoding.c file in 
source code of PHP extension.

However, I guess the problem is located in the part of the function analysing 
the node element of the chain.

If one of the mandatory parameters are note matched, that part of function will 
generate a php_error with E_ERROR severity level, I guess it's raising 
exception immediatly in the PHP engine and so it's stopping execution of the 
algorythm.

To try to solve partialy that problem, we can see that the strict parameter is 
set to 0 at sub call of model_to_xml_object from a choice segment.

case XSD_CONTENT_CHOICE: {
sdlContentModelPtr *tmp;
HashPosition pos;
int ret = 0;

zend_hash_internal_pointer_reset_ex(model-u.content, 
pos);
while (zend_hash_get_current_data_ex(model-u.content, 
(void**)tmp, pos) == SUCCESS) {
int tmp_ret = model_to_xml_object(node, *tmp, 
object, style, 0 TSRMLS_CC);
if (tmp_ret == 1) {
return 1;
} else if (tmp_ret != 0) {
ret = 1;
}
zend_hash_move_forward_ex(model-u.content, 
pos);
}
return ret;
}

However, I think it is not enough, if choice content not only element but also 
sequence or list or union or any other groupment of element, it will pass the 
element in that group with it's normal strict level. Not with 0, so it will 
produce the error log raisin the exception.

Solution could be to try to propagate the strict property to 0 if coming from 
choice segment, but have to do that on all other segment of code for group type 
xml tag...

I succeed to confirm my theory by using same example than above but like that :

xsd:element name=NewOperation
  xsd:complexType
   xsd:choice
 xsd:element name=code type=xsd:string//xsd:choice
 xsd:sequence
   xsd:element name=firstName type=xsd:string /xsd:element
   xsd:element name=surName type=xsd:string/
 /xsd:sequence
  /xsd:complexType
/xsd:element

$params = array('firstName' = 'foo', 'surName' = 'fooBar');
$soapClient-newOperation($params);

In that case, first iteration will pass the element without problem as the 
stric parameter has been forced to 0 and then when it will reach second 
iteration with the sequence it will match against our parameters.

So if you only have element in your choice or only element and at end something 
group type of element, it will work. Not if group type of element is somewhere 
else.

Reason is, I believe, because of group of elements are not type by themself. 
Sequence, union and list are not type. It doesn't make sense to pass them to 
srict or not strict in a choise case. When you make your array or parameters 
thoses levels dosen't appear. You don't need to create a key sequence to make 
it work. It's just usefull for schema interpretation.

It's leading me to other part of the problem. If we propagate strict value to 0 
to each sub element of a sequence, it will obviously work, but will not really 
follow the schema as well. You could describe a schema with mandatory elements 
in a sequence even the sequence can be ignored by the choice legaly.

Exemple :

xsd:choice
 xsd:sequence
   xsd:element name=firstName type=xsd:string /xsd:element
   xsd:element name=surName type=xsd:string/
 /xsd:sequence
 xsd:sequence
   xsd:element name=age type=xsd:string minOccurs=1 /xsd:element
   xsd:element name=birthDate type=xsd:string minOccurs=0 /
 /xsd:sequence
/xsd:choice

You'd like to get an error if someone try to use 

Req #43936 [Com]: __empty() magic method

2012-07-20 Thread thomas at sibben dot nl
Edit report at https://bugs.php.net/bug.php?id=43936edit=1

 ID: 43936
 Comment by: thomas at sibben dot nl
 Reported by:james dot laver at gmail dot com
 Summary:__empty() magic method
 Status: Open
 Type:   Feature/Change Request
 Package:Class/Object related
 Operating System:   GNU/Linux
 PHP Version:5.2.5
 Block user comment: N
 Private report: N

 New Comment:

The documentation states:

empty() only checks variables as anything else will result in a parse error

if 'everything else' is a __get() returning an array with a value in it, it 
returns TRUE,

Ubuntu 10.04 PHP 5.3.2-1ubuntu4.17


Previous Comments:

[2011-08-24 00:40:26] chrisstocktonaz at gmail dot com

I made the start of a patch for this, but there is some issues that would need 
to 
be worked out with has_property calls, it seems oddly interfaced with by the 
various callers.

http://pastebin.com/d5gQycDB


[2010-10-23 16:08:03] ka...@php.net

Fixed the overloading property vs language construct issue in the documentation.

This feature request is still valid, so moving it to be one instead of a 
documentation issue


[2010-10-23 16:06:52] ka...@php.net

Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revisionamp;revision=304662
Log: Added a remark about overloaded properties and language constructs (Bug 
#43936)


[2010-06-30 13:02:14] paj...@php.net

Let document the __isset requirements better, when one relies on empty.


[2010-06-30 12:00:35] icy at lighttpd dot net

Simple test script to trigger the bug:

?php

class Foo {
public $vars;

function Foo() {
$this-vars['bar'] = 1;
}

function __get($var) {
return $this-vars[$var];
}
}

$foo = new Foo;

var_dump(empty($foo-bar));
$baz = $foo-bar;
var_dump(empty($baz));

Expected result:

bool(false) bool(false) 

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




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

https://bugs.php.net/bug.php?id=43936


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


Bug #62612 [Fbk-Opn]: readline extension compilation fails with sapi/cli/cli.h: No such file

2012-07-20 Thread pgodel at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62612edit=1

 ID: 62612
 User updated by:pgodel at gmail dot com
 Reported by:pgodel at gmail dot com
 Summary:readline extension compilation fails with
 sapi/cli/cli.h: No such file
-Status: Feedback
+Status: Open
 Type:   Bug
 Package:Compile Failure
 Operating System:   Centos 6  Ubuntu 12.04
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

This is the main PHP configure line:

./configure --with-apxs2=/usr/bin/apxs2 \
--prefix=/usr/local/php54 \
--with-config-file-scan-dir=/etc/php54/conf.d \
--enable-bcmath --enable-ctype --enable-exif --enable-mbstring --
enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --enable-pcntl --
with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-ttf --enable-
exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-t1lib=/usr --with-
mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl --with-xmlrpc --
with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \

And the when compiling the readline extension I just run:

./configure # from ext/readline


Previous Comments:

[2012-07-20 04:28:47] larue...@php.net

can you paste your config steps out? 
thanks


[2012-07-19 15:57:27] pgodel at gmail dot com

The symlink is:
cd ext/readline/
ln -s ../../sapi

Sorry about that.


[2012-07-19 15:56:31] pgodel at gmail dot com

Description:

Trying to compile the readline extension standalone.
cd etx/readline
phpize 
./configure
make

It fails with:

php-5.4.4/ext/readline/readline_cli.c:64:26: fatal error: sapi/cli/cli.h: No 
such file or directory

If I make a symlink to the sapi directory, the compilation works:
ln -s ../../sap

make








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


Req #43936 [Com]: __empty() magic method

2012-07-20 Thread thomas at sibben dot nl
Edit report at https://bugs.php.net/bug.php?id=43936edit=1

 ID: 43936
 Comment by: thomas at sibben dot nl
 Reported by:james dot laver at gmail dot com
 Summary:__empty() magic method
 Status: Open
 Type:   Feature/Change Request
 Package:Class/Object related
 Operating System:   GNU/Linux
 PHP Version:5.2.5
 Block user comment: N
 Private report: N

 New Comment:

reproducable with:

class Test {
private $test;
 
function __construct($test)
{
$this-test = $test;
}
 
public function __get($key)
{
return $this-$key;
}
 
public function getTest()
{
return $this-test;
}
}
 
$test = new Test('test');
 
if (!empty($test-test)) {
echo $test-test;
} else {
echo 'empty';
}
 
echo 'br /';
echo $test-test;
echo 'br /';
echo $test-getTest();


Previous Comments:

[2012-07-20 13:44:41] thomas at sibben dot nl

The documentation states:

empty() only checks variables as anything else will result in a parse error

if 'everything else' is a __get() returning an array with a value in it, it 
returns TRUE,

Ubuntu 10.04 PHP 5.3.2-1ubuntu4.17


[2011-08-24 00:40:26] chrisstocktonaz at gmail dot com

I made the start of a patch for this, but there is some issues that would need 
to 
be worked out with has_property calls, it seems oddly interfaced with by the 
various callers.

http://pastebin.com/d5gQycDB


[2010-10-23 16:08:03] ka...@php.net

Fixed the overloading property vs language construct issue in the documentation.

This feature request is still valid, so moving it to be one instead of a 
documentation issue


[2010-10-23 16:06:52] ka...@php.net

Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revisionamp;revision=304662
Log: Added a remark about overloaded properties and language constructs (Bug 
#43936)


[2010-06-30 13:02:14] paj...@php.net

Let document the __isset requirements better, when one relies on empty.




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

https://bugs.php.net/bug.php?id=43936


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


Bug #62616 [Ver]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault

2012-07-20 Thread jpauli
Edit report at https://bugs.php.net/bug.php?id=62616edit=1

 ID: 62616
 Updated by: jpa...@php.net
 Reported by:zoeslam at gmail dot com
 Summary:ArrayIterator::count() from IteratorIterator
 instance gives Segmentation fault
 Status: Verified
 Type:   Bug
 Package:SPL related
 Operating System:   Ubuntu 12.04
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

I can reproduce on 5.3.14

I can only reproduce calling the method directly.
Calling count($ii) instead of $ii-count() wont segfault


Previous Comments:

[2012-07-20 12:54:55] f...@php.net

BT

#0  0x7fdfaf4221d8 in ?? ()
#1  0x00594a41 in spl_dual_it_free (intern=0x7fdfaf53fa20) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:1585
#2  spl_dual_it_dtor (_object=0x7fdfaf53fa20, handle=optimized out) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:2237
#3  0x006a7b20 in zend_objects_store_del_ref_by_handle_ex (handle=2, 
handlers=optimized out) at /opt/src/php-5.4.5/Zend/zend_objects_API.c:206
#4  0x006a7b63 in zend_objects_store_del_ref (zobject=0x7fdfaf53f990) 
at 
/opt/src/php-5.4.5/Zend/zend_objects_API.c:172
#5  0x00674082 in _zval_dtor (zvalue=optimized out) at /opt/src/php-
5.4.5/Zend/zend_variables.h:35
#6  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:438
#7  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:427
#8  0x0068e28b in zend_hash_apply_deleter (ht=ht@entry=0xd34508, 
p=p@entry=0x7fdfaf53fb18) at /opt/src/php-5.4.5/Zend/zend_hash.c:650
#9  0x0068fdd1 in zend_hash_reverse_apply (ht=0xd34508, 
apply_func=apply_func@entry=0x673f10 zval_call_destructor) at /opt/src/php-
5.4.5/Zend/zend_hash.c:804
#10 0x0067438b in shutdown_destructors () at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:217
#11 0x006826c0 in zend_call_destructors () at /opt/src/php-
5.4.5/Zend/zend.c:925
#12 0x00624805 in php_request_shutdown (dummy=dummy@entry=0x0) at 
/opt/src/php-5.4.5/main/main.c:1723
#13 0x00726004 in do_cli (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1174
#14 0x00428455 in main (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1364


[2012-07-20 11:54:38] f...@php.net

Reproducible on Debian wheezy with 5.4.0 and 5.4.5.


[2012-07-20 08:13:34] vanidlesky dot jr at gmail dot com

VanZCool


[2012-07-20 08:07:05] zoeslam at gmail dot com

Description:

The code explains all, no idea why it happens.

Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.

Test script:
---
$ai = new ArrayIterator(array(0,1));

var_dump($ai-count());

$ii = new IteratorIterator($ai);

var_dump($ii-count());


Expected result:

int(2)
int(2)

Actual result:
--
int(2)
int(2)
Segmentation fault






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


Bug #62610 [Com]: date('l, F m, Y') function outputs wrong date

2012-07-20 Thread jason at jasonbutz dot info
Edit report at https://bugs.php.net/bug.php?id=62610edit=1

 ID: 62610
 Comment by: jason at jasonbutz dot info
 Reported by:jason at jasonbutz dot info
 Summary:date('l, F m, Y') function outputs wrong date
 Status: Feedback
 Type:   Bug
 Package:Date/time related
 Operating System:   Linux
 PHP Version:5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built:
 Jun 19 2012 03:21:35)
 Block user comment: N
 Private report: N

 New Comment:

aharvey:
Both your examples show the bug. The second and third dates both shows July 7, 
when it is not July 7.


Previous Comments:

[2012-07-20 01:25:42] ahar...@php.net

I can't reproduce this at all on current versions of PHP 5.3 or 5.4. Is that 
really the output you're getting with that exact script?

Also, please see if you can replicate this without Suhosin on the current 
version of PHP 5.3; ie 5.3.15.

Pastebins of working code:

5.3: http://codepad.viper-7.com/DIzp07
5.4: http://codepad.viper-7.com/uXv3EY


[2012-07-19 13:32:30] jason at jasonbutz dot info

Correcting PHP version


[2012-07-19 13:31:04] jason at jasonbutz dot info

Description:

When I use the date function with the included arguments the date is always 
output 
as Thursday, July 07, 2012 when using the default timestamp.

Test script:
---
?php
echo Today is .date('m/d/Y').\n;
echo date('l, F m, Y').\n;
echo date('l, F m, Y', time()).\n;
echo date('l, F m, Y', strtotime(01/01/2012));
?

Expected result:

date('l, F m, Y') to show the current date, not Thursday, July 07, 2012







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


Bug #62610 [Fbk-Csd]: date('l, F m, Y') function outputs wrong date

2012-07-20 Thread jason at jasonbutz dot info
Edit report at https://bugs.php.net/bug.php?id=62610edit=1

 ID: 62610
 User updated by:jason at jasonbutz dot info
 Reported by:jason at jasonbutz dot info
 Summary:date('l, F m, Y') function outputs wrong date
-Status: Feedback
+Status: Closed
 Type:   Bug
 Package:Date/time related
 Operating System:   Linux
 PHP Version:5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built:
 Jun 19 2012 03:21:35)
 Block user comment: N
 Private report: N

 New Comment:

Nevermind, I see what I did. Sorry.


Previous Comments:

[2012-07-20 14:29:52] jason at jasonbutz dot info

aharvey:
Both your examples show the bug. The second and third dates both shows July 7, 
when it is not July 7.


[2012-07-20 01:25:42] ahar...@php.net

I can't reproduce this at all on current versions of PHP 5.3 or 5.4. Is that 
really the output you're getting with that exact script?

Also, please see if you can replicate this without Suhosin on the current 
version of PHP 5.3; ie 5.3.15.

Pastebins of working code:

5.3: http://codepad.viper-7.com/DIzp07
5.4: http://codepad.viper-7.com/uXv3EY


[2012-07-19 13:32:30] jason at jasonbutz dot info

Correcting PHP version


[2012-07-19 13:31:04] jason at jasonbutz dot info

Description:

When I use the date function with the included arguments the date is always 
output 
as Thursday, July 07, 2012 when using the default timestamp.

Test script:
---
?php
echo Today is .date('m/d/Y').\n;
echo date('l, F m, Y').\n;
echo date('l, F m, Y', time()).\n;
echo date('l, F m, Y', strtotime(01/01/2012));
?

Expected result:

date('l, F m, Y') to show the current date, not Thursday, July 07, 2012







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


Bug #62610 [Csd-Nab]: date('l, F m, Y') function outputs wrong date

2012-07-20 Thread rasmus
Edit report at https://bugs.php.net/bug.php?id=62610edit=1

 ID: 62610
 Updated by: ras...@php.net
 Reported by:jason at jasonbutz dot info
 Summary:date('l, F m, Y') function outputs wrong date
-Status: Closed
+Status: Not a bug
 Type:   Bug
 Package:Date/time related
 Operating System:   Linux
 PHP Version:5.3.2-1ubuntu4.17 with Suhosin-Patch (cli) (built:
 Jun 19 2012 03:21:35)
 Block user comment: N
 Private report: N



Previous Comments:

[2012-07-20 14:30:55] jason at jasonbutz dot info

Nevermind, I see what I did. Sorry.


[2012-07-20 14:29:52] jason at jasonbutz dot info

aharvey:
Both your examples show the bug. The second and third dates both shows July 7, 
when it is not July 7.


[2012-07-20 01:25:42] ahar...@php.net

I can't reproduce this at all on current versions of PHP 5.3 or 5.4. Is that 
really the output you're getting with that exact script?

Also, please see if you can replicate this without Suhosin on the current 
version of PHP 5.3; ie 5.3.15.

Pastebins of working code:

5.3: http://codepad.viper-7.com/DIzp07
5.4: http://codepad.viper-7.com/uXv3EY


[2012-07-19 13:32:30] jason at jasonbutz dot info

Correcting PHP version


[2012-07-19 13:31:04] jason at jasonbutz dot info

Description:

When I use the date function with the included arguments the date is always 
output 
as Thursday, July 07, 2012 when using the default timestamp.

Test script:
---
?php
echo Today is .date('m/d/Y').\n;
echo date('l, F m, Y').\n;
echo date('l, F m, Y', time()).\n;
echo date('l, F m, Y', strtotime(01/01/2012));
?

Expected result:

date('l, F m, Y') to show the current date, not Thursday, July 07, 2012







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


Bug #62612 [Opn]: readline extension compilation fails with sapi/cli/cli.h: No such file

2012-07-20 Thread laruence
Edit report at https://bugs.php.net/bug.php?id=62612edit=1

 ID: 62612
 Updated by: larue...@php.net
 Reported by:pgodel at gmail dot com
 Summary:readline extension compilation fails with
 sapi/cli/cli.h: No such file
 Status: Open
 Type:   Bug
 Package:Compile Failure
 Operating System:   Centos 6  Ubuntu 12.04
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

what does your /PATH_TO_PHP_BIN/php-config output?


Previous Comments:

[2012-07-20 13:48:14] pgodel at gmail dot com

This is the main PHP configure line:

./configure --with-apxs2=/usr/bin/apxs2 \
--prefix=/usr/local/php54 \
--with-config-file-scan-dir=/etc/php54/conf.d \
--enable-bcmath --enable-ctype --enable-exif --enable-mbstring --
enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --enable-pcntl --
with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-ttf --enable-
exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-t1lib=/usr --with-
mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl --with-xmlrpc --
with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \

And the when compiling the readline extension I just run:

./configure # from ext/readline


[2012-07-20 04:28:47] larue...@php.net

can you paste your config steps out? 
thanks


[2012-07-19 15:57:27] pgodel at gmail dot com

The symlink is:
cd ext/readline/
ln -s ../../sapi

Sorry about that.


[2012-07-19 15:56:31] pgodel at gmail dot com

Description:

Trying to compile the readline extension standalone.
cd etx/readline
phpize 
./configure
make

It fails with:

php-5.4.4/ext/readline/readline_cli.c:64:26: fatal error: sapi/cli/cli.h: No 
such file or directory

If I make a symlink to the sapi directory, the compilation works:
ln -s ../../sap

make








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


Bug #55544 [Csd-ReO]: ob_gzhandler always conflicts with zlib.output_compression

2012-07-20 Thread rasmus
Edit report at https://bugs.php.net/bug.php?id=55544edit=1

 ID: 55544
 Updated by: ras...@php.net
 Reported by:diogin at gmail dot com
 Summary:ob_gzhandler always conflicts with
 zlib.output_compression
-Status: Closed
+Status: Re-Opened
 Type:   Bug
 Package:Output Control
 Operating System:   Windows XP SP3 x86
 PHP Version:5.4.0alpha3
 Assigned To:mike
 Block user comment: N
 Private report: N

 New Comment:

Yes, something isn't being reset after the request when you use 
ob_start('ob_gzhandler')


Previous Comments:

[2012-07-20 08:55:31] webmaster at abyssunderground dot co dot uk

Still present in the recent 5.4.5 update. Very frustrating.


[2012-07-17 17:11:23] manu at gandi dot net

same problem open for 5.4.4:
https://bugs.php.net/bug.php?id=62335


[2012-07-17 14:15:36] bugs dot php at mohiva dot com

Same problem here. This bug isn't fixed in 5.4.5RC1.


[2012-07-02 07:26:54] dietmar at gps-tour dot info

Hi, it's not fixed in my PHP Version: 5.4.4-2~dotdeb.0

The Line ZLIBG(output_compression) = 0; in ext/zlib/zlib.c from the obove 
commit 
is not in the actual head or 5.4.4 branch anymore.


[2012-06-22 13:35:28] ewal at pointpro dot nl

You are right. It seems to be fixed in php-5.4.4-1; no more errors now. 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

https://bugs.php.net/bug.php?id=55544


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


Bug #62619 [Com]: com_create_guid not available anymore

2012-07-20 Thread a...@php.net
Edit report at https://bugs.php.net/bug.php?id=62619edit=1

 ID: 62619
 Comment by: a...@php.net
 Reported by:mb at smartftp dot com
 Summary:com_create_guid not available anymore
 Status: Not a bug
 Type:   Bug
 Package:COM related
 Operating System:   Windows 7
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

But in official UPGRADING :)


Previous Comments:

[2012-07-20 13:02:08] mb at smartftp dot com

It is certainly not a good idea to make such a change in a maintenance release 
(5.4.5) as the functions were still available in 5.4.4.
There was also nothing mentioned in the official changelog/NEWS.


[2012-07-20 12:30:43] a...@php.net

The com_dotnet extension isn't compiled in statically anymore. It's still 
available as a shared extension and must be activated in php.ini. See UPGRADING 
windows section.


[2012-07-20 11:41:37] mb at smartftp dot com

Description:

The com_create_guid function does not seem to be available anymore in PHP 5.4.5.

Test script:
---
com_create_guid();


Expected result:

no error

Actual result:
--
PHP Fatal error:  Call to undefined function com_create_guid()






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


Bug #62616 [Ver]: ArrayIterator::count() from IteratorIterator instance gives Segmentation fault

2012-07-20 Thread laruence
Edit report at https://bugs.php.net/bug.php?id=62616edit=1

 ID: 62616
 Updated by: larue...@php.net
 Reported by:zoeslam at gmail dot com
 Summary:ArrayIterator::count() from IteratorIterator
 instance gives Segmentation fault
 Status: Verified
 Type:   Bug
 Package:SPL related
 Operating System:   Ubuntu 12.04
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

I've find the reason,  but seems not easy to fix.

$ii-count, will finally call to arrayObject-count (due to implemention of 
spl_dual_it_get_method).

but arrayObject-count will take the object as a spl_array_object, which is 
totally different struct with spl_dual_it_object, then in the 
spl_array_object_count_elements_helper , it will make the object struct 
mess(via 
update pos)


Previous Comments:

[2012-07-20 13:57:50] jpa...@php.net

I can reproduce on 5.3.14

I can only reproduce calling the method directly.
Calling count($ii) instead of $ii-count() wont segfault


[2012-07-20 12:54:55] f...@php.net

BT

#0  0x7fdfaf4221d8 in ?? ()
#1  0x00594a41 in spl_dual_it_free (intern=0x7fdfaf53fa20) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:1585
#2  spl_dual_it_dtor (_object=0x7fdfaf53fa20, handle=optimized out) at 
/opt/src/php-5.4.5/ext/spl/spl_iterators.c:2237
#3  0x006a7b20 in zend_objects_store_del_ref_by_handle_ex (handle=2, 
handlers=optimized out) at /opt/src/php-5.4.5/Zend/zend_objects_API.c:206
#4  0x006a7b63 in zend_objects_store_del_ref (zobject=0x7fdfaf53f990) 
at 
/opt/src/php-5.4.5/Zend/zend_objects_API.c:172
#5  0x00674082 in _zval_dtor (zvalue=optimized out) at /opt/src/php-
5.4.5/Zend/zend_variables.h:35
#6  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:438
#7  _zval_ptr_dtor (zval_ptr=0x7fdfaf53fb30) at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:427
#8  0x0068e28b in zend_hash_apply_deleter (ht=ht@entry=0xd34508, 
p=p@entry=0x7fdfaf53fb18) at /opt/src/php-5.4.5/Zend/zend_hash.c:650
#9  0x0068fdd1 in zend_hash_reverse_apply (ht=0xd34508, 
apply_func=apply_func@entry=0x673f10 zval_call_destructor) at /opt/src/php-
5.4.5/Zend/zend_hash.c:804
#10 0x0067438b in shutdown_destructors () at /opt/src/php-
5.4.5/Zend/zend_execute_API.c:217
#11 0x006826c0 in zend_call_destructors () at /opt/src/php-
5.4.5/Zend/zend.c:925
#12 0x00624805 in php_request_shutdown (dummy=dummy@entry=0x0) at 
/opt/src/php-5.4.5/main/main.c:1723
#13 0x00726004 in do_cli (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1174
#14 0x00428455 in main (argc=2, argv=0x7fff5ea442f8) at /opt/src/php-
5.4.5/sapi/cli/php_cli.c:1364


[2012-07-20 11:54:38] f...@php.net

Reproducible on Debian wheezy with 5.4.0 and 5.4.5.


[2012-07-20 08:13:34] vanidlesky dot jr at gmail dot com

VanZCool


[2012-07-20 08:07:05] zoeslam at gmail dot com

Description:

The code explains all, no idea why it happens.

Verified on Ubuntu and Slackware, both on PHP 5.4.3, PHP 5.4.4, PHP 5.4.5.

Test script:
---
$ai = new ArrayIterator(array(0,1));

var_dump($ai-count());

$ii = new IteratorIterator($ai);

var_dump($ii-count());


Expected result:

int(2)
int(2)

Actual result:
--
int(2)
int(2)
Segmentation fault






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


Bug #55544 [ReO-Fbk]: ob_gzhandler always conflicts with zlib.output_compression

2012-07-20 Thread laruence
Edit report at https://bugs.php.net/bug.php?id=55544edit=1

 ID: 55544
 Updated by: larue...@php.net
 Reported by:diogin at gmail dot com
 Summary:ob_gzhandler always conflicts with
 zlib.output_compression
-Status: Re-Opened
+Status: Feedback
 Type:   Bug
 Package:Output Control
 Operating System:   Windows XP SP3 x86
 PHP Version:5.4.0alpha3
 Assigned To:laruence
 Block user comment: N
 Private report: N

 New Comment:

Please try using this snapshot:

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

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

Hi, I've made a fix for this, could you please try with it?


Previous Comments:

[2012-07-20 18:56:45] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=a6f1533789b897d3b8930b437164e81e0a0f4c72
Log: Fixed bug #55544 (ob_gzhandler always conflicts with 
zlib.output_compression)


[2012-07-20 18:56:10] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=a6f1533789b897d3b8930b437164e81e0a0f4c72
Log: Fixed bug #55544 (ob_gzhandler always conflicts with 
zlib.output_compression)


[2012-07-20 17:08:24] ras...@php.net

Yes, something isn't being reset after the request when you use 
ob_start('ob_gzhandler')


[2012-07-20 08:55:31] webmaster at abyssunderground dot co dot uk

Still present in the recent 5.4.5 update. Very frustrating.


[2012-07-17 17:11:23] manu at gandi dot net

same problem open for 5.4.4:
https://bugs.php.net/bug.php?id=62335




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

https://bugs.php.net/bug.php?id=55544


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


[PHP-BUG] Bug #62623 [NEW]: Class 'COM' not found

2012-07-20 Thread bugzilla33 at gmail dot com
From: bugzilla33 at gmail dot com
Operating system: win7
PHP version:  5.4.5
Package:  COM related
Bug Type: Bug
Bug description:Class 'COM' not found

Description:

Class 'COM' not found. Bug introduced in PHP 5.4.5 VC9.

Test script:
---
?php
 $o=new COM('WScript.Shell');
?

Expected result:

PHP 5.4.4 include COM Class.

Actual result:
--
Fatal error: Class 'COM' not found in C:\htdocs\test.pl\1.php on line 2


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



Bug #62623 [Opn]: Class 'COM' not found

2012-07-20 Thread bugzilla33 at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62623edit=1

 ID: 62623
 User updated by:bugzilla33 at gmail dot com
 Reported by:bugzilla33 at gmail dot com
 Summary:Class 'COM' not found
 Status: Open
 Type:   Bug
 Package:COM related
 Operating System:   win7
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

This problem is on Apache 2.2.21.
PHP via module.


Previous Comments:

[2012-07-20 20:01:01] bugzilla33 at gmail dot com

Description:

Class 'COM' not found. Bug introduced in PHP 5.4.5 VC9.

Test script:
---
?php
 $o=new COM('WScript.Shell');
?

Expected result:

PHP 5.4.4 include COM Class.

Actual result:
--
Fatal error: Class 'COM' not found in C:\htdocs\test.pl\1.php on line 2







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


Bug #62612 [Opn]: readline extension compilation fails with sapi/cli/cli.h: No such file

2012-07-20 Thread pgodel at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62612edit=1

 ID: 62612
 User updated by:pgodel at gmail dot com
 Reported by:pgodel at gmail dot com
 Summary:readline extension compilation fails with
 sapi/cli/cli.h: No such file
 Status: Open
 Type:   Bug
 Package:Compile Failure
 Operating System:   Centos 6  Ubuntu 12.04
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

Usage: /usr/local/php54/bin/php-config [OPTION]
Options:
  --prefix[/usr/local/php54]
  --includes  [-I/usr/local/php54/include/php -
I/usr/local/php54/include/php/main -I/usr/local/php54/include/php/TSRM -
I/usr/local/php54/include/php/Zend -I/usr/local/php54/include/php/ext -
I/usr/local/php54/include/php/ext/date/lib]
  --ldflags   [ -L/usr/lib/x86_64-linux-gnu]
  --libs  [-lcrypt   -lexslt -lresolv -lcrypt -lrt -lmcrypt -lltdl -
lstdc++ -lt1 -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl  -
lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -
lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lxml2 -
lcrypt -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lcrypt ]
  --extension-dir [/usr/local/php54/lib/php/extensions/no-debug-non-zts-
20100525]
  --include-dir   [/usr/local/php54/include/php]
  --man-dir   [/usr/local/php54/php/man]
  --php-binary[/usr/local/php54/bin/php]
  --php-sapis [ apache2handler cli cgi]
  --configure-options [--with-apxs2=/usr/bin/apxs2 --prefix=/usr/local/php54 --
with-config-file-scan-dir=/etc/php54/conf.d --enable-bcmath --enable-ctype --
enable-mbstring --enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --
enable-pcntl --with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-
ttf --enable-exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-
t1lib=/usr --with-mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl 
--with-xmlrpc --with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-
mysql=mysqlnd]
  --version   [5.4.5]
  --vernum[50405]


Previous Comments:

[2012-07-20 15:57:59] larue...@php.net

what does your /PATH_TO_PHP_BIN/php-config output?


[2012-07-20 13:48:14] pgodel at gmail dot com

This is the main PHP configure line:

./configure --with-apxs2=/usr/bin/apxs2 \
--prefix=/usr/local/php54 \
--with-config-file-scan-dir=/etc/php54/conf.d \
--enable-bcmath --enable-ctype --enable-exif --enable-mbstring --
enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --enable-pcntl --
with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-ttf --enable-
exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-t1lib=/usr --with-
mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl --with-xmlrpc --
with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \

And the when compiling the readline extension I just run:

./configure # from ext/readline


[2012-07-20 04:28:47] larue...@php.net

can you paste your config steps out? 
thanks


[2012-07-19 15:57:27] pgodel at gmail dot com

The symlink is:
cd ext/readline/
ln -s ../../sapi

Sorry about that.


[2012-07-19 15:56:31] pgodel at gmail dot com

Description:

Trying to compile the readline extension standalone.
cd etx/readline
phpize 
./configure
make

It fails with:

php-5.4.4/ext/readline/readline_cli.c:64:26: fatal error: sapi/cli/cli.h: No 
such file or directory

If I make a symlink to the sapi directory, the compilation works:
ln -s ../../sap

make








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


Req #36072 [Com]: stream_set_connection_timeout()

2012-07-20 Thread colin at mollenhour dot com
Edit report at https://bugs.php.net/bug.php?id=36072edit=1

 ID: 36072
 Comment by: colin at mollenhour dot com
 Reported by:ceo at l-i-e dot com
 Summary:stream_set_connection_timeout()
 Status: Open
 Type:   Feature/Change Request
 Package:Streams related
 Operating System:   *
 PHP Version:*
 Block user comment: N
 Private report: N

 New Comment:

I think an excellent solution would be to add a timeout option to the Socket 
stream options. The HTTP stream already supports timeout, but not regular 
sockets.  
For example, I want to connect to a Redis server using tcp for caching 
(infinite 
timeout needed for blocking calls) and may want to connect to a different 
server 
for some other purpose with a short timeout. Example:

$context = stream_context_create(array('socket' = array('timeout' = 5)));


Previous Comments:

[2010-09-27 16:13:26] cataphr...@php.net

You can already do this for http/https:

?php
$context = stream_context_create(
array(
http = array(timeout=2),
));
var_dump(fopen(http://136.234.1.4/;, r, false, $context));

For FTP, there isn't unfortunately a way, by you can set a default timeout:

ini_set(default_socket_timeout, 2);


[2006-01-19 00:31:14] ceo at l-i-e dot com

E. If you read the actual Feature Request, I think it's pretty clear that 
RTFM stream_set_timeout won't cut it...

stream_set_timeout is useful only AFTER a stream is open.

fopen() gives no control (tho fsockopen() does) over connection timeout.

But fsockopen is missing all the great stuff in fopen() that takes care of.

I really don't think I'm being an idiot here...  Honest.


[2006-01-18 21:24:49] he...@php.net

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

RTFM: stream_set_timeout(), context of fopen(), streams section in manual


[2006-01-18 21:16:55] ceo at l-i-e dot com

Description:

I love the simplicity of fopen() that takes most URLs / files / whatever and 
does what I want.

Do whatever it takes to start sending me the data.

I NEED the ability to set the time-out for the opening, as well as the time-out 
after the stream has opened.

I'm stuck with duplicating whatever code is down in fopen() in my own PHP code 
to detect and initiate protocol specific minutia because fopen() has no 
user-configurable timeout, but fsockopen doesn't do all that.
$parts = parse_url($url);
extract($parts);
switch($scheme){
case 'http': fputs(GET $path HTTP/1.0\n); fputs(Host: $host\n); break;
case 'ftp': fputs(GET $path\n); break;
.
.
.
}

I REALLY don't want to re-invent the wheel here, when I know that code is down 
in the guts of fopen()

A function stream_set_connection_timeout() to let me tell PHP how long fopen() 
should wait would make life way more better for many users, I believe.


Expected result:

The PHP Dev Team is going to add this function because YOU ROCK!
:-)








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


Bug #62623 [Com]: Class 'COM' not found

2012-07-20 Thread hankmanw7 at home dot nl
Edit report at https://bugs.php.net/bug.php?id=62623edit=1

 ID: 62623
 Comment by: hankmanw7 at home dot nl
 Reported by:bugzilla33 at gmail dot com
 Summary:Class 'COM' not found
 Status: Open
 Type:   Bug
 Package:COM related
 Operating System:   win7
 PHP Version:5.4.5
 Block user comment: N
 Private report: N

 New Comment:

As of PHP 5.4.5 and above the COM extension isn't compiled into PHP anymore.
It'll still be delivered with the standard PHP release but must be enclosed
with the extension = php_com_dotnet.dll directive in php.ini.


Previous Comments:

[2012-07-20 20:30:20] bugzilla33 at gmail dot com

This problem is on Apache 2.2.21.
PHP via module.


[2012-07-20 20:01:01] bugzilla33 at gmail dot com

Description:

Class 'COM' not found. Bug introduced in PHP 5.4.5 VC9.

Test script:
---
?php
 $o=new COM('WScript.Shell');
?

Expected result:

PHP 5.4.4 include COM Class.

Actual result:
--
Fatal error: Class 'COM' not found in C:\htdocs\test.pl\1.php on line 2







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


Bug #62612 [Opn]: readline extension compilation fails with sapi/cli/cli.h: No such file

2012-07-20 Thread laruence
Edit report at https://bugs.php.net/bug.php?id=62612edit=1

 ID: 62612
 Updated by: larue...@php.net
 Reported by:pgodel at gmail dot com
 Summary:readline extension compilation fails with
 sapi/cli/cli.h: No such file
 Status: Open
 Type:   Bug
 Package:Compile Failure
 Operating System:   Centos 6  Ubuntu 12.04
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

okey , is that -L flags right? 
I mean, did you mv the php install directory after you installed it?


Previous Comments:

[2012-07-20 22:18:32] pgodel at gmail dot com

Usage: /usr/local/php54/bin/php-config [OPTION]
Options:
  --prefix[/usr/local/php54]
  --includes  [-I/usr/local/php54/include/php -
I/usr/local/php54/include/php/main -I/usr/local/php54/include/php/TSRM -
I/usr/local/php54/include/php/Zend -I/usr/local/php54/include/php/ext -
I/usr/local/php54/include/php/ext/date/lib]
  --ldflags   [ -L/usr/lib/x86_64-linux-gnu]
  --libs  [-lcrypt   -lexslt -lresolv -lcrypt -lrt -lmcrypt -lltdl -
lstdc++ -lt1 -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl  -
lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lcurl -lxml2 -
lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio -lxml2 -
lcrypt -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lcrypt ]
  --extension-dir [/usr/local/php54/lib/php/extensions/no-debug-non-zts-
20100525]
  --include-dir   [/usr/local/php54/include/php]
  --man-dir   [/usr/local/php54/php/man]
  --php-binary[/usr/local/php54/bin/php]
  --php-sapis [ apache2handler cli cgi]
  --configure-options [--with-apxs2=/usr/bin/apxs2 --prefix=/usr/local/php54 --
with-config-file-scan-dir=/etc/php54/conf.d --enable-bcmath --enable-ctype --
enable-mbstring --enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --
enable-pcntl --with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-
ttf --enable-exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-
t1lib=/usr --with-mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl 
--with-xmlrpc --with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-
mysql=mysqlnd]
  --version   [5.4.5]
  --vernum[50405]


[2012-07-20 15:57:59] larue...@php.net

what does your /PATH_TO_PHP_BIN/php-config output?


[2012-07-20 13:48:14] pgodel at gmail dot com

This is the main PHP configure line:

./configure --with-apxs2=/usr/bin/apxs2 \
--prefix=/usr/local/php54 \
--with-config-file-scan-dir=/etc/php54/conf.d \
--enable-bcmath --enable-ctype --enable-exif --enable-mbstring --
enable-ftp --enable-intl --enable-sockets --enable-sysvmsg --enable-pcntl --
with-bz2 --with-curl --with-gettext --with-gd --enable-gd-native-ttf --enable-
exif --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-t1lib=/usr --with-
mcrypt --with-openssl --with-kerberos --with-iconv --with-xsl --with-xmlrpc --
with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd \

And the when compiling the readline extension I just run:

./configure # from ext/readline


[2012-07-20 04:28:47] larue...@php.net

can you paste your config steps out? 
thanks


[2012-07-19 15:57:27] pgodel at gmail dot com

The symlink is:
cd ext/readline/
ln -s ../../sapi

Sorry about that.




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

https://bugs.php.net/bug.php?id=62612


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


[PHP-BUG] Bug #62627 [NEW]: Zlib output handler enabled randomly

2012-07-20 Thread roctom at gmail dot com
From: roctom at gmail dot com
Operating system: Debian 2.6.32-5-xen-amd64 
PHP version:  5.4.5
Package:  *Compression related
Bug Type: Bug
Bug description:Zlib output handler enabled randomly

Description:

Having upgraded from 5.4.0 to 5.4.5, I now get the zlib output compression
handler 
as part of ob_list_handlers() randomly which generates issues with
ob_start().

zlib.output_compression is set to off.

'./configure' '--sysconfdir=/etc' '--with-config-file-path=/etc'
'--with-config-
file-scan-dir=/etc/php.d' '--with-apxs2=/usr/sbin/apxs' '--with-openssl'
'--with-
gd' '--with-curl=/usr/src/curl-7.21.7/include' '--with-zlib'
'--enable-calendar' 
'--enable-mbstring' '--enable-zip' '--enable-sockets' '--with-mcrypt'
'--with-
mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-
kerberos' '--enable-ftp' '--disable-posix' '--enable-bcmath'
'--enable-gd-native-
ttf' '--with-freetype-dir' '--with-jpeg-dir=/usr/local' '--with-png-
dir=/usr/local' '--with-xsl=/usr/local/lib' '--enable-exif'

Test script:
---
?php
//using output_buffering=On
print_r(ob_list_handlers());
ob_end_flush();

ob_start(ob_gzhandler);
print_r(ob_list_handlers());
ob_end_flush();

// anonymous functions
ob_start(create_function('$string', 'return $string;'));
print_r(ob_list_handlers());
ob_end_flush();

Expected result:

Array
(
[0] = default output handler
)

Array
(
[0] = ob_gzhandler
)

Array
(
[0] = default output handler
)

Actual result:
--
First execution (in browser)
Array
(
[0] = default output handler
)
Array
(
[0] = ob_gzhandler
)
Array
(
[0] = 
)

Second execution (in browser)
Firefox 16.1a
Array
(
[0] = default output handler
[1] = zlib output compression
)


Chrome 2.0.1132.57
Array
(
[0] = default output handler
[1] = zlib output compression
)
‹s,*J¬äÒàR‚hƒX[;…”Ô´ÄÒœ…üÒ’‚Ò…ŒÄ¼”œÔˆ
C°Šü¤øô*˜¸HùÓàDArray
(
[0] = default output handler
[1] = 
)

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