From:             sven at phoenixz dot net
Operating system: Linux redhat 90
PHP version:      5.0.3
PHP Bug Type:     *General Issues
Bug description:  fatal error pointing to wrong line number in file

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

-- 
Edit bug report at http://bugs.php.net/?id=31656&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31656&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31656&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31656&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31656&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31656&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31656&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31656&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31656&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31656&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31656&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31656&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31656&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31656&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31656&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31656&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31656&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31656&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31656&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31656&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31656&r=mysqlcfg

Reply via email to