Anyone who may be looking to upgrade, or install a new server and require Zend Optimizer to run Zend Encoder / Zend Guard encoded programs:
Zend Optimizer 3.3.0 is broken. It has a broken SHM setup calls in it, which cause it to execute sometimes, but abort early. This breaks ‘interactive’ mode, as well as pipes.
I have confirmed this behavior on Linux (32 bit) and Linux x86_64 bit platforms.
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b5dfbf94000 lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) close(0) = 0 munmap(0x2b5dfbf94000, 4096) = 0 ioctl(-1, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffaeb6b7a0) = -1 EBADF (Bad file descriptor) mmap(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b5e0189c000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b5e0199d000 read(4294967295, 0xd75cb0, 8192) = -1 EBADF (Bad file descriptor)
Revert, or stick to Zend Encoder 3.2.8 until this is resolved.