[09:20:02] Gloria: Hi ! You around ? [09:31:54] unlikely at this time [09:35:43] Nemo_bis: ok !! I was trying to fix a bug I reported long back ( https://bugzilla.wikimedia.org/show_bug.cgi?id=59663 ) [09:35:57] on showing up an error message when the username field is empty [09:36:18] I wanted to know how, the variable $wgDBuser can be accessed from MySqlInstaller.php::submitConnectForm() so that using !strlen will do the trick [09:36:40] when I pass it as an argument to the existing $newValues = $this->setVarsFromRequest( array( ) ); [09:36:53] its showing up a null [09:39:40] "long" for a 5xxxx bug? :D [09:40:14] DanielK_WMDE is probably your safest bet for such a question in EU morning [09:40:55] Nemo_bis: long :D that came out somehow [09:41:09] DanielK_WMDE: Hi ! You around ? [09:41:52] tonythomas: hey. barely. you are talking about accessign wgDBuser during installation? [09:42:34] DanielK_WMDE: of course. I want to get wgDBuser, just like the function gets wgDBserver and others [09:42:36] I don't know much about the installation process, but generally: wgDBuser is the user MediaWiki used to connect to the database. It's quite possibel that it's not available during installation [09:43:43] DanielK_WMDE: in the installation step, MW asks for the Database username right ? I want to check whethere that feild is kept null, once the user clicks the submit button [09:45:05] tonythomas: if you want to know whether the field was null, look at the WebRequest [09:45:33] i don't know when and how the installer would extract, scrub and interpret the data from the request. [09:48:10] DanielK_WMDE: if you check here https://github.com/wikimedia/mediawiki-core/blob/master/includes/installer/MssqlInstaller.php#L138 [09:49:13] actually https://github.com/wikimedia/mediawiki-core/blob/master/includes/installer/MysqlInstaller.php#L103 [09:49:21] the earlier was for Mssql [09:52:22] tonythomas: i don't really understand how that class works, i have never looked into it. but I saw this: $dbUser = $this->getVar( 'wgDBuser' ); [09:54:34] tonythomas: there is also this rather suspicious line: $wgDBuser = $this->getVar( '_InstallUser' ); [09:54:58] tonythomas: note that the DB user used during setup may be different from the DB user configured to be used during normal operations. [09:55:24] the setup process might be done usign the root user, so the installer can create the database. [09:55:47] DanielK_WMDE: Thanks. I will test with that, and tell the o/p in a few mins. [09:55:49] i guess that causes a bit of confusion in the code (because it relies on evil globals). [09:57:36] DanielK_WMDE: Yeah! Earlier I tried with that, and got nowhere. anyway, will try it again [09:59:01] tonythomas: you'll have to crefully trace the information flow. [09:59:25] this is why it's good to make function parameters the *only* method of information flow. Makes things obvious and easy to understand :) [10:00:38] DanielK_WMDE: of course! here, we got a function with no arguments :) [10:03:17] yay ;) [10:10:43] DanielK_WMDE: I gave the code as [10:10:45] $wgDBuser = $this->getVar( '_InstallUser' ); [10:10:45] echo strlen($wgDBuser); [10:10:53] and guess how it worked ? [10:11:15] in the first submit button click, it shows some random value... but on refresh, it shows the original [10:11:22] again not much use I think [10:12:10] every time, I do the second click on submit, the echo shows up the right length [14:31:20] mglaser: is a 1.22.x release planned or not for the 27th? [14:32:13] Nemo_bis : it's planned. Announcement will go out today [14:32:32] Nemo_bis: is there a reason your're asking? [14:33:04] mglaser: see my email http://p.defau.lt/?_yzbzvIVKfHPwMkIkVSsGg [14:33:24] I failed to send it, as said in http://lists.wikimedia.org/pipermail/mediawiki-l/2014-March/042664.html [14:39:43] Nemo_bis: k. [19:48:11] gerrit down? [19:50:02] now back Danny_B [19:51:29] yup, works now [19:55:55] Why I am not edit user preferences on login wiki? [20:18:54] Kolega2357: You shouldn't be using loginwiki for anything [20:19:23] What is the purpose of Login Wiki? [20:28:48] Kolega2357: surprisingly, logging in [20:29:12] * Nemo_bis hears "Ooooooooooooooooooooooohh" from audience [20:30:34] * marktraceur learned something today [23:27:58] php question: is there any other reason I might be getting the "PHP Warning: escapeshellarg() has been disabled for security reasons" message despite "safe_mode = no" in php.ini and mod_php having been compiled with safe_mode off? [23:28:45] It can also be on the list of blacklisted functions, iirc [23:29:38] abartov: hi, have you seen the mail otto sent regarding stat1 access? [23:30:11] matanya, yes, thanks. I don't need my account there. [23:30:29] thank you, i'll remove it. [23:34:19] csteipp, thanks! How/where do I find that? [23:36:08] abartov: I was actually thinking of the suhosin blacklist: suhosin.executor.func.blacklist [23:36:25] Not sure if you're running 5.3 with suhosin, or 5.4+ [23:37:07] csteipp, oh yeah, just found it by brute grepping! :) [23:37:11] Thanks, I think I got it.