Jump to content

Recommended Posts

I am getting the following error from my error handler (shown below).  I don't know if it is related, but I am using register_shutdown_function in a static class.  I don't even know where to start troubleshooting.  Any recommendations?  Thanks

 

 An error occurred in script 'Unknown' on line 0: Unknown: Skipping numeric key 2996699736 (error no: 8 )

 

<?php
function my_error_handler($e_number, $e_message, $e_file, $e_line, $e_vars) {
    $message = "An error occurred in script '$e_file' on line $e_line: $e_message (error no: $e_number)";//.print_r($e_vars,1);
    syslog(LOG_INFO,'my_error_handler: '.$message);
}

ini_set('display_errors', 1);
error_reporting(E_ALL);
set_error_handler("my_error_handler");

?>
Edited by NotionCommotion
Link to comment
https://forums.phpfreaks.com/topic/292601-mystery-error/
Share on other sites

That's related to sessions and happens during the saving (during shutdown). It means you used a numeric key for a session value, like

$_SESSION[2996699736] = "some value";
[edit] Yeah. That. Edited by requinix
Link to comment
https://forums.phpfreaks.com/topic/292601-mystery-error/#findComment-1497133
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.