Make WordPress Core

Opened 17 years ago

Closed 12 years ago

#12031 closed defect (bug) (fixed)

Install do not check the magic_quote_sybase status

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

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 12 years ago.
disables magic_quotes_sybase in setup-config.php
12031.patch (550 bytes ) - added by egill 12 years ago.
12031.2.patch (590 bytes ) - added by egill 12 years ago.

Download all attachments as: .zip

Change History (23)

#1 @wpmuguru
17 years ago

  • Keywords needs-feedback added

Is this an issue with the WP install as well?

#2 @ryan
17 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
16 years ago

  • Keywords needs-patch dev-feedback added; needs-feedback removed
  • Milestone UnassignedFuture Release

Needs patch, I guess.

#4 @wonderboymusic
14 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
14 years ago

  • Milestone Future Release
  • Resolutionwontfix
  • Status newclosed

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
14 years ago

  • Keywords easy-fix added; dev-feedback removed
  • MilestoneFuture Release
  • Resolution wontfix
  • Status closedreopened

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

#8 @dd32
13 years ago

  • Owner dd32 removed
  • Status reopenedassigned

#9 @SergeyBiryukov
13 years ago

  • Description modified (diff)

#10 @SergeyBiryukov
12 years ago

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

@chownd
12 years ago

disables magic_quotes_sybase in setup-config.php

#11 @chownd
12 years ago

  • Keywords has-patch added; needs-patch removed

#12 follow-up: @SergeyBiryukov
12 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
12 years ago

#13 in reply to: ↑ 12 ; follow-ups: @egill
12 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
12 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
12 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
12 years ago

#16 in reply to: ↑ 15 ; follow-up: @egill
12 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
12 years ago

  • Versiontrunk

#18 @SergeyBiryukov
12 years ago

  • Keywords 4.1-early added
  • Version trunk

#19 @DrewAPicture
12 years ago

  • Owner set to egill

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

  • Keywords 4.1-early removed
  • Milestone Future Release4.0
  • Resolutionfixed
  • Status assignedclosed

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.