NotionCommotion Posted November 20, 2014 Share Posted November 20, 2014 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"); ?> Link to comment https://forums.phpfreaks.com/topic/292601-mystery-error/ Share on other sites More sharing options...
NotionCommotion Posted November 20, 2014 Author Share Posted November 20, 2014 Never mind. Looks like I was trying to access $_SESSION[2996699736]. Link to comment https://forums.phpfreaks.com/topic/292601-mystery-error/#findComment-1497132 Share on other sites More sharing options...
requinix Posted November 20, 2014 Share Posted November 20, 2014 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. Link to comment https://forums.phpfreaks.com/topic/292601-mystery-error/#findComment-1497133 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.