View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
04369 | Bug reports | Other | public | 2010-05-26 18:44 | 2010-07-06 11:22 |
Reporter | Matijs | Assigned To | c_schmitz | ||
Priority | normal | Severity | block | ||
Status | closed | Resolution | won't fix | ||
Product Version | 1.90b | ||||
Summary | 04369: Admin module crashes on Vista when using mysqli | ||||
Description | After upgrading to the latest beta version admin.php crashed with a FastCGI error on my Vista machine using PHP 5.3-NTS, while the same code worked OK on my Windows 2003 machine using PHP 5.2-NTS. Changing config.php to use mysql solves the problem. | ||||
Steps To Reproduce | I am not sure if it is reproducible as it seems very machine dependent. | ||||
Additional Information | Inserting the line The function becomes:
If anyone can tell me why this happened or if some else has the same problem I will be very glad to know. | ||||
Tags | No tags attached. | ||||
Attached Files | adodb-mysqli.inc.php.diff (641 bytes)
Index: adodb-mysqli.inc.php =================================================================== --- adodb-mysqli.inc.php (revision 8748) +++ adodb-mysqli.inc.php (working copy) @@ -155,6 +155,9 @@ function ServerInfo() { + $arr = array(''); // If someone knows why this line prevents Vista from crashing + // with a FastCGI erroro I am glad to learn of it, but for now it works. + // 2010-05-26 Matt de Jong $arr['description'] = $this->GetOne("select version()"); $arr['version'] = ADOConnection::_findvers($arr['description']); return $arr; | ||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | 1.90 | ||||
I will donate to the project if issue is resolved | |||||
Browser | Firefox & IE | ||||
Database type & version | mysqli 5.1 | ||||
Server OS (if known) | W | ||||
Webserver software & version (if known) | IIS 7 | ||||
PHP Version | 5.3 | ||||
Very weird indeed. I let Carsten look at this when he gets back next week. Matt, can you attach a diff file from 1.90beta3 in this ticket, this will save 3 Carsten seconds ;-) Thibault |
|
Added, will do so automatically from now on. ;-) It does seem to me that this should not be a LS problem, but so far I failed to reproduce it in clean PHP code, while there are a lot of non-static references that are accessed as if they were static. On the other hand I have this nagging doubt that I have had this problem before with other software. |
|
If you run 'select version()' on your mysql server what is the result? |
|
select version(): I access the same database from both Vista/PHP 5.3 and Windows 2003/PHP 5.2. 5.2 works, 5.3 doesn't. Hardcoding the version string was one of the first things I tried, but didn't work: Assigning the string didn't work: Hardcoding the string and assigning it does work: Maybe it is just my Vista installation gone haywire. You can also leave this fix out and see if any other people have the problem. |
|
hmm.. can you check what kind of value is given back by the GetOne statement? If it looks like a string then try $arr['description'] = (string)$this->GetOne("select version()"); and see if that helps |
|
Interesting. var_dump($this->GetOne("select version()")); Gets me the familiar crash. $x = $this->GetOne("select version()"); Gets: While: $arr = array('description' => (string) $this->GetOne("select version()")); does work without any problems - and is of course way more elegant than my solution. Is this a known PHP / Vista problem? |
|
@Matijs, we had mysqli problems too on our dev server with adodb causing segfaults. Adodb states mysqli is tested only for the most common functions, so bugfixing at adodb project would be great. |
|
I think it is a bug in PHP 5.3 somewhere regarding the return type. Anyway, since nobody is able to reproduce here you (Matjis) will have to dig deeper and find out. |
|
I will dig deeper, might take me some time though. :( Also I will keep testing mysqli for a while. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2010-05-26 18:44 | Matijs | New Issue | |
2010-05-26 18:44 | Matijs | Status | new => assigned |
2010-05-26 18:44 | Matijs | Assigned To | => user372 |
2010-05-26 19:00 | lemeur | Issue Monitored: lemeur | |
2010-05-26 19:00 | lemeur | Assigned To | user372 => c_schmitz |
2010-05-26 19:02 | lemeur | Note Added: 11980 | |
2010-05-26 19:06 | Matijs | File Added: adodb-mysqli.inc.php.diff | |
2010-05-26 19:09 | Matijs | Note Added: 11981 | |
2010-06-02 13:20 | c_schmitz | Note Added: 12093 | |
2010-06-02 13:20 | c_schmitz | Status | assigned => feedback |
2010-06-02 19:33 | Matijs | Note Added: 12102 | |
2010-06-02 19:33 | Matijs | Status | feedback => assigned |
2010-06-02 20:33 | c_schmitz | Note Added: 12103 | |
2010-06-04 01:45 | Mazi | Status | assigned => feedback |
2010-06-11 11:30 | Matijs | Note Added: 12216 | |
2010-06-11 11:30 | Matijs | Status | feedback => assigned |
2010-06-11 11:30 | Matijs | Note Edited: 12216 | |
2010-06-16 13:09 | mdekker | Note Added: 12226 | |
2010-06-16 23:29 | c_schmitz | Note Added: 12236 | |
2010-06-16 23:30 | c_schmitz | Status | assigned => resolved |
2010-06-16 23:30 | c_schmitz | Resolution | open => won't fix |
2010-06-17 12:53 | Matijs | Note Added: 12248 | |
2010-07-06 11:22 | c_schmitz | Status | resolved => closed |
2010-10-25 00:21 | c_schmitz | Category | Data Access => (No Category) |
2021-08-12 16:47 | guest | Bug heat | 8 => 10 |