Bug #68502 [Opn->Nab]: execution sequence is wrong on the ISAPI
| From: | aharvey@php.net | Date: | Wed, 26 Nov 2014 17:34:53 +0000 |
| Subject: | Bug #68502 [Opn->Nab]: execution sequence is wrong on the ISAPI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188804@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68502&edit=1
ID: 68502
Updated by: aharvey@php.net
Reported by: hewei986532 at sina dot com
Summary: execution sequence is wrong on the ISAPI
-Status: Open
+Status: Not a bug
Type: Bug
Package: *Web Server problem
Operating System: centos
PHP Version: 5.4Git-2014-11-26 (Git)
Block user comment: N
Private report: N
New Comment:
Please reopen this bug against the pthreads extension, rather than PHP itself: https://bugs.php.net/report.php?package=pthreads
Previous Comments:
------------------------------------------------------------------------
[2014-11-26 08:58:45] hewei986532 at sina dot com
Description:
------------
The result is wrong when access test script which is Similar to the Singleton.php example file In
the browser to access .Then it's correct on the cli.
Pthread is a great progress for phperã
Test script:
---------------
<?php
class test {
public static function hello()
{
return true;
}
}
if (test::hello()) {
printf("...1\n");
if (test::hello()) {
printf("...2\n");
}
}
class UserThread extends Thread {
public function run () {
if (test::hello()) {
printf("...3\n");
if (test::hello()) {
printf("...4\n");
}
}
}
}
$thread = new UserThread();
$thread->start();
Expected result:
----------------
...1 ...2 ...3 ...4
Actual result:
--------------
...3 ...4 ...1 ...2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68502&edit=1