mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
23 lines
422 B
PHP
23 lines
422 B
PHP
--TEST--
|
|
Bug #77322 (PharData::addEmptyDir('/') Possible integer overflow)
|
|
--EXTENSIONS--
|
|
phar
|
|
--FILE--
|
|
<?php
|
|
$zip = new PharData(__DIR__ . '/bug77322.zip');
|
|
$zip->addEmptyDir('/');
|
|
var_dump($zip->count());
|
|
|
|
$tar = new PharData(__DIR__ . '/bug77322.tar');
|
|
$tar->addEmptyDir('/');
|
|
var_dump($tar->count());
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
int(1)
|
|
--CLEAN--
|
|
<?php
|
|
unlink(__DIR__ . '/bug77322.zip');
|
|
unlink(__DIR__ . '/bug77322.tar');
|
|
?>
|