help! what should I do when there is a segmentation fault in my php script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yangsuli@gmail.com

    #1

    help! what should I do when there is a segmentation fault in my php script

    It works perfectly well before
    but today my browser cannot get this php script
    i tried to run it in the localhost
    and it reported a seg fault :(

    i donot konw what to do.....:(
    restarting the computer didnot work.
    and i donot think the problem lies on the code..
    even it is
    i only want it all come back to the good old days when the same php
    script works well..

    ps.is there any good debugger for php in linux?
    thanks a lot

  • B.r.K.o.N.j.A

    #2
    Re: help! what should I do when there is a segmentation fault inmy php script

    yangsuli@gmail. com wrote:
    It works perfectly well before
    but today my browser cannot get this php script
    i tried to run it in the localhost
    and it reported a seg fault :(
    >
    i donot konw what to do.....:(
    restarting the computer didnot work.
    and i donot think the problem lies on the code..
    even it is
    i only want it all come back to the good old days when the same php
    script works well..
    >
    ps.is there any good debugger for php in linux?
    thanks a lot
    >
    I had a problem with php 5.0.4 crashing apache on some2 simple if
    statement.It was inside medium sized object oriented app and it boiled
    down to some typecasting for example

    if($myvar=$some thing) // crashes apache
    if((int)$myvar= $something) // works fine

    Hope it helps

    --

    B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and
    Assasination

    Comment

    • yangsuli@gmail.com

      #3
      Re: help! what should I do when there is a segmentation fault in my php script

      i also tried to insert some echo or print
      but there's not any thing but segfault in the screen.

      but some php script works well.:.those not so complex.

      what problem could it be?

      here's some of my code:
      <?php
      echo test;
      requrie("...... ")
      .....

      ?>

      nothint but segfault.
      but if there's no requre
      the echo line works and we can see "test"
      then there''s some "undefined functiong called blabla"
      "yangsuli@gmail .com дµÀ£º
      "
      It works perfectly well before
      but today my browser cannot get this php script
      i tried to run it in the localhost
      and it reported a seg fault :(
      >
      i donot konw what to do.....:(
      restarting the computer didnot work.
      and i donot think the problem lies on the code..
      even it is
      i only want it all come back to the good old days when the same php
      script works well..

      ps.is there any good debugger for php in linux?
      thanks a lot

      Comment

      Working...