#39144 [NEW]: curl session non-existing file:// corrupts php session

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #39144 [NEW]: curl session non-existing file:// corrupts php session

    From: troelskn at gmail dot com
    Operating system: windows xp
    PHP version: 5.1.6
    PHP Bug Type: cURL related
    Bug description: curl session non-existing file:// corrupts php session

    Description:
    ------------
    Opening a curl session to non-existing file over the file:// protocol
    corrupts php's session handler.

    Reproduce code:
    ---------------
    <?php
    session_start();
    $ch = curl_init("file://C:/filedoesntexist.txt");
    if ($ch != NULL) {
    $data = curl_exec($ch);
    curl_close($ch);
    }
    session_write_close();
    exit;

    Expected result:
    ----------------
    nothing

    Actual result:
    --------------
    Warning: session_write_close() [function.session-write-close]: write
    failed: Bad file descriptor (9) in C:\apache\htdocs\curltest.php on line
    8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8

    Warning: session_write_close() [function.session-write-close]: Failed to
    write session data (files). Please verify that the current setting of
    session.save_path is correct (C:\Programmer\nusphere\phped\php5\sessions)
    in C:\apache\htdocs\curltest.php on line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8


    --
    Edit bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39144&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39144&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39144&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39144&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39144&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39144&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39144&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39144&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39144&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39144&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39144&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39144&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39144&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39144&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39144&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39144&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39144&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39144&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39144&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39144&r=mysqlcfg[/url]
    troelskn at gmail dot com Guest

  2. Similar Questions and Discussions

    1. #16263 [Com]: session.start() create new empty session file and not resume existing session
      ID: 16263 Comment by: pat at burnttech dot com Reported By: kur at natur dot cuni dot cz Status: No Feedback...
    2. #26203 [Opn->Bgs]: Session corrupts .jar file transmission
      ID: 26203 Updated by: sniper@php.net Reported By: php_query at mrdoms dot plus dot com -Status: Open +Status: ...
    3. #26203 [Bgs->Opn]: Session corrupts .jar file transmission
      ID: 26203 User updated by: php_query at mrdoms dot plus dot com Reported By: php_query at mrdoms dot plus dot com -Status: ...
    4. #26203 [NEW]: Session corrupts .jar file transmission
      From: php_query at mrdoms dot plus dot com Operating system: All PHP version: 4.3.2 PHP Bug Type: *General Issues Bug...
    5. #26203 [Opn]: Session corrupts .jar file transmission
      ID: 26203 User updated by: php_query at mrdoms dot plus dot com Reported By: php_query at mrdoms dot plus dot com Status: ...
  3. #2

    Default #39144 [Opn->Fbk]: curl session non-existing file:// corrupts php session

    ID: 39144
    Updated by: [email]tony2001@php.net[/email]
    Reported By: troelskn at gmail dot com
    -Status: Open
    +Status: Feedback
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]




    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-13 10:08:43] troelskn at gmail dot com

    Description:
    ------------
    Opening a curl session to non-existing file over the file:// protocol
    corrupts php's session handler.

    Reproduce code:
    ---------------
    <?php
    session_start();
    $ch = curl_init("file://C:/filedoesntexist.txt");
    if ($ch != NULL) {
    $data = curl_exec($ch);
    curl_close($ch);
    }
    session_write_close();
    exit;

    Expected result:
    ----------------
    nothing

    Actual result:
    --------------
    Warning: session_write_close() [function.session-write-close]: write
    failed: Bad file descriptor (9) in C:\apache\htdocs\curltest.php on
    line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8

    Warning: session_write_close() [function.session-write-close]: Failed
    to write session data (files). Please verify that the current setting
    of session.save_path is correct
    (C:\Programmer\nusphere\phped\php5\sessions) in
    C:\apache\htdocs\curltest.php on line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    tony2001@php.net Guest

  4. #3

    Default #39144 [Fbk->Opn]: curl session non-existing file:// corrupts php session

    ID: 39144
    User updated by: troelskn at gmail dot com
    Reported By: troelskn at gmail dot com
    -Status: Feedback
    +Status: Open
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    Same.
    You have to hit refresh a single time to trigger the error.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-13 10:26:26] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-13 10:08:43] troelskn at gmail dot com

    Description:
    ------------
    Opening a curl session to non-existing file over the file:// protocol
    corrupts php's session handler.

    Reproduce code:
    ---------------
    <?php
    session_start();
    $ch = curl_init("file://C:/filedoesntexist.txt");
    if ($ch != NULL) {
    $data = curl_exec($ch);
    curl_close($ch);
    }
    session_write_close();
    exit;

    Expected result:
    ----------------
    nothing

    Actual result:
    --------------
    Warning: session_write_close() [function.session-write-close]: write
    failed: Bad file descriptor (9) in C:\apache\htdocs\curltest.php on
    line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8

    Warning: session_write_close() [function.session-write-close]: Failed
    to write session data (files). Please verify that the current setting
    of session.save_path is correct
    (C:\Programmer\nusphere\phped\php5\sessions) in
    C:\apache\htdocs\curltest.php on line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    troelskn at gmail dot com Guest

  5. #4

    Default #39144 [Opn->Fbk]: curl session non-existing file:// corrupts php session

    ID: 39144
    Updated by: [email]tony2001@php.net[/email]
    Reported By: troelskn at gmail dot com
    -Status: Open
    +Status: Feedback
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    This code doesn't produce any errors here.
    In fact, it doesn't produce anything at all.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-13 14:45:34] troelskn at gmail dot com

    Same.
    You have to hit refresh a single time to trigger the error.

    ------------------------------------------------------------------------

    [2006-10-13 10:26:26] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-13 10:08:43] troelskn at gmail dot com

    Description:
    ------------
    Opening a curl session to non-existing file over the file:// protocol
    corrupts php's session handler.

    Reproduce code:
    ---------------
    <?php
    session_start();
    $ch = curl_init("file://C:/filedoesntexist.txt");
    if ($ch != NULL) {
    $data = curl_exec($ch);
    curl_close($ch);
    }
    session_write_close();
    exit;

    Expected result:
    ----------------
    nothing

    Actual result:
    --------------
    Warning: session_write_close() [function.session-write-close]: write
    failed: Bad file descriptor (9) in C:\apache\htdocs\curltest.php on
    line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8

    Warning: session_write_close() [function.session-write-close]: Failed
    to write session data (files). Please verify that the current setting
    of session.save_path is correct
    (C:\Programmer\nusphere\phped\php5\sessions) in
    C:\apache\htdocs\curltest.php on line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    tony2001@php.net Guest

  6. #5

    Default #39144 [Fbk->Opn]: curl session non-existing file:// corrupts php session

    ID: 39144
    User updated by: troelskn at gmail dot com
    Reported By: troelskn at gmail dot com
    -Status: Feedback
    +Status: Open
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    You have to reload the page one time to trigger the error. It doesn't
    happen on first load.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-13 14:57:24] [email]tony2001@php.net[/email]

    This code doesn't produce any errors here.
    In fact, it doesn't produce anything at all.

    ------------------------------------------------------------------------

    [2006-10-13 14:45:34] troelskn at gmail dot com

    Same.
    You have to hit refresh a single time to trigger the error.

    ------------------------------------------------------------------------

    [2006-10-13 10:26:26] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-13 10:08:43] troelskn at gmail dot com

    Description:
    ------------
    Opening a curl session to non-existing file over the file:// protocol
    corrupts php's session handler.

    Reproduce code:
    ---------------
    <?php
    session_start();
    $ch = curl_init("file://C:/filedoesntexist.txt");
    if ($ch != NULL) {
    $data = curl_exec($ch);
    curl_close($ch);
    }
    session_write_close();
    exit;

    Expected result:
    ----------------
    nothing

    Actual result:
    --------------
    Warning: session_write_close() [function.session-write-close]: write
    failed: Bad file descriptor (9) in C:\apache\htdocs\curltest.php on
    line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8

    Warning: session_write_close() [function.session-write-close]: Failed
    to write session data (files). Please verify that the current setting
    of session.save_path is correct
    (C:\Programmer\nusphere\phped\php5\sessions) in
    C:\apache\htdocs\curltest.php on line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    troelskn at gmail dot com Guest

  7. #6

    Default #39144 [Opn->Fbk]: curl session non-existing file:// corrupts php session

    ID: 39144
    Updated by: [email]tony2001@php.net[/email]
    Reported By: troelskn at gmail dot com
    -Status: Open
    +Status: Feedback
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    That's what I did.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-14 13:01:36] troelskn at gmail dot com

    You have to reload the page one time to trigger the error. It doesn't
    happen on first load.

    ------------------------------------------------------------------------

    [2006-10-13 14:57:24] [email]tony2001@php.net[/email]

    This code doesn't produce any errors here.
    In fact, it doesn't produce anything at all.

    ------------------------------------------------------------------------

    [2006-10-13 14:45:34] troelskn at gmail dot com

    Same.
    You have to hit refresh a single time to trigger the error.

    ------------------------------------------------------------------------

    [2006-10-13 10:26:26] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    [2006-10-13 10:08:43] troelskn at gmail dot com

    Description:
    ------------
    Opening a curl session to non-existing file over the file:// protocol
    corrupts php's session handler.

    Reproduce code:
    ---------------
    <?php
    session_start();
    $ch = curl_init("file://C:/filedoesntexist.txt");
    if ($ch != NULL) {
    $data = curl_exec($ch);
    curl_close($ch);
    }
    session_write_close();
    exit;

    Expected result:
    ----------------
    nothing

    Actual result:
    --------------
    Warning: session_write_close() [function.session-write-close]: write
    failed: Bad file descriptor (9) in C:\apache\htdocs\curltest.php on
    line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8

    Warning: session_write_close() [function.session-write-close]: Failed
    to write session data (files). Please verify that the current setting
    of session.save_path is correct
    (C:\Programmer\nusphere\phped\php5\sessions) in
    C:\apache\htdocs\curltest.php on line 8
    Call Stack
    # Function Location
    1 {main}() C:\apache\htdocs\curltest.php:0
    2 session_write_close () C:\apache\htdocs\curltest.php:8



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    tony2001@php.net Guest

  8. #7

    Default #39144 [Fbk->Opn]: curl session non-existing file:// corrupts php session

    ID: 39144
    User updated by: troelskn at gmail dot com
    Reported By: troelskn at gmail dot com
    -Status: Feedback
    +Status: Open
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    My bad. I didn't update the extensions dir string in php.ini, so it
    still used my old php_curl.dll. I tried changing this to use the ext
    dir of the snapshot, and I disabled all other extensions. Now I get the
    following error (in apache error log) :

    PHP Warning: PHP Startup: curl: Unable to initialize module\nModule
    compiled with module API=20060613, debug=0, thread-safety=1\nPHP
    compiled with module API=20050922, debug=0, thread-safety=1\nThese
    options need to match\n in Unknown on line 0

    As I couldn't get the snapshot to work with php5apache2.dll, I replaced
    it with php5apache2_2.dll. Maybe this is the reason why curl fails ?
    I'm using apache 2.2.2


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-14 13:09:05] [email]tony2001@php.net[/email]

    That's what I did.

    ------------------------------------------------------------------------

    [2006-10-14 13:01:36] troelskn at gmail dot com

    You have to reload the page one time to trigger the error. It doesn't
    happen on first load.

    ------------------------------------------------------------------------

    [2006-10-13 14:57:24] [email]tony2001@php.net[/email]

    This code doesn't produce any errors here.
    In fact, it doesn't produce anything at all.

    ------------------------------------------------------------------------

    [2006-10-13 14:45:34] troelskn at gmail dot com

    Same.
    You have to hit refresh a single time to trigger the error.

    ------------------------------------------------------------------------

    [2006-10-13 10:26:26] [email]tony2001@php.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php5.2-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]



    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/39144[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]

    troelskn at gmail dot com Guest

  9. #8

    Default #39144 [Opn->Fbk]: curl session non-existing file:// corrupts php session

    ID: 39144
    Updated by: [email]tony2001@php.net[/email]
    Reported By: troelskn at gmail dot com
    -Status: Open
    +Status: Feedback
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    Please make sure you've removed all .dll's from the previous PHP
    installation, including php5ts.dll and reinstall PHP once again.
    The error message means that you're trying to load a newly compiled
    module with old PHP (php5ts.dll).


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-15 09:46:01] troelskn at gmail dot com

    My bad. I didn't update the extensions dir string in php.ini, so it
    still used my old php_curl.dll. I tried changing this to use the ext
    dir of the snapshot, and I disabled all other extensions. Now I get the
    following error (in apache error log) :

    PHP Warning: PHP Startup: curl: Unable to initialize module\nModule
    compiled with module API=20060613, debug=0, thread-safety=1\nPHP
    compiled with module API=20050922, debug=0, thread-safety=1\nThese
    options need to match\n in Unknown on line 0

    As I couldn't get the snapshot to work with php5apache2.dll, I replaced
    it with php5apache2_2.dll. Maybe this is the reason why curl fails ?
    I'm using apache 2.2.2

    ------------------------------------------------------------------------

    [2006-10-14 13:09:05] [email]tony2001@php.net[/email]

    That's what I did.

    ------------------------------------------------------------------------

    [2006-10-14 13:01:36] troelskn at gmail dot com

    You have to reload the page one time to trigger the error. It doesn't
    happen on first load.

    ------------------------------------------------------------------------

    [2006-10-13 14:57:24] [email]tony2001@php.net[/email]

    This code doesn't produce any errors here.
    In fact, it doesn't produce anything at all.

    ------------------------------------------------------------------------

    [2006-10-13 14:45:34] troelskn at gmail dot com

    Same.
    You have to hit refresh a single time to trigger the error.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/39144[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    tony2001@php.net Guest

  10. #9

    Default #39144 [Fbk->Opn]: curl session non-existing file:// corrupts php session

    ID: 39144
    User updated by: troelskn at gmail dot com
    Reported By: troelskn at gmail dot com
    -Status: Feedback
    +Status: Open
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:

    I tried removing the old installation of php - still the same error.

    My old installation of apache/php has the following line in httpd.conf
    :
    LoadModule php5_module c:/apache/php5/php5apache2.dll

    This doesn't work with the snapshot. I replaced it with :
    LoadModule php5_module c:/apache/php5/php5apache2_2.dll

    Does this make any difference ?


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-15 10:04:48] [email]tony2001@php.net[/email]

    Please make sure you've removed all .dll's from the previous PHP
    installation, including php5ts.dll and reinstall PHP once again.
    The error message means that you're trying to load a newly compiled
    module with old PHP (php5ts.dll).

    ------------------------------------------------------------------------

    [2006-10-15 09:46:01] troelskn at gmail dot com

    My bad. I didn't update the extensions dir string in php.ini, so it
    still used my old php_curl.dll. I tried changing this to use the ext
    dir of the snapshot, and I disabled all other extensions. Now I get the
    following error (in apache error log) :

    PHP Warning: PHP Startup: curl: Unable to initialize module\nModule
    compiled with module API=20060613, debug=0, thread-safety=1\nPHP
    compiled with module API=20050922, debug=0, thread-safety=1\nThese
    options need to match\n in Unknown on line 0

    As I couldn't get the snapshot to work with php5apache2.dll, I replaced
    it with php5apache2_2.dll. Maybe this is the reason why curl fails ?
    I'm using apache 2.2.2

    ------------------------------------------------------------------------

    [2006-10-14 13:09:05] [email]tony2001@php.net[/email]

    That's what I did.

    ------------------------------------------------------------------------

    [2006-10-14 13:01:36] troelskn at gmail dot com

    You have to reload the page one time to trigger the error. It doesn't
    happen on first load.

    ------------------------------------------------------------------------

    [2006-10-13 14:57:24] [email]tony2001@php.net[/email]

    This code doesn't produce any errors here.
    In fact, it doesn't produce anything at all.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/39144[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    troelskn at gmail dot com Guest

  11. #10

    Default #39144 [Opn->Fbk]: curl session non-existing file:// corrupts php session

    ID: 39144
    Updated by: [email]tony2001@php.net[/email]
    Reported By: troelskn at gmail dot com
    -Status: Open
    +Status: Feedback
    Bug Type: cURL related
    Operating System: windows xp
    PHP Version: 5.1.6
    New Comment:
    >I tried removing the old installation of php - still the same error.
    Which one of the two?
    >This doesn't work with the snapshot.
    "doesn't work"? I don't think I understand this..
    >Does this make any difference ?
    Of course it does, Apache 2.0.x and Apache 2.2.x are two different
    Apache versions.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-15 10:27:52] troelskn at gmail dot com

    I tried removing the old installation of php - still the same error.

    My old installation of apache/php has the following line in httpd.conf
    :
    LoadModule php5_module c:/apache/php5/php5apache2.dll

    This doesn't work with the snapshot. I replaced it with :
    LoadModule php5_module c:/apache/php5/php5apache2_2.dll

    Does this make any difference ?

    ------------------------------------------------------------------------

    [2006-10-15 10:04:48] [email]tony2001@php.net[/email]

    Please make sure you've removed all .dll's from the previous PHP
    installation, including php5ts.dll and reinstall PHP once again.
    The error message means that you're trying to load a newly compiled
    module with old PHP (php5ts.dll).

    ------------------------------------------------------------------------

    [2006-10-15 09:46:01] troelskn at gmail dot com

    My bad. I didn't update the extensions dir string in php.ini, so it
    still used my old php_curl.dll. I tried changing this to use the ext
    dir of the snapshot, and I disabled all other extensions. Now I get the
    following error (in apache error log) :

    PHP Warning: PHP Startup: curl: Unable to initialize module\nModule
    compiled with module API=20060613, debug=0, thread-safety=1\nPHP
    compiled with module API=20050922, debug=0, thread-safety=1\nThese
    options need to match\n in Unknown on line 0

    As I couldn't get the snapshot to work with php5apache2.dll, I replaced
    it with php5apache2_2.dll. Maybe this is the reason why curl fails ?
    I'm using apache 2.2.2

    ------------------------------------------------------------------------

    [2006-10-14 13:09:05] [email]tony2001@php.net[/email]

    That's what I did.

    ------------------------------------------------------------------------

    [2006-10-14 13:01:36] troelskn at gmail dot com

    You have to reload the page one time to trigger the error. It doesn't
    happen on first load.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/39144[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=39144&edit=1[/url]
    tony2001@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139