From:             [EMAIL PROTECTED]
Operating system: WinME
PHP version:      4.3.0
PHP Bug Type:     Filesystem function related
Bug description:  Provider changed the PHP-Version

I' am sorry for my bad english, but I have a Problem with this Script.

function exec_sql_lines($sql_file, $old_string = '', $new_string = '') {
        
        $sql_query = isset($sql_query) ? $sql_query : "";
        
        if(!empty($sql_file) && $sql_file != "none") {
                $sql_query = fread(fopen($sql_file, "r"), filesize($sql_file));
                /* If magic_quotes_runtime is enabled, most functions that return data
from any sort of external source 
                   including databases and text files will have quotes escaped with a
backslash.
                */
                if (get_magic_quotes_runtime() == 1) $sql_query =
stripslashes($sql_query);
                /* replace old_string with new_string if they are set */
                if($old_string != '') {
                        $sql_query = ereg_replace($old_string,$new_string,$sql_query);
                }
        }
        $sql_query = trim($sql_query);
        
        if($sql_query != "") {
                $sql_query   = remove_remarks($sql_query);
                $pieces      = split_sql_file($sql_query,";");
                $cnt_pieces  = count($pieces);
                /* run multiple queries */
                for ($i=0; $i<$cnt_pieces; $i++) {
                        $sql = trim($pieces[$i]);
                        if (!empty($sql) and $sql[0] != "#") $result = 
mysql_query($sql);
                }
        }
        return true;
}

My Provider changed the PHP-Verion to 4.3.0 and from this
time this Script dosn't work.

Is there a Bug, nobody can help me.

Thanx Alf
-- 
Edit bug report at http://bugs.php.net/?id=22045&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22045&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22045&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22045&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22045&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22045&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22045&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22045&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22045&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22045&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22045&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22045&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22045&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22045&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22045&r=gnused

Reply via email to