LimeSurvey issue tracker
Registration

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
05377Bug reports[All Projects] Installationpublic2011-08-03 09:342011-08-04 12:29
ReporterWAWANSUR 
Assigned Tomot 
PrioritynormalSeverityminor 
StatusclosedResolutionfixed 
Product Version1.91+ 
Target VersionFixed in Version1.91+ 
Summary05377: magic quotes
DescriptionThe function get_magic_quotes_gpc() is not support by PHP6.
This function in common_function.php lines 3952
I will donate to the project if issue is resolved within 48 hrsNo
LimeSurvey build number OR git commit ID1.91
BrowserMozilla
Database & DB-VersionMy SQL 5.5.8
Operating System (Server)Windows XP
Webserver software & versionApache 2.217
PHP VersionPHP6
Attached Filesdiff file icon 05377-00-get_magic_quotes_gpc-php-6-no-externals.diff [^] (9,513 bytes) 2011-08-03 13:03 [Show Content]
diff file icon 05377-00-get_magic_quotes_gpc-php-6-forward-compat.diff [^] (1,196 bytes) 2011-08-03 13:13 [Show Content]

- Relationships

-  Notes
User avatar (15956)
DenisChenu (developer)
2011-08-03 09:50

Forum post:
http://www.limesurvey.org/en/forum/installation-a-update-issues/64135-fatal-error [^]

:)
User avatar (15957)
mot (developer)
2011-08-03 12:54

I'm creating a patch right now.
User avatar (15958)
mot (developer)
2011-08-03 13:06

Added a patch. It works by replacing get_magic_quotes_gpc() with ls_get_magic_quotes_gpc() (mind the ls_ in front). The patch does not reflect two external packages that still make use of it: kcfinder and adodb.

The alternative would be to create the function if it does not exist returning 0. I'll do a second patch right away.
User avatar (15959)
mot (developer)
2011-08-03 13:15

Second patch attached, it's much less inversive and reflects external packages as well. It works by adding the function get_magic_quotes_gpc() if it does not exists and returning 0 because if the function does not exists, magic quotes are off (the feature is not available any longer).
User avatar (15967)
c_schmitz (administrator)
2011-08-03 17:46

mot, looks good, please commit.
Thank you.
User avatar (15977)
mot (developer)
2011-08-04 12:29

Committed in 10640.

- Issue History
Date Modified Username Field Change
2011-08-03 09:34 WAWANSUR New Issue
2011-08-03 09:50 DenisChenu Note Added: 15956
2011-08-03 12:54 mot Note Added: 15957
2011-08-03 13:03 mot File Added: 05377-00-get_magic_quotes_gpc-php-6-no-externals.diff
2011-08-03 13:06 mot Note Added: 15958
2011-08-03 13:13 mot File Added: 05377-00-get_magic_quotes_gpc-php-6-forward-compat.diff
2011-08-03 13:15 mot Note Added: 15959
2011-08-03 17:46 c_schmitz Note Added: 15967
2011-08-03 17:46 c_schmitz Assigned To => mot
2011-08-03 17:46 c_schmitz Status new => assigned
2011-08-04 12:29 mot Note Added: 15977
2011-08-04 12:29 mot Status assigned => closed
2011-08-04 12:29 mot Resolution open => fixed
2011-08-04 12:29 mot Fixed in Version => 1.91+


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker