Regression test
(cherry picked from commit ee13afee1ef9d8dcd473a3ff5c923e481a5b842e)
Regression test for #65
(cherry picked from commit 14b82c5ad05d6c65bd9306e5c5ff5b9c0286ed4f)
Fix #1303
(cherry picked from commit e3101a6a95da39ce77b97c76d32c5db90a4f53b0)

Conflicts:
	ext/acl/adapter/memory.c
issue-1261.phpt requires openssl
(cherry picked from commit 7dce0862bc660dc8376064221f64f5608d197da4)