Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14593

setup.sh fails due to deprecated use of preg_replace

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.5
    • Fix Version/s: 4.4.6
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      To reproduce:

      • be on a relatively new version of PHP (I'm on 5.5.3-1ubuntu2.3)
      • checkout the 4.4 branch of the core, drupal, and packages repositories
      • run bin/setup.sh

      The script will output:
      PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/localhost/htdocs/sites/all/modules/civicrm/packages/Smarty/Smarty_Compiler.class.php on line 270

      The message is printed to civicrm-version.php as well as STDOUT, so the file becomes unparseable, which causes errors further along the setup process (either the "Creating database structure" step civicrm_generated.mysql step, I think). The result is a broken site.

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              pittstains Frank J. Gómez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: