php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23929 strange register_shutdown_function error for undefined functions
Submitted: 2003-05-31 15:55 UTC Modified: 2003-06-01 12:11 UTC
From: philip at cornado dot com Assigned: helly (profile)
Status: Not a bug Package: *General Issues
PHP Version: 4.3.2 OS:
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: philip at cornado dot com
New email:
PHP Version: OS:

 

 [2003-05-31 15:55 UTC] philip at cornado dot com
register_shutdown_function() provides a warning instead of a fatal error when calling an undefined function.  Not sure if this is intentional or not but here's a test script:

<?php
echo 'hello';
register_shutdown_function('do_not_exist');
?>

And next, the strange looking error.  Same result for both Apache module and CLI:

Hello
Warning: Unknown(): Unable to call do_not_exist() - function does not exist in Unknown on line 0

A PHP5 CLI demonstrates this same error.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-31 17:00 UTC] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

When some engine facility tries to call a non existing functions you receive such errors.
 [2003-05-31 21:15 UTC] philip@php.net
I don't understand the answer, and this is certainly not documented.  Also, why did you assign it to yourself and mark it as bogus?
 [2003-06-01 10:44 UTC] sniper@php.net
No bug here. Philip, ask such questions on the mailing list and stop spamming the bug system with these..


 [2003-06-01 12:11 UTC] philip@php.net
I'm sorry, I didn't realize that Unknown() and line #0 were  official, I'll add this to the documentation.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 15:01:31 2024 UTC