8000 debug windows · symfony/symfony@beb338b · GitHub
[go: up one dir, main page]

Skip to content

Commit beb338b

Browse files
committed
debug windows
1 parent 9b56fc5 commit beb338b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ test_script:
6363
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
6464
- copy /Y c:\php\php.ini-min c:\php\php.ini
6565
- IF %APPVEYOR_REPO_BRANCH:~-2% neq .x (rm -Rf src\Symfony\Bridge\PhpUnit)
66-
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data || SET X=!errorlevel!
66+
- php phpunit src\Symfony\Component\Cache\Tests\Adapter\TagAwareAdapterTest.php --filter=testLog --exclude-group tty,benchmark,intl-data || SET X=!errorlevel!
6767
- copy /Y c:\php\php.ini-max c:\php\php.ini
68-
- php phpunit src\Symfony --exclude-group tty,benchmark,intl-data || SET X=!errorlevel!
68+
- php phpunit src\Symfony\Component\Cache\Tests\Adapter\TagAwareAdapterTest.php --filter=testLog --exclude-group tty,benchmark,intl-data || SET X=!errorlevel!
6969
- exit %X%

src/Symfony/Component/Cache/LockRegistry.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public static function setFiles(array $files): array
8181

8282
public static function compute(callable $callback, ItemInterface $item, bool &$save, CacheInterface $pool, \Closure $setMetadata = null, LoggerInterface $logger = null)
8383
{
84+
var_dump(crc32($item->getKey())); die();
8485
$key = self::$files ? crc32($item->getKey()) % \count(self::$files) : -1;
8586

8687
if ($key < 0 || (self::$lockedFiles[$key] ?? false) || !$lock = self::open($key)) {
@@ -142,7 +143,7 @@ private static function open(int $key)
142143
if (null !== $h = self::$openedFiles[$key] ?? null) {
143144
return $h;
144145
}
145-
set_error_handler(function () {});
146+
set_error_handler(function () {var_dump(func_get_args());});
146147
try {
147148
$h = fopen(self::$files[$key], 'r+');
148149
} finally {

0 commit comments

Comments
 (0)
0