Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#2312 closed defect (bug) (fixed)

glob() requires PHP 4.3, site says PHP 4.2+

Reported by: ozh's profile Ozh Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: blocker Version: 2.0
Component: General Keywords: PHP 4.2 glob bg|has-patch
Focuses: Cc:

Description

line 1789 of wp-includes/functions.php uses glob(), which requires PHP 4.3, although the requirements page on wp.org says PHP 4.2+ is enough.
I guess a simple file_exist would work in most cases and keep things down to the minimum requirement.

Attachments (1)

2312.diff (717 bytes) - added by davidhouse 19 years ago.

Download all attachments as: .zip

Change History (7)

#1 @Ozh
19 years ago

  • Component changed from Administration to General

#2 @ryan
19 years ago

  • Owner changed from anonymous to ryan

#3 @davidhouse
19 years ago

We did have a glob() function in functions-compat.php, what happened to that?

#4 @davidhouse
19 years ago

  • Keywords bg|has-patch added

Ah, I remember it was added with some cache code but then removed when we figured a better way of doing it. Anyway, patch.

@davidhouse
19 years ago

#5 @ryan
19 years ago

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

(In [3468]) Don't use glob. Props David House. fixes #2312

#6 @(none)
19 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.