Ticket #1676 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Wordpress not compliant with dev-lang/php-5.0.5

Reported by: jsteidl Assigned to: anonymous
Priority: high Milestone:
Component: Administration Version: 1.5.2
Severity: normal Keywords: bug, php5
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

wodpress_php.patch (0.7 kB) - added by mail@jsteidl.net on 09/15/05 16:07:25.
patch in plaintext

Change History

09/15/05 16:07:25 changed by mail@jsteidl.net

  • attachment wodpress_php.patch added.

patch in plaintext

09/15/05 23:42:30 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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