| 440 | | for (i = 0, c = xc_php_hcache.size; i < c; i ++) { |
| 441 | | xc_gc_deletes_one(xc_php_caches[i] TSRMLS_CC); |
| 442 | | } |
| 443 | | |
| 444 | | for (i = 0, c = xc_var_hcache.size; i < c; i ++) { |
| 445 | | xc_gc_deletes_one(xc_var_caches[i] TSRMLS_CC); |
| | 440 | if (xc_php_caches) { |
| | 441 | for (i = 0, c = xc_php_hcache.size; i < c; i ++) { |
| | 442 | xc_gc_deletes_one(xc_php_caches[i] TSRMLS_CC); |
| | 443 | } |
| | 444 | } |
| | 445 | |
| | 446 | if (xc_var_caches) { |
| | 447 | for (i = 0, c = xc_var_hcache.size; i < c; i ++) { |
| | 448 | xc_gc_deletes_one(xc_var_caches[i] TSRMLS_CC); |
| | 449 | } |
| 1438 | | if (!xc_initized) { |
| 1439 | | return 0; |
| 1440 | | } |
| 1441 | | for (i = 0; i < xc_php_hcache.size; i ++) { |
| 1442 | | shm = xc_php_caches[i]->shm; |
| 1443 | | if (shm->handlers->is_readwrite(shm, p)) { |
| 1444 | | return 1; |
| 1445 | | } |
| 1446 | | } |
| 1447 | | for (i = 0; i < xc_var_hcache.size; i ++) { |
| 1448 | | shm = xc_var_caches[i]->shm; |
| 1449 | | if (shm->handlers->is_readwrite(shm, p)) { |
| 1450 | | return 1; |
| | 1447 | |
| | 1448 | if (xc_php_caches) { |
| | 1449 | for (i = 0; i < xc_php_hcache.size; i ++) { |
| | 1450 | shm = xc_php_caches[i]->shm; |
| | 1451 | if (shm->handlers->is_readwrite(shm, p)) { |
| | 1452 | return 1; |
| | 1453 | } |
| | 1454 | } |
| | 1455 | } |
| | 1456 | |
| | 1457 | if (xc_var_caches) { |
| | 1458 | for (i = 0; i < xc_var_hcache.size; i ++) { |
| | 1459 | shm = xc_var_caches[i]->shm; |
| | 1460 | if (shm->handlers->is_readwrite(shm, p)) { |
| | 1461 | return 1; |
| | 1462 | } |
| 1460 | | if (!xc_initized) { |
| 1461 | | return 0; |
| 1462 | | } |
| 1463 | | for (i = 0; i < xc_php_hcache.size; i ++) { |
| 1464 | | shm = xc_php_caches[i]->shm; |
| 1465 | | if (shm->handlers->is_readonly(shm, p)) { |
| 1466 | | return 1; |
| 1467 | | } |
| 1468 | | } |
| 1469 | | for (i = 0; i < xc_var_hcache.size; i ++) { |
| 1470 | | shm = xc_var_caches[i]->shm; |
| 1471 | | if (shm->handlers->is_readonly(shm, p)) { |
| 1472 | | return 1; |
| | 1472 | |
| | 1473 | if (xc_php_caches) { |
| | 1474 | for (i = 0; i < xc_php_hcache.size; i ++) { |
| | 1475 | shm = xc_php_caches[i]->shm; |
| | 1476 | if (shm->handlers->is_readonly(shm, p)) { |
| | 1477 | return 1; |
| | 1478 | } |
| | 1479 | } |
| | 1480 | } |
| | 1481 | |
| | 1482 | if (xc_var_caches) { |
| | 1483 | for (i = 0; i < xc_var_hcache.size; i ++) { |
| | 1484 | shm = xc_var_caches[i]->shm; |
| | 1485 | if (shm->handlers->is_readonly(shm, p)) { |
| | 1486 | return 1; |
| | 1487 | } |