Bug #62419 [Com]: RuntimeException throws fatal error if passing a previous exception to the ctor

2012-07-08 Thread franssen dot roland at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62419&edit=1

 ID: 62419
 Comment by: franssen dot roland at gmail dot com
 Reported by:bugs dot php at mohiva dot com
 Summary:RuntimeException throws fatal error if passing a
 previous exception to the ctor
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Gentoo Linux
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

Never mind.. the \RuntimeException class just doesn't work with APC enabled.



vs.




[2012-07-08 13:05:11] franssen dot roland at gmail dot com

APC is enabled but disabled on CLI.


[2012-07-08 13:03:41] franssen dot roland at gmail dot com

I can produce the same error when throwing a \RuntimeException (without 
previous exception) in a SPL registered autoload function.

PHP 5.4.4-2


[2012-07-03 08:31:00] bugs dot php at mohiva dot com

If I disable APC for php-fpm then it works as expected. 

Note: APC is enabled for php-cli and it works as expected.


[2012-07-03 08:23:23] bugs dot php at mohiva dot com

Hi,

if I execute the code through the cli binary then it works as expected. But if 
I serve the file through apache/php-fpm/fastcgi then PHP behaves as described 
in the bug report.

Cheers,
Christian




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=62419


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


Bug #62419 [Com]: RuntimeException throws fatal error if passing a previous exception to the ctor

2012-07-08 Thread franssen dot roland at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62419&edit=1

 ID: 62419
 Comment by: franssen dot roland at gmail dot com
 Reported by:bugs dot php at mohiva dot com
 Summary:RuntimeException throws fatal error if passing a
 previous exception to the ctor
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Gentoo Linux
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:



vs.




Previous Comments:

[2012-07-08 13:05:11] franssen dot roland at gmail dot com

APC is enabled but disabled on CLI.


[2012-07-08 13:03:41] franssen dot roland at gmail dot com

I can produce the same error when throwing a \RuntimeException (without 
previous exception) in a SPL registered autoload function.

PHP 5.4.4-2


[2012-07-03 08:31:00] bugs dot php at mohiva dot com

If I disable APC for php-fpm then it works as expected. 

Note: APC is enabled for php-cli and it works as expected.


[2012-07-03 08:23:23] bugs dot php at mohiva dot com

Hi,

if I execute the code through the cli binary then it works as expected. But if 
I serve the file through apache/php-fpm/fastcgi then PHP behaves as described 
in the bug report.

Cheers,
Christian


[2012-06-30 13:36:45] Sjon at hortensius dot net

I cannot reproduce this, it seems to work fine?

http://3v4l.org/IAF3d#v530




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=62419


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


Bug #62419 [Com]: RuntimeException throws fatal error if passing a previous exception to the ctor

2012-07-08 Thread franssen dot roland at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62419&edit=1

 ID: 62419
 Comment by: franssen dot roland at gmail dot com
 Reported by:bugs dot php at mohiva dot com
 Summary:RuntimeException throws fatal error if passing a
 previous exception to the ctor
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Gentoo Linux
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

APC is enabled but disabled on CLI.


Previous Comments:

[2012-07-08 13:03:41] franssen dot roland at gmail dot com

I can produce the same error when throwing a \RuntimeException (without 
previous exception) in a SPL registered autoload function.

PHP 5.4.4-2


[2012-07-03 08:31:00] bugs dot php at mohiva dot com

If I disable APC for php-fpm then it works as expected. 

Note: APC is enabled for php-cli and it works as expected.


[2012-07-03 08:23:23] bugs dot php at mohiva dot com

Hi,

if I execute the code through the cli binary then it works as expected. But if 
I serve the file through apache/php-fpm/fastcgi then PHP behaves as described 
in the bug report.

Cheers,
Christian


[2012-06-30 13:36:45] Sjon at hortensius dot net

I cannot reproduce this, it seems to work fine?

http://3v4l.org/IAF3d#v530


[2012-06-26 11:26:52] bugs dot php at mohiva dot com

Description:

If you pass a previous exception to the constructor of the RuntimeException 
class, then PHP throws a fatal error without an error message. I have tested 
those exceptions which are derived from RuntimeException, and they all work 
fine. The same counts for the base Exception class.



Test script:
---
https://bugs.php.net/bug.php?id=62419&edit=1


Bug #62419 [Com]: RuntimeException throws fatal error if passing a previous exception to the ctor

2012-07-08 Thread franssen dot roland at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=62419&edit=1

 ID: 62419
 Comment by: franssen dot roland at gmail dot com
 Reported by:bugs dot php at mohiva dot com
 Summary:RuntimeException throws fatal error if passing a
 previous exception to the ctor
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Gentoo Linux
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

I can produce the same error when throwing a \RuntimeException (without 
previous exception) in a SPL registered autoload function.

PHP 5.4.4-2


Previous Comments:

[2012-07-03 08:31:00] bugs dot php at mohiva dot com

If I disable APC for php-fpm then it works as expected. 

Note: APC is enabled for php-cli and it works as expected.


[2012-07-03 08:23:23] bugs dot php at mohiva dot com

Hi,

if I execute the code through the cli binary then it works as expected. But if 
I serve the file through apache/php-fpm/fastcgi then PHP behaves as described 
in the bug report.

Cheers,
Christian


[2012-06-30 13:36:45] Sjon at hortensius dot net

I cannot reproduce this, it seems to work fine?

http://3v4l.org/IAF3d#v530


[2012-06-26 11:26:52] bugs dot php at mohiva dot com

Description:

If you pass a previous exception to the constructor of the RuntimeException 
class, then PHP throws a fatal error without an error message. I have tested 
those exceptions which are derived from RuntimeException, and they all work 
fine. The same counts for the base Exception class.



Test script:
---
https://bugs.php.net/bug.php?id=62419&edit=1


Bug #62419 [Com]: RuntimeException throws fatal error if passing a previous exception to the ctor

2012-06-30 Thread Sjon at hortensius dot net
Edit report at https://bugs.php.net/bug.php?id=62419&edit=1

 ID: 62419
 Comment by: Sjon at hortensius dot net
 Reported by:bugs dot php at mohiva dot com
 Summary:RuntimeException throws fatal error if passing a
 previous exception to the ctor
 Status: Open
 Type:   Bug
 Package:SPL related
 Operating System:   Gentoo Linux
 PHP Version:5.4.4
 Block user comment: N
 Private report: N

 New Comment:

I cannot reproduce this, it seems to work fine?

http://3v4l.org/IAF3d#v530


Previous Comments:

[2012-06-26 11:26:52] bugs dot php at mohiva dot com

Description:

If you pass a previous exception to the constructor of the RuntimeException 
class, then PHP throws a fatal error without an error message. I have tested 
those exceptions which are derived from RuntimeException, and they all work 
fine. The same counts for the base Exception class.



Test script:
---
https://bugs.php.net/bug.php?id=62419&edit=1