Opened 19 years ago
Closed 19 years ago
#1676 closed defect (bug) (fixed)
Wordpress not compliant with dev-lang/php-5.0.5
Reported by: | jsteidl | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 1.5.2 |
Component: | Administration | Keywords: | bug, php5 |
Focuses: | Cc: |
Description
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);
}
}
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
patch in plaintext