Line 341 in database.inc
Line 48 in unicode.inc
Line 111 in unicode.inc
Line 607 in aggregator.module
Line 763 in aggregator.module
Line 1110 in comment.module
Line 1027 in filter.module
Line 831 in node.module
Line 451 in openid.inc
Line 140 in update.fetch.inc

These are all areas that need to be updated to take advantage of the goodness of PHP5. More of a note to myself to remember that the patch needs to address all of these areas.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cburschka’s picture

node.module is fixed in this issue: #279382: Remove old PHP 4 workaround.

Susurrus’s picture

Status: Active » Needs work
FileSize
3.59 KB

Line 341 in database.inc
Line 48 in unicode.inc
Line 111 in unicode.inc
Line 607 in aggregator.module
Line 763 in aggregator.module
Line 1110 in comment.module
Line 1027 in filter.module
Line 831 in node.module
Line 451 in openid.inc
Line 140 in update.fetch.inc

Includes patch created in #279382: Remove old PHP 4 workaround.

catch’s picture

That check for outdate PCRE libraries - is it even necessary now?

Susurrus’s picture

FileSize
8.08 KB

Line 341 in database.inc
Line 48 in unicode.inc
Line 607 in aggregator.module
Line 763 in aggregator.module
Line 1110 in comment.module
Line 1027 in filter.module
Line 831 in node.module
Line 451 in openid.inc

Also, I've noticed that the XML parsing in Drupal7 will need to be rewritten to take advantage of the new SimpleXML parser built into PHP5. Not sure if this should be a separate issue. So for the changes I've already made, they should be reviewed.

cburschka’s picture

Status: Needs work » Needs review

I'd put XML parsing into a separate issue - one thing at a time. ;)

I'll review this in a bit.

lilou’s picture

Status: Needs review » Needs work

Patch partially failed on includes\database.inc (Index: 337, Size: 0 ) and includes\unicode.inc (Cannot apply hunk @@ 7 ).

c960657’s picture

Status: Needs work » Needs review
FileSize
10.2 KB

Reroll.

The change to database.inc is no longer relevant.

That check for outdate PCRE libraries - is it even necessary now?

I don't think so. According to the error message, the PCRE version bundled with PHP 4.3.3 is sufficient. That was PCRE 4.3. When compiling PHP 5.2 with an external PCRE library, PCRE 6.6 or newer is required. So it doesn't look like this is a problem anymore. The patch now removes the check.

Dries’s picture

Status: Needs review » Needs work

Committed the patch in #7. Great patch. Thanks.

cburschka’s picture

Status: Needs work » Fixed

If you committed it, shouldn't this be fixed instead of CNW?

c960657’s picture

FileSize
4.6 KB

Actually, I noticed that the changes to includes/database.inc that were in the old patch from July are still relevant. The code has just moved to includes/database/database.inc. I should have grep'ed for "PHP 4" after rerolling the patch - sorry :-(

Also, I have removed the reference to PHP 4 in the comment for drupal_validate_utf8(). This is no longer relevant, and it is clearly documented in the PHP manual when the described behaviour was introduced, in case anybody is interested. While I was there, I updated the Doxygen comment to not talk about the implementation details but only the functions input/output, and instead put this inside the function (Drupal's manual show the function's source code, so the implementation specific details are not far away for those interested). Also the comment wasn't entirely correct - some 4 octet sequences are valid in UTF-8; and preg_match() also erroneously accepts 6 octet sequences, e.g. "\xFD\x8D\x8D\x8D\x8D\x8D".

There is still one PHP 4 reference left in unicode.inc, but that should probably be dealt with in a separate issue (as suggested in comment #5).

cburschka’s picture

Status: Fixed » Needs review

Wasn't db_rewrite_sql marked for extermination? I thought DBTNG had done away with it already...

drewish’s picture

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD! Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.