#40008 [NEW]: lock file

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

  1. #1

    Default #40008 [NEW]: lock file

    From: wisans at gmail dot com
    Operating system: window xp
    PHP version: 5.2.0
    PHP Bug Type: Performance problem
    Bug description: lock file

    Description:
    ------------
    host a call a.php and open new ie call b.php
    (this action make b.php wait for a.php success because it
    use same sessionid not problem, when socket_timeout it make a.php end and
    b.php end)

    problem is host b open b.php it wait for b.php on host a success


    Reproduce code:
    ---------------
    a.php
    <?php
    session_start();
    $url = "http://192.168.4.199/ar_master.php";
    fopen($url,"r");
    ?>

    b.php
    <?php
    session_start();
    $ip = "192.168.1.37";
    $ret = shell_exec ("$cmdName $argName $ip");
    echo "HELLO---->".rand(1,20000);
    ?>


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

  2. Similar Questions and Discussions

    1. lock file
      Using Contribute version 3. Drafts erased prior to publishing and now unable to edit. Receive error message stating that someone else is editing...
    2. Cannot Lock aspx File
      When I click on the Edit Page button, I receive the following error: Cannot lock the page to prevent other users from editing it. Please try...
    3. Anyone else have a file lock problem?
      We have a problem with File Locks on systems with Illustrator 10 or CS installed on them. It is intermittent so it has been a problem to isolate....
    4. Best way to lock and open a file
      I have a single line file where the line will be read and updated each time it is opened. My question is I need to open it with a lock so noone...
    5. File Lock
      How can we know when a file is locked using flock system call in linux. Thanks
  3. #2

    Default #40008 [Opn->Bgs]: lock file

    ID: 40008
    Updated by: [email]iliaa@php.net[/email]
    Reported By: wisans at gmail dot com
    -Status: Open
    +Status: Bogus
    Bug Type: Performance problem
    Operating System: window xp
    PHP Version: 5.2.0
    New Comment:

    Thank you for taking the time to write to us, but this is not
    a bug. Please double-check the documentation available at
    [url]http://www.php.net/manual/[/url] and the instructions on how to report
    a bug at [url]http://bugs.php.net/how-to-report.php[/url]

    ..


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

    [2007-01-03 11:05:28] wisans at gmail dot com

    Description:
    ------------
    host a call a.php and open new ie call b.php
    (this action make b.php wait for a.php success because it
    use same sessionid not problem, when socket_timeout it make a.php end
    and b.php end)

    problem is host b open b.php it wait for b.php on host a success


    Reproduce code:
    ---------------
    a.php
    <?php
    session_start();
    $url = "http://192.168.4.199/ar_master.php";
    fopen($url,"r");
    ?>

    b.php
    <?php
    session_start();
    $ip = "192.168.1.37";
    $ret = shell_exec ("$cmdName $argName $ip");
    echo "HELLO---->".rand(1,20000);
    ?>



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


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

  4. #3

    Default #40008 [Bgs]: lock file

    ID: 40008
    User updated by: wisans at gmail dot com
    Reported By: wisans at gmail dot com
    Status: Bogus
    Bug Type: Performance problem
    Operating System: window xp
    PHP Version: 5.2.0
    New Comment:

    host b call b.php not have any dependency b.php that call by host a,
    so i think it should not wait for host b.php success on on host a.
    if i comment line shell_exec , host b can run b.php without any
    problem.
    while shell_exec i test command shell_exec("dir");

    i test this problem on freeBSD it does not any problem.
    if i should read manual what chapter i read ? .
    thank you very much.


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

    [2007-01-04 02:15:58] [email]iliaa@php.net[/email]

    Thank you for taking the time to write to us, but this is not
    a bug. Please double-check the documentation available at
    [url]http://www.php.net/manual/[/url] and the instructions on how to report
    a bug at [url]http://bugs.php.net/how-to-report.php[/url]

    ..

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

    [2007-01-03 11:05:28] wisans at gmail dot com

    Description:
    ------------
    host a call a.php and open new ie call b.php
    (this action make b.php wait for a.php success because it
    use same sessionid not problem, when socket_timeout it make a.php end
    and b.php end)

    problem is host b open b.php it wait for b.php on host a success


    Reproduce code:
    ---------------
    a.php
    <?php
    session_start();
    $url = "http://192.168.4.199/ar_master.php";
    fopen($url,"r");
    ?>

    b.php
    <?php
    session_start();
    $ip = "192.168.1.37";
    $ret = shell_exec ("$cmdName $argName $ip");
    echo "HELLO---->".rand(1,20000);
    ?>



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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40008&edit=1[/url]
    wisans at gmail dot com 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