04-25-2009, 09:09 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Sep 2008
Location: Tehran - Iran
Posts: 6
Thanks: 35
|
Bug in PHP?/Unknown output?
Hi,
This is a simple function for throwing error in a MySQL class(Private)...
PHP Code:
final private static function _Throw_Error($Str_CalledFunction= __function__)
{
return(exit('[' . $_SERVER['SERVER_SOFTWARE'] . '] [' . basename(__file__) . '] [' . (string)$Str_CalledFunction . '] [' . __line__ . '] [' . mysql_error() | -9999 . false . null . ThisIsNotAVariable . '].'));
}
Check output!
Output: yyy{|mososntiWi~{sklu]~/5.2.8] [mysql.php] [XXXXX] [219] [
OS: Redhat Linux/Windows Xp SP2
PHP: 4/5
Server: Apache 2
|
|
|