Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297487 - www-apps/mythweb-0.22_p22763-r1 needs to require php with spl
Summary: www-apps/mythweb-0.22_p22763-r1 needs to require php with spl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: MythTV Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-19 04:55 UTC by Christopher J. Madsen
Modified: 2010-01-04 05:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher J. Madsen 2009-12-19 04:55:31 UTC
Mythweb needs dev-lang/php to be built with the spl use flag, but the ebuild doesn't include spl on the require_php_with_use line.  (This probably applies to the earlier ebuilds as well.)

Reproducible: Always

Steps to Reproduce:
1. Build dev-lang/php with -spl
2. Install www-apps/mythweb-0.22_p22763-r1
3. Fatal error: Call to undefined function spl_autoload_register() in /var/www/localhost/htdocs/mythweb/includes/class_autoload.php on line 33

Actual Results:  
It allowed me to install mythweb without enabling spl in PHP

Expected Results:  
The ebuild should have told me I needed to rebuild PHP with spl.
Comment 1 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2009-12-27 20:42:49 UTC
What specific page of sub-page of mythweb were you on?
Comment 2 Christopher J. Madsen 2009-12-28 03:17:31 UTC
The root page, /mythweb/.  It can't do anything without spl.

mythweb.php:  require_once 'includes/init.php';

includes/init.php:  require_once 'includes/class_autoload.php';

includes/class_autoload.php:  spl_autoload_register('autoload');

spl_autoload_register exists only if PHP was built with the spl use flag.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-01-04 05:43:07 UTC
fixed. thanks