#44403 [NEW]: register_tick_function() does not check for a valid callback

From: Date: Tue, 11 Mar 2008 00:19:43 +0000
Subject: #44403 [NEW]: register_tick_function() does not check for a valid callback
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1239@lists.php.net to get a copy of this message
From:             kalle@php.net
Operating system: Windows Vista
PHP version:      Irrelevant
PHP Bug Type:     Website problem
Bug description:  register_tick_function() does not check for a valid callback

Description:
------------
register_tick_function() does not check if the first parameter is a valid
callback.

Reproduce code:
---------------
<?php
	register_tick_function('non_existing_function');
?>

Expected result:
----------------
Warning: 'non_existing_function' is not a valid callback in
C:\webserver\webroot\program.php on line 2

... or something similar

Actual result:
--------------
No error issued

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



Thread (1 message)

  • kalle@php.net
« previous php.webmaster (#1239) next »