Updated PHP at my server and saw this nasty error occur. It has been announced a lot of times that PHP will change this.
Error message:
Fatal Error. Only variables can be passed by reference.
Patch:
--- /home/johannes/websites/jsteidl.net/wp-includes/gettext.php 2005-04-20 04:46:48.000000000 +0200
+++ gettext.php 2005-09-12 10:20:50.363170736 +0200
@@ -61,12 +61,15 @@
- @return Integer from the Stream
*/
function readint() {
+ $stream = $this->STREAM->read(4);
if ($this->BYTEORDER == 0) {
// low endian
- return array_shift(unpack('V', $this->STREAM->read(4)));
+ $unpacked = unpack('V',$stream);
+ return array_shift($unpacked);
} else {
// big endian
- return array_shift(unpack('N', $this->STREAM->read(4)));
+ $unpacked = unpack('N',$stream);
+ return array_shift($unpacked);
}
}