WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#13437 closed defect (bug)

Segfault in function admin_url when not using casting (string) — at Initial Version

Reported by: dz0ny Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Multisite Keywords: has-patch reporter-feedback
Focuses: Cc:

Description

Hello,

there is unresolved bug with php 5.2.x(see http://bugs.php.net/bug.php?id=47522), which causes segfault in all distributions and with multiple frameworks(Zend, qubit-toolkit...), the solution so far is to cast return value as string.

Solution is:
in wp-includes/link-template.php

function admin_url( $path = '', $scheme = 'admin' ) {
	return (string)get_admin_url(null, $path, $scheme);
}

Server info:
http://www.prirocnikporoka.si/phpinfo.php

Change History (0)

Note: See TracTickets for help on using tickets.