|
@@ 366-390 (lines=25) @@
|
| 363 |
|
$p_result_list = array();
|
| 364 |
|
|
| 365 |
|
// ----- Look if the $p_filelist is really an array
|
| 366 |
|
if (is_array($p_filelist)) {
|
| 367 |
|
|
| 368 |
|
// ----- Look if the first element is also an array
|
| 369 |
|
// This will mean that this is a file description entry
|
| 370 |
|
if (isset($p_filelist[0]) && is_array($p_filelist[0])) {
|
| 371 |
|
$v_att_list = $p_filelist;
|
| 372 |
|
}
|
| 373 |
|
|
| 374 |
|
// ----- The list is a list of string names
|
| 375 |
|
else {
|
| 376 |
|
$v_string_list = $p_filelist;
|
| 377 |
|
}
|
| 378 |
|
}
|
| 379 |
|
|
| 380 |
|
// ----- Look if the $p_filelist is a string
|
| 381 |
|
else if (is_string($p_filelist)) {
|
| 382 |
|
// ----- Create a list from the string
|
| 383 |
|
$v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist);
|
| 384 |
|
}
|
| 385 |
|
|
| 386 |
|
// ----- Invalid variable type for $p_filelist
|
| 387 |
|
else {
|
| 388 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_filelist");
|
| 389 |
|
return 0;
|
| 390 |
|
}
|
| 391 |
|
|
| 392 |
|
// ----- Reformat the string list
|
| 393 |
|
if (sizeof($v_string_list) != 0) {
|
|
@@ 553-577 (lines=25) @@
|
| 550 |
|
$p_result_list = array();
|
| 551 |
|
|
| 552 |
|
// ----- Look if the $p_filelist is really an array
|
| 553 |
|
if (is_array($p_filelist)) {
|
| 554 |
|
|
| 555 |
|
// ----- Look if the first element is also an array
|
| 556 |
|
// This will mean that this is a file description entry
|
| 557 |
|
if (isset($p_filelist[0]) && is_array($p_filelist[0])) {
|
| 558 |
|
$v_att_list = $p_filelist;
|
| 559 |
|
}
|
| 560 |
|
|
| 561 |
|
// ----- The list is a list of string names
|
| 562 |
|
else {
|
| 563 |
|
$v_string_list = $p_filelist;
|
| 564 |
|
}
|
| 565 |
|
}
|
| 566 |
|
|
| 567 |
|
// ----- Look if the $p_filelist is a string
|
| 568 |
|
else if (is_string($p_filelist)) {
|
| 569 |
|
// ----- Create a list from the string
|
| 570 |
|
$v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist);
|
| 571 |
|
}
|
| 572 |
|
|
| 573 |
|
// ----- Invalid variable type for $p_filelist
|
| 574 |
|
else {
|
| 575 |
|
PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type '".gettype($p_filelist)."' for p_filelist");
|
| 576 |
|
return 0;
|
| 577 |
|
}
|
| 578 |
|
|
| 579 |
|
// ----- Reformat the string list
|
| 580 |
|
if (sizeof($v_string_list) != 0) {
|