|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-23 22:03 UTC] bjori@php.net
[2007-06-17 09:02 UTC] didou@php.net
[2020-02-07 06:10 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 12:00:02 2025 UTC |
Description: ------------ It mounts in the class. session_set_save_handler( array($this, '_open'), array($this, '_close'), array($this, '_read'), array($this, '_write'), array($this, '_destroy'), array($this, '_clean') ); ... public function _write( $strID, &$objData ) { // some process. throw new Exception; } Result: Exception thrown without a stack frame in .... Why? The exception is normally generated in other methods. ex. _read,_destroy,_clear... Reproduce code: --------------- public function _write( $strID, &$objData ) { try { $strSQL = "REPLACE INTOd sessions hogeVALUES ( ?, ?, ? )"; $putData = $this->objResource->prepare( $strSQL ); $putData->bindParam( 1, $strID ); $putData->bindParam( 2, time() ); $putData->bindParam( 3, $objData ); $putData->execute(); return true; } catch( PDOException $e) { $strError = sprintf( "?Z?b?V?????f?[?^?̐ݒ??Ɏ??s???܂????B<br><br>%s" ,$e->getMessage() ); throw new Exception( $strError ); } } Expected result: ---------------- Fatal error: Exception thrown without a stack frame in Unknown on line 0