#25444 [Opn->Bgs]: php4isapi.dll path to win.ini doesn't load from current path.

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

  1. #1

    Default #25444 [Opn->Bgs]: php4isapi.dll path to win.ini doesn't load from current path.

    ID: 25444
    Updated by: [email]sniper@php.net[/email]
    Reported By: ict at primus dot ca
    -Status: Open
    +Status: Bogus
    Bug Type: *Configuration Issues
    Operating System: W2K
    PHP Version: 4.3.3
    New Comment:

    Remove the php.ini from C:\winnt


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

    [2003-09-08 23:34:12] ict at primus dot ca

    Description:
    ------------
    When using php4isapi.dll in IIS the php.ini path can't be specified.

    Details:
    OS Windows 2K
    Version PHP 4.3.3 ( complied VC++ V6.0 )
    WServer IIS 4.X
    Running each .DLL in seperate memory space.

    Now this may be more of an issue, for us big server people.



    Reproduce code:
    ---------------
    Problem Outline:
    using: C:/client1/php4isapi.dll for /client1/web/index.php
    using: C:/client2/php4isapi.dll for /client2/web/index.php
    etc ...
    They both use C:\winnt\php.ini

    Expected result:
    ----------------
    Should use:
    using: C:/client1/php4isapi.dll for /client1/web/index.php
    Useing C:/client1/php.ini
    using: C:/client2/php4isapi.dll for /client2/web/index.php
    Useing C:/client2/php.ini
    etc...



    Actual result:
    --------------
    Does use:
    using: C:/client1/php4isapi.dll for /client1/web/index.php
    Useing C:/winnt/php.ini
    using: C:/client2/php4isapi.dll for /client2/web/index.php
    Useing C:/winnt/php.ini
    etc...


    I've serched the net and your site, no luck in finding a way of running
    serveral copy of the 'php.ini'. I run the sites now with NO .INI and it
    works great!

    With no security in place :(

    Please take your time on this one. I might be a simple re-complile or a
    complex solution. THX again!

    From:
    Deek Starr


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


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

  2. Similar Questions and Discussions

    1. current path
      Hello together, how can I find the current path my Perlscript is started ? Jochen
    2. #25444 [Bgs->Opn]: php4isapi.dll path to win.ini doesn't load from current path.
      ID: 25444 User updated by: ict at primus dot ca Reported By: ict at primus dot ca -Status: Bogus +Status: ...
    3. #25444 [NEW]: php4isapi.dll path to win.ini doesn't load from current path.
      From: ict at primus dot ca Operating system: W2K PHP version: 4.3.3 PHP Bug Type: *Configuration Issues Bug description: ...
    4. [PHP] get current path
      Hi, The PHP site seems to be down right now ... so here's the question: Is it possible for PHP to tell me the current path of a page? For...
    5. load path as a selection button on the path palette
      What button is that and where is the path palette? I am using the pen tool.
  3. #2

    Default #25444 [Opn->Bgs]: php4isapi.dll path to win.ini doesn't load from current path.

    ID: 25444
    Updated by: [email]sniper@php.net[/email]
    Reported By: ict at primus dot ca
    -Status: Open
    +Status: Bogus
    Bug Type: *Configuration Issues
    Operating System: W2K
    PHP Version: 4.3.3
    New Comment:

    It's looked in the path first where php4ts.dll is.



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

    [2003-09-09 10:55:07] ict at primus dot ca

    Correct me if i'm wrong, but i think this has sompthing to do with my
    problem. When php_ini.c locates the php.ini file, it searchs the
    "Search path" but doesn't look at the current directory first?

    Plz help, i'm not a C programmer.


    /* Check if php_ini_path_override is a file */
    if (!sapi_module.php_ini_ignore) {
    if (sapi_module.php_ini_path_override &&
    sapi_module.php_ini_path_override[0]) {
    struct stat statbuf;

    if (!VCWD_STAT(sapi_module.php_ini_path_override, &statbuf)) {
    if (!((statbuf.st_mode & S_IFMT) == S_IFDIR)) {
    fh.handle.fp = VCWD_FOPEN(sapi_module.php_ini_path_override,
    "r");
    fh.filename = sapi_module.php_ini_path_override;
    }
    }
    }
    /* Search php-%sapi-module-name%.ini file in search path */
    if (!fh.handle.fp) {
    const char *fmt = "php-%s.ini";
    char *ini_fname = emalloc(strlen(fmt) + strlen(sapi_module.name));
    sprintf(ini_fname, fmt, sapi_module.name);
    fh.handle.fp = php_fopen_with_path(ini_fname, "r",
    php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
    efree(ini_fname);
    if (fh.handle.fp) {
    fh.filename = php_ini_opened_path;
    }
    }
    /* Search php.ini file in search path */
    if (!fh.handle.fp) {
    fh.handle.fp = php_fopen_with_path("php.ini", "r",
    php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
    if (fh.handle.fp) {
    fh.filename = php_ini_opened_path;
    }
    }
    }

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

    [2003-09-09 10:29:00] ict at primus dot ca

    Should have read: No C:\winnt\php.ini,

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

    [2003-09-09 10:27:59] ict at primus dot ca

    Perhaps your just jumpy but:

    I have to test that the php4isapi.dll will not load the local php.ini
    when there is no C:\winnt\


    Try Try again.

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

    [2003-09-09 09:40:22] [email]sniper@php.net[/email]

    Remove the php.ini from C:\winnt

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

    [2003-09-08 23:34:12] ict at primus dot ca

    Description:
    ------------
    When using php4isapi.dll in IIS the php.ini path can't be specified.

    Details:
    OS Windows 2K
    Version PHP 4.3.3 ( complied VC++ V6.0 )
    WServer IIS 4.X
    Running each .DLL in seperate memory space.

    Now this may be more of an issue, for us big server people.



    Reproduce code:
    ---------------
    Problem Outline:
    using: C:/client1/php4isapi.dll for /client1/web/index.php
    using: C:/client2/php4isapi.dll for /client2/web/index.php
    etc ...
    They both use C:\winnt\php.ini

    Expected result:
    ----------------
    Should use:
    using: C:/client1/php4isapi.dll for /client1/web/index.php
    Useing C:/client1/php.ini
    using: C:/client2/php4isapi.dll for /client2/web/index.php
    Useing C:/client2/php.ini
    etc...



    Actual result:
    --------------
    Does use:
    using: C:/client1/php4isapi.dll for /client1/web/index.php
    Useing C:/winnt/php.ini
    using: C:/client2/php4isapi.dll for /client2/web/index.php
    Useing C:/winnt/php.ini
    etc...


    I've serched the net and your site, no luck in finding a way of running
    serveral copy of the 'php.ini'. I run the sites now with NO .INI and it
    works great!

    With no security in place :(

    Please take your time on this one. I might be a simple re-complile or a
    complex solution. THX again!

    From:
    Deek Starr


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=25444&edit=1[/url]
    sniper@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