php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63269 register_tick_function() passing parameters
Submitted: 2012-10-12 23:54 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: klaussantana at gmail dot com Assigned:
Status: Open Package: Unknown/Other Function
PHP Version: Irrelevant OS: Any
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: klaussantana at gmail dot com
New email:
PHP Version: OS:

 

 [2012-10-12 23:54 UTC] klaussantana at gmail dot com
Description:
------------
It would be nice if when you register a function to execute at every "n" compiler 
ticks it receive as the 1st parameter the tick event informations in an array...

Test script:
---------------
function my_tick_function( $event )
{
   echo "Event {$event['name']} on {$event['file']} at line {$event['line']} triggered. <br/> \r\n";
}

register_tick_function('my_tick_function');

declare(ticks=1)
{
   $S = 'String';
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 09:01:29 2024 UTC