WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 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)

wodpress_php.patch (730 bytes) - added by mail@… 9 years ago.
patch in plaintext

Download all attachments as: .zip

Change History (2)

mail@…9 years ago

patch in plaintext

comment:1 ryan9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2882]) Reference passing fix from jsteidl. fixes #1676

Note: See TracTickets for help on using tickets.