ID:               33156
 User updated by:  tomo at groovecast dot org
 Reported By:      tomo at groovecast dot org
-Status:           Feedback
+Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: cygwin-1.5.16-1/XP
 PHP Version:      5.0.4, 4.3.11
 New Comment:

I tried php5-200505272030, and the problem remains. windows native
version is not the case. It's a cygwin API problem.

cygwin's setitimer implementation is following.

at cygwin-1.5.16-1/winsup/cygwin/timer.cc:354
extern "C" int
setitimer (int which, const struct itimerval *value, struct itimerval
*ovalue)
{
  if (which != ITIMER_REAL)
    {
      set_errno (EINVAL);
      return -1;
    }
--snipped--

As you can see setitimer(ITIMER_PROF, ...) fails, and no signal will be
generated.


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

[2005-05-27 08:49:07] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



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

[2005-05-27 01:18:04] tomo at groovecast dot org

Description:
------------
Since Cygwin-1.5.16-1 implements setitimer (ITIMER_REAL, ...) only,
tests/func/005a.phpt test always fails. This problem also happens with
php5.



Reproduce code:
---------------
tests/func/005a.phpt contents.

Expected result:
----------------
Start
Shutdown



Actual result:
--------------
Start



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


-- 
Edit this bug report at http://bugs.php.net/?id=33156&edit=1

Reply via email to