Changeset 11662

Show
Ignore:
Timestamp:
03/03/11 19:28:02 (2 years ago)
Author:
p_lindheimer
Message:

remove dl() re #4001

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.9/amp_conf/htdocs/admin/cdr/lib/defines.php

    r11047 r11662  
    4444                /* on centos this extension is not loaded by default */ 
    4545                if (! extension_loaded('sqlite3')  && ! extension_loaded('SQLITE3')) 
    46                         dl('sqlite3.so'); 
     46                        die_freepbx('sqlite3.so extension must be loaded to run with sqlite3'); 
    4747 
    4848                if (! @require_once('DB/sqlite3.php') ) 
  • freepbx/branches/2.9/amp_conf/htdocs/admin/common/db_connect.php

    r10865 r11662  
    3939    /* on centos this extension is not loaded by default */ 
    4040    if (! extension_loaded('sqlite3') && ! extension_loaded('SQLITE3')) 
    41       dl('sqlite3.so'); 
     41      die_freepbx('sqlite3.so extension must be loaded to run with sqlite3'); 
    4242 
    4343    if (! @require_once('DB/sqlite3.php') ) 
  • freepbx/branches/2.9/amp_conf/htdocs/recordings/includes/database.php

    r6231 r11662  
    4949      ); 
    5050      if (! extension_loaded('sqlite3') && ! extension_loaded('SQLITE3')) { 
    51         dl('sqlite3.so'); 
     51       die_freepbx('sqlite3.so extension must be loaded to run with sqlite3'); 
    5252      } 
    5353 
  • modules/branches/2.9/core/agi-bin/sql.php

    r8468 r11662  
    196196      $this->debug('Loading sqlite3.so', 4); 
    197197      // It's not loaded. Load it. 
     198      // dl() is gone in php5, but since this will crash it anyhow, will just leave it as is 
    198199      dl('sqlite3.so'); 
    199200      // That would have crashed PHP if it couldn't load it, so we know it's loaded if