Answers.Body: <p>PHP 7 is not supported yet - see <a href="https://issues.civicrm.org/jira/browse/CRM-17789" rel="nofollow noreferrer">CRM-17789</a></p>
  
  <p>Also: <a href="https://civicrm.stackexchange.com/questions/9473/what-is-the-recommended-level-of-php-for-civicrm-there-seems-to-be-some-inconsi">this</a> and <a href="https://civicrm.stackexchange.com/questions/8732/is-civicrm-4-6-x-compatible-with-php-7">this</a></p>
  
  <p>Update (Aug 2017):  The information above was correct when it was written.  Things have moved on and PHP 7.0 is supported from 4.7.12 onwards.  Earlier versions of 4.7 don't run on PHP 7.0 and nor does any released version of 4.6.  There are discussions about adding this to 4.6 - see the same ticket.</p>
  
  <p>The most current information should be on <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+PHP+Requirements" rel="nofollow noreferrer">CiviCRM PHP Requirements</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-26T16:45:54.063Z
Answers.Text: According to the information in https://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+PHP+Requirements PHP 7.0 is compatible. I am running 7.0.22 but still get the same error.
Answers.UserDisplayName: Vietyank
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-29T20:01:10.033Z
Answers.Text: @Vietyank - what version of CiviCRM are you running?
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-03T09:12:23.410Z
Answers.LastActivityDate: 2017-08-29T20:00:11.173Z
Answers.LastEditDate: 2017-08-29T20:00:11.173Z
Answers.UserDisplayName: Aidan
Body: <p>On an Ubuntu 16.04 VM with PHP 7.x, I am seeing the following error when enabling CiviCRM in Drupal 7:</p>
  
  <blockquote>
    <p>ParseError: syntax error, unexpected 'clone' (T_CLONE), expecting identifier (T_STRING) or '(' in require_once() (line 1 of /home/westernfriend/public_html/sites/all/modules/civicrm/packages/DB/DataObject.php(207) : eval()'d code).</p>
  </blockquote>
  
  <p>Is this due to incompatibility with PHP 7, a missing dependency, or perhaps something else?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-11-12T07:15:14.437Z
Comments.Text: I just wanted to drop in and say thanks. Installing LTS (at the time not uo to PHP 7.0) and wondering why I was getting error after error. Fighting Index location and PHP Parse errors to no avail.... now I know why... too smart to read the docs first... duh. Thanks.
Comments.UserDisplayName: Timothy W. Crane
Tags: <drupal><php><php7>
Title: Unexpected T_CLONE, expecting T_STRING (PHP 7, Drupal 7, Ubuntu 16.04)
ThreadText: # Unexpected T_CLONE, expecting T_STRING (PHP 7, Drupal 7, Ubuntu 16.04)
  
  (Asked by: username_0 on 2016-06-02)
  
  On an Ubuntu 16.04 VM with PHP 7.x, I am seeing the following error when enabling CiviCRM in Drupal 7:
  
  > ParseError: syntax error, unexpected 'clone' (T\_CLONE), expecting identifier (T\_STRING) or '(' in require\_once() (line 1 of /home/westernfriend/public\_html/sites/all/modules/civicrm/packages/DB/DataObject.php(207) : eval()'d code).
  
  Is this due to incompatibility with PHP 7, a missing dependency, or perhaps something else?
  
  **Tags:** drupal, php, php7
  
  > **Comments:**
  > **username_1**: I just wanted to drop in and say thanks. Installing LTS (at the time not uo to PHP 7.0) and wondering why I was getting error after error. Fighting Index location and PHP Parse errors to no avail.... now I know why... too smart to read the docs first... duh. Thanks.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-06-03. Score: 7 | Accepted answer
  
  PHP 7 is not supported yet - see [CRM-17789](https://issues.civicrm.org/jira/browse/CRM-17789)
  
  Also: [this](https://civicrm.stackexchange.com/questions/9473/what-is-the-recommended-level-of-php-for-civicrm-there-seems-to-be-some-inconsi) and [this](https://civicrm.stackexchange.com/questions/8732/is-civicrm-4-6-x-compatible-with-php-7)
  
  Update (Aug 2017): The information above was correct when it was written. Things have moved on and PHP 7.0 is supported from 4.7.12 onwards. Earlier versions of 4.7 don't run on PHP 7.0 and nor does any released version of 4.6. There are discussions about adding this to 4.6 - see the same ticket.
  
  The most current information should be on [CiviCRM PHP Requirements](https://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+PHP+Requirements)
  
  > **Comments:**
  > **username_3**: According to the information in https://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+PHP+Requirements PHP 7.0 is compatible. I am running 7.0.22 but still get the same error.  
  > **username_2**: @username_3 - what version of CiviCRM are you running?  
  
  ---
  
  