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

Skip to content

Commit c08849f

Browse files
committed
debug windows
1 parent 9b56fc5 commit c08849f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ public static function compute(callable $callback, ItemInterface $item, bool &$s
8383
{
8484
$key = self::$files ? crc32($item->getKey()) % \count(self::$files) : -1;
8585

86+
var_dump($key);
87+
var_dump($item);
88+
var_dump(self::$files);
89+
die();
90+
8691
if ($key < 0 || (self::$lockedFiles[$key] ?? false) || !$lock = self::open($key)) {
8792
return $callback($item, $save);
8893
}
@@ -142,7 +147,7 @@ private static function open(int $key)
142147
if (null !== $h = self::$openedFiles[$key] ?? null) {
143148
return $h;
144149
}
145-
set_error_handler(function () {});
150+
set_error_handler(function () {var_dump(func_get_args());});
146151
try {
147152
$h = fopen(self::$files[$key], 'r+');
148153
} finally {

0 commit comments

Comments
 (0)
0