This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE objects ADD COLUMN namespace VARCHAR(255) GENERATED ALWAYS AS (SUBSTRING_INDEX(key, '.', 1)) STORED; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Instantiating a class **/ | |
function __autoload($name) { | |
echo "Want to load $name.\n"; | |
throw new Exception("Unable to load $name. \n"); | |
} | |
try { | |
$obj = new NonLoadableClass(); | |
} catch (Exception $e) { | |
echo $e->getMessage(), "\n"; |