Make WordPress Core

Opened 15 years ago

Closed 10 years ago

#12031 closed defect (bug) (fixed)

Install do not check the magic_quote_sybase status

Reported by: wpmuguru's profile wpmuguru Owned by: egill's profile egill
Milestone: 4.0 Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: good-first-bug has-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

MU Trac Ticket: http://mu.trac.wordpress.org/ticket/981

Just try to install on a server that it's magic_quote_sybase is on (okay for Oracle, but fatal for mysql) . It failed to update the wp-config.php and didn't set correctly the .htaccess.

Attachments (3)

setup-config.php (11.8 KB) - added by chownd 10 years ago.
disables magic_quotes_sybase in setup-config.php
12031.patch (550 bytes) - added by egill 10 years ago.
12031.2.patch (590 bytes) - added by egill 10 years ago.

Download all attachments as: .zip

Change History (23)

#1 @wpmuguru
15 years ago

  • Keywords needs-feedback added

Is this an issue with the WP install as well?

#2 @ryan
15 years ago

Both WP and WPMU force it off at the beginning of wp-settings.php. If the reporter means setup-config.php, I think it does not get the ini_set for magic_quote_sybase since it doesn't include wp-load.php

#3 @nacin
14 years ago

  • Keywords needs-patch dev-feedback added; needs-feedback removed
  • Milestone changed from Unassigned to Future Release

Needs patch, I guess.

#4 @wonderboymusic
12 years ago

Is this still relevant? From php.net:

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

#6 @dd32
12 years ago

  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Given the configuration is deprecated, and removed in 5.4, and we haven't supported this in 9 years of WordPress, I really do not see a need to add this.

#7 @nacin
12 years ago

  • Keywords easy-fix added; dev-feedback removed
  • Milestone set to Future Release
  • Resolution wontfix deleted
  • Status changed from closed to reopened

We already handle sysbase in wp-settings (see #19455) so we might as well support it here.

#8 @dd32
11 years ago

  • Owner dd32 deleted
  • Status changed from reopened to assigned

#9 @SergeyBiryukov
11 years ago

  • Description modified (diff)

#10 @SergeyBiryukov
10 years ago

  • Keywords good-first-bug added; easy-fix removed

@chownd
10 years ago

disables magic_quotes_sybase in setup-config.php

#11 @chownd
10 years ago

  • Keywords has-patch added; needs-patch removed

#12 follow-up: @SergeyBiryukov
10 years ago

  • Keywords needs-patch added; has-patch removed

Could you please attach an SVN patch rather than a PHP file?

See http://make.wordpress.org/core/handbook/submitting-a-patch/.

@egill
10 years ago

#13 in reply to: ↑ 12 ; follow-ups: @egill
10 years ago

  • Keywords has-patch added; needs-patch removed

Replying to SergeyBiryukov:

Could you please attach an SVN patch rather than a PHP file?

See http://make.wordpress.org/core/handbook/submitting-a-patch/.

Not trying to steel anyones thunder, was bored, created an SVN patch (ignored unrelated changes in the file).

#14 in reply to: ↑ 13 @chownd
10 years ago

Replying to egill:

Replying to SergeyBiryukov:

Could you please attach an SVN patch rather than a PHP file?

See http://make.wordpress.org/core/handbook/submitting-a-patch/.

Not trying to steel anyones thunder, was bored, created an SVN patch (ignored unrelated changes in the file).

Thanks. I'm still trying to learn how to do that.

#15 in reply to: ↑ 13 ; follow-up: @maxzeroedge
10 years ago

Replying to egill:

Replying to SergeyBiryukov:

Could you please attach an SVN patch rather than a PHP file?

See http://make.wordpress.org/core/handbook/submitting-a-patch/.

Not trying to steel anyones thunder, was bored, created an SVN patch (ignored unrelated changes in the file).

Wouldn't suppressing the error in ini_set bring up troubles if it couldn't set? Instead we could check if it is active and then disable it?

@egill
10 years ago

#16 in reply to: ↑ 15 ; follow-up: @egill
10 years ago

Replying to maxzeroedge:

Wouldn't suppressing the error in ini_set bring up troubles if it couldn't set? Instead we could check if it is active and then disable it?

You're right (I should have paid a bit more attention creating the previous patch), thanks for the suggestion. Uploaded a new patch:
https://core.trac.wordpress.org/attachment/ticket/12031/12031.2.patch

#17 @egill
10 years ago

  • Version set to trunk

#18 @SergeyBiryukov
10 years ago

  • Keywords 4.1-early added
  • Version trunk deleted

#19 @DrewAPicture
10 years ago

  • Owner set to egill

#20 in reply to: ↑ 16 @nacin
10 years ago

  • Keywords 4.1-early removed
  • Milestone changed from Future Release to 4.0
  • Resolution set to fixed
  • Status changed from assigned to closed

Replying to egill:

Replying to maxzeroedge:

Wouldn't suppressing the error in ini_set bring up troubles if it couldn't set? Instead we could check if it is active and then disable it?

You're right (I should have paid a bit more attention creating the previous patch), thanks for the suggestion. Uploaded a new patch:
https://core.trac.wordpress.org/attachment/ticket/12031/12031.2.patch

I think we error suppress ini_set() for when the function might end up in disabled_functions by annoying hosts. I would just copy exactly what we do in wp-settings.php, so the first patch.

However, and I'm sorry for the 'bad' news for those who worked on this ticket in the last few months, but this was fixed incidentally in 4.0, as setup-config.php now loads wp-settings.php. See #28740, [28978].

Good news is, we just retroactively increased our fixed bugs count for 4.0 by one.

Thanks all. :)

Note: See TracTickets for help on using tickets.