Changeset 7a259c6 in github


Ignore:
Timestamp:
Jun 4, 2012 10:08:37 AM (12 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
release-0.8
Children:
0e58211
Parents:
9c8ff86
git-author:
Aleksander Machniak <alec@…> (06/04/12 10:05:57)
git-committer:
Aleksander Machniak <alec@…> (06/04/12 10:08:37)
Message:

Fix magic_quotes_sybase handling (#1488506)
Improved handling of critical PHP settings - try to set them to required value before die()

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rfec9f11 r7a259c6  
    22=========================== 
    33 
     4- Fix errors with enabled PHP magic_quotes_sybase option (#1488506) 
    45- Fix SQL query for contacts listing on MS SQL Server (#1488505) 
    56- Update to TinyMCE 3.5.2 
  • INSTALL

    r77c779a r7a259c6  
    3232   - mbstring.func_overload disabled 
    3333   - magic_quotes_runtime disabled 
     34   - magic_quotes_sybase disabled 
    3435* PHP compiled with OpenSSL to connect to IMAPS and to use the spell checker 
    3536* A MySQL (4.0.8 or newer), PostgreSQL, MSSQL database engine 
  • installer/check.php

    r2f88b17 r7a259c6  
    4141    'mbstring.func_overload'        => 0, 
    4242    'suhosin.session.encrypt'       => 0, 
     43    'magic_quotes_runtime'          => 0, 
     44    'magic_quotes_sybase'           => 0, 
    4345); 
    4446 
  • program/include/iniset.php

    r9456eac r7a259c6  
    2424*/ 
    2525 
    26 // Some users are not using Installer, so we'll check some 
    27 // critical PHP settings here. Only these, which doesn't provide 
    28 // an error/warning in the logs later. See (#1486307). 
    29 $crit_opts = array( 
    30     'mbstring.func_overload' => 0, 
     26$config = array( 
     27    'error_reporting'         => E_ALL &~ (E_NOTICE | E_STRICT), 
     28    // Some users are not using Installer, so we'll check some 
     29    // critical PHP settings here. Only these, which doesn't provide 
     30    // an error/warning in the logs later. See (#1486307). 
     31    'mbstring.func_overload'  => 0, 
    3132    'suhosin.session.encrypt' => 0, 
    32     'session.auto_start' => 0, 
    33     'file_uploads' => 1, 
    34     'magic_quotes_runtime' => 0, 
     33    'session.auto_start'      => 0, 
     34    'file_uploads'            => 1, 
     35    'magic_quotes_runtime'    => 0, 
     36    'magic_quotes_sybase'     => 0, // #1488506 
    3537); 
    36 foreach ($crit_opts as $optname => $optval) { 
    37     if ($optval != ini_get($optname)) { 
     38foreach ($config as $optname => $optval) { 
     39    if ($optval != ini_get($optname) && @ini_set($optname, $optval) === false) { 
    3840        die("ERROR: Wrong '$optname' option value. Read REQUIREMENTS section in INSTALL file or use Roundcube Installer, please!"); 
    3941    } 
     
    6870    die("Fatal error: ini_set/set_include_path does not work."); 
    6971} 
    70  
    71 ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT)); 
    7272 
    7373// increase maximum execution time for php scripts 
Note: See TracChangeset for help on using the changeset viewer.