php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31656 fatal error pointing to wrong line number in file
Submitted: 2005-01-22 21:20 UTC Modified: 2005-02-10 23:24 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: sven at phoenixz dot net Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.3 OS: Linux redhat 90
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sven at phoenixz dot net
New email:
PHP Version: OS:

 

 [2005-01-22 21:20 UTC] sven at phoenixz dot net
Description:
------------
On running my project, PHP reports this error during parsing:

Fatal error: Access level to kernel::session_process() must be public (as in class kernel_object) in /home/asca/development/sven/phoenixz/slib/kernel_213/kernel_0.php on line 40

the line in the kernel_object that caused the problem:
abstract function &session_process();
the line in the file kernel_0.php that caused the problem as well:
protected function &session_process(){ (line number 241, not 40)

line 40 shows the class definition
class kernel extends kernel_object{

so Id think the PHP error should read:
Fatal error: Access level to kernel::session_process() must be public (as in class kernel_object) in /home/asca/development/sven/phoenixz/slib/kernel_213/kernel_0.php on line 241


** See also bug report number 23135 which was closed due to lack of information.





Reproduce code:
---------------
see description

Expected result:
----------------
Fatal error: Access level to kernel::session_process() must be public (as in class kernel_object) in /home/asca/development/sven/phoenixz/slib/kernel_213/kernel_0.php on line 241


Actual result:
--------------
Fatal error: Access level to kernel::session_process() must be public (as in class kernel_object) in /home/asca/development/sven/phoenixz/slib/kernel_213/kernel_0.php on line 40

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-22 21:24 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2005-02-10 23:24 UTC] sniper@php.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 "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 11:01:31 2024 UTC