Fix a fragile test

Write to majority, but still sleep for one second, in case we hit the
server that didn't get the write :/
Merged pull request #394
Fixed PHP-746: If the file data not exists, the getBytes method would return random data.
Added a test case.
Fixed a memory leak when the stored data was corrupted and we bailed out early.
Merged pull request #325
Fixed test case, the length can also differ if the server name changes.
Merged Pull Request #396

# By Derick Rethans
* pull-request/396:
  Fixed test case, the length can also differ if the server name changes.
PHP-725: Change *option_value == '1' to strcmp(option_value, "1") == 0.
Order options alphabetically.
Use strcmp here too.
Merged Pull Request #363

# By Derick Rethans
* pull-request/363:
  Use strcmp here too.
  Order options alphabetically.
  PHP-725: Change *option_value == '1' to strcmp(option_value, "1") == 0.
Ensure DB directory exists before starting servers
Merged Pull Request #398

# By Jeremy Mikola
# Via Jeremy Mikola
* pull-request/398:
  Ensure DB directory exists before starting servers
Fix expected exception output for bug00397.phpt
Merged Pull Request #400

# By Jeremy Mikola
* pull-request/400:
  Fix expected exception output for bug00397.phpt
Let's see if this fixes the test.
Merged Pull Request #402

# By Derick Rethans
# Via Derick Rethans
* pull-request/402:
  Let's see if this fixes the test.
Fix tests on legacy-release
Merged Pull Request #403

* pull-request/403:
  Fix tests on legacy-release