https://bugzilla.wikimedia.org/show_bug.cgi?id=18855
Summary: require(./commandLine.inc): failed to open stream: No
such file
Product: MediaWiki
Version: 1.16-svn
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: Normal
Component: Maintenance scripts
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=6140)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6140)
don't assume $CWD
$ php radioscanningtw.jidanni.org/maintenance/convertUserOptions.php
Warning: require(./commandLine.inc): failed to open stream: No such file
OK, here's the patch for this one. You might want to check the rest:
$ find . -path \*/.svn -prune -o -type f|xargs grep -h
commandLine.inc|sort|uniq -c|sort -nr
> 49 require_once( 'commandLine.inc' );
> 17 require_once( "commandLine.inc" );
> 10 require_once( dirname(__FILE__).'/../commandLine.inc' );
> 9 require_once 'commandLine.inc';
> 4 require_once('commandLine.inc');
> 4 require( dirname(__FILE__).'/../commandLine.inc' );
> 3 require_once( dirname(__FILE__) . '/../commandLine.inc' );
> 2 require_once(dirname(__FILE__).'/../commandLine.inc');
> 2 require_once( dirname(__FILE__) . '/../commandLine.inc' );
> 2 require_once "commandLine.inc";
> 2 require( dirname( __FILE__ ) .'/../commandLine.inc' );
> 2 require "commandLine.inc";
> 2 include_once( "commandLine.inc" );
> 2 include('commandLine.inc');
> 1 require_once( dirname(__FILE__).'/commandLine.inc' );
> 1 require_once( dirname(__FILE__).'/../maintenance/commandLine.inc' );
> 1 require_once( dirname(__FILE__) . '/../maintenance/commandLine.inc' );
> 1 require_once( dirname(__FILE__) . '/' . 'commandLine.inc' );
> 1 require_once( dirname( __FILE__ ). '/../maintenance/commandLine.inc' );
> 1 require_once( dirname( __FILE__ ) . '/commandLine.inc' );
> 1 require_once( "$IP/maintenance/commandLine.inc" );
> 1 require( dirname( __FILE__ ) . '/../commandLine.inc' );
> 1 require( 'commandLine.inc' );
> 1 require( './commandLine.inc' );
> 1 require( '../commandLine.inc' );
> 1 require 'commandLine.inc';
> 1 * The include paths change after this file is included from
> commandLine.inc,
> 1 require_once(
> dirname(__FILE__).'/../maintenance/commandLine.inc' );
> 1 require_once( 'commandLine.inc' );
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l