Thursday, July 3, 2008

PHP-3(READING)

Reading []:-

test_ref($ar[]);
var_dump($ar);
$this->test($ar[]);
}
}
$o = new XmlTest();
$o->run();
?>
This should always have thrown a fatal

INTEGER VALUES IN FUNCTION PARAMETER:-

With the advent of PHP 5.0.x, a new parameter parsing API was introduced which is used by a large number of PHP functions. In all versions of PHP between 5.0.x and 5.1.x, the handling of integer values was very strict and would reject non-well formed numeric values when a PHP function expected an integer. These checks have now been relaxed to support non-well formed numeric strings such as " 123" and "123 ", and will no longer fail as they did under PHP 5.0.x. However, to promote code safety and input validation, PHP functions will now emit an E_NOTICE when such strings are passed as integers.


Date/time support:-

Date/time support has been fully rewritten in PHP 5.1.x, and no longer uses the system settings to 'know' the timezone in operation. It will instead utilize, in the following order:
The timezone set using the date_default_timezone_set() function (if any)
The TZ environment variable (if non empty)
"magical" guess (if the operating system supports it)
If none of the above options succeeds, UTC .

To ensure accuracy (and avoid an E_STRICT warning), you will need to define your timezone in your php.ini using the following format:
date.timezone = Europe/London

No comments: