Danke Herr Becker:
Ich muss sagen, Vegetarier – schön und gut!
Aber immer nur Fritten is ja auch nix.
Danke Herr Becker:
Ich muss sagen, Vegetarier – schön und gut!
Aber immer nur Fritten is ja auch nix.
This is a plugin that allows you use your LDAP to authenticate and authorise users to access your wordpress web-log.
Installation should be as simple as instalaltion of every wordpress-plugin. Simply unzip the downloaded file, put it into your wordpress-installations plugins-folder and activate it.
After activation you can configure the plugin via the options-panel.
Last week I had the problem, that – due to a wrong database-entry – a serialized value got scrambled. And due to that (and some missconfiguration of the server) the application broke. Instead of a search result the user simply got an error message about not being able to unserialize the value due to an offset-error.
So how could I avoid the error (which actually is a notice) being thrown and besides that get to know whether unserializing worked or not?
The hack I finaly came up with is as follows:
And here it is:
public function my_unserialize ( $value )
{
$unserialized = @unserialize ( $value );
if ( false === $unserialized && 'b:0;' !== $value ) {
$le = error_get_last ();
throw new InvalidArgumentException ( $le['message'] );
}
return $unserialized;
}
There has been much said about the advantages or disadvantages of unit-testing. So I will not recap on that.
But where to go after you have choosen to use unit-testing?
The following short tutorial will give you an ovberview of how to install the necessary software, how to come to unit-tests from your requirements and how to write your tests and your code simultaneously.
Continue reading Quality-Assurance with PHP – Unit-Testing
By continuing to use the site, you agree to the use of cookies. That includes scrolling or clicking links. (Sorry for the inconvenience…) more information
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this. That includes scrolling or clicking links. (Sorry for the inconvenience…)