php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75199 Random php fatal error , Class contains 1 abstract method
Submitted: 2017-09-13 05:58 UTC Modified: 2017-11-05 04:22 UTC
Votes:13
Avg. Score:4.0 ± 1.0
Reproduced:9 of 10 (90.0%)
Same Version:3 (33.3%)
Same OS:8 (88.9%)
From: panying2000 at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: Irrelevant OS: Apache/2.4.25 (Win64) PHP/7.0.17
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-09-13 05:58 UTC] panying2000 at gmail dot com
Description:
------------
It is an random issue , but if it happened , the error can't be skipped .

In my case , php report 

Fatal error: Class MySqlSessionHandler contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read)

Before restart apache , I tried to modify code , php run well before require that class file , but it report error once include that class file ( modify that class file doesn't help either ).

Restart apache , fatal error go away . 

I don't enable opcache , so it is similar with https://bugs.php.net/bug.php?id=72112 , but not an opcache bug 

And in internet , it report similar issue around , 

https://stackoverflow.com/questions/42503240/intermittent-php-abstract-class-error

My Apache Setting , wish can help,
Apache Version	Apache/2.4.25 (Win64) PHP/7.0.17 OpenSSL/1.0.2k
Apache API Version	20120211
Virtual Server	Yes
Loaded Modules	core mod_win32 mpm_winnt http_core mod_so mod_php7 mod_actions mod_alias mod_allowmethods mod_asis mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_filter mod_include mod_info mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_status




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-13 06:29 UTC] stas@php.net
-Package: PHP Language Specification +Package: *General Issues
 [2017-09-13 09:58 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2017-09-13 09:58 UTC] ab@php.net
Thanks for the report. The bug #72112 was not solved, so it's hard to say whether this one is same. Can you provide a reproduce code please? As for PHP as Apache module under Windows - there are some essential bugfixes in PHP 7.2, perhaps you could test the release candidates, too.

Thanks.
 [2017-11-05 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 12:03:36 2021 UTC