Skip to content

Commit 82d46e3

Browse files
committed
Update ext/phar parameter names
Closes GH-6307.
1 parent 21dafab commit 82d46e3

9 files changed

+134
-131
lines changed

ext/phar/phar_object.stub.php

Lines changed: 73 additions & 75 deletions
Large diffs are not rendered by default.

ext/phar/phar_object_arginfo.h

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 8dff2050ad65f94a41176cfb280d02c4fb61dcf7 */
2+
* Stub hash: e06a2ea3d97778e61aca0f91fda7b72c29ef171d */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
@@ -11,69 +11,69 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar___destruct, 0, 0, 0)
1111
ZEND_END_ARG_INFO()
1212

1313
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_addEmptyDir, 0, 0, 1)
14-
ZEND_ARG_TYPE_INFO(0, dirname, IS_STRING, 0)
14+
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
1515
ZEND_END_ARG_INFO()
1616

1717
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_addFile, 0, 0, 1)
1818
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
19-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, localname, IS_STRING, 1, "null")
19+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, localName, IS_STRING, 1, "null")
2020
ZEND_END_ARG_INFO()
2121

2222
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_addFromString, 0, 0, 2)
23-
ZEND_ARG_TYPE_INFO(0, localname, IS_STRING, 0)
23+
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
2424
ZEND_ARG_TYPE_INFO(0, contents, IS_STRING, 0)
2525
ZEND_END_ARG_INFO()
2626

2727
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_buildFromDirectory, 0, 0, 1)
28-
ZEND_ARG_TYPE_INFO(0, base_dir, IS_STRING, 0)
29-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, regex, IS_STRING, 0, "\"\"")
28+
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
29+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"\"")
3030
ZEND_END_ARG_INFO()
3131

3232
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_buildFromIterator, 0, 0, 1)
3333
ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0)
34-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, base_directory, IS_STRING, 1, "null")
34+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, baseDirectory, IS_STRING, 1, "null")
3535
ZEND_END_ARG_INFO()
3636

3737
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_compressFiles, 0, 0, 1)
38-
ZEND_ARG_TYPE_INFO(0, compression_type, IS_LONG, 0)
38+
ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0)
3939
ZEND_END_ARG_INFO()
4040

4141
#define arginfo_class_Phar_decompressFiles arginfo_class_Phar___destruct
4242

4343
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_compress, 0, 0, 1)
44-
ZEND_ARG_TYPE_INFO(0, compression_type, IS_LONG, 0)
45-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, file_ext, IS_STRING, 1, "null")
44+
ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0)
45+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
4646
ZEND_END_ARG_INFO()
4747

4848
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_decompress, 0, 0, 0)
49-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, file_ext, IS_STRING, 1, "null")
49+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
5050
ZEND_END_ARG_INFO()
5151

5252
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_convertToExecutable, 0, 0, 0)
5353
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_LONG, 1, "null")
54-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression_type, IS_LONG, 1, "null")
55-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, file_ext, IS_STRING, 1, "null")
54+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression, IS_LONG, 1, "null")
55+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, extension, IS_STRING, 1, "null")
5656
ZEND_END_ARG_INFO()
5757

5858
#define arginfo_class_Phar_convertToData arginfo_class_Phar_convertToExecutable
5959

6060
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_copy, 0, 0, 2)
61-
ZEND_ARG_TYPE_INFO(0, newfile, IS_STRING, 0)
62-
ZEND_ARG_TYPE_INFO(0, oldfile, IS_STRING, 0)
61+
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
62+
ZEND_ARG_TYPE_INFO(0, from, IS_STRING, 0)
6363
ZEND_END_ARG_INFO()
6464

6565
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_count, 0, 0, 0)
6666
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "COUNT_NORMAL")
6767
ZEND_END_ARG_INFO()
6868

6969
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_delete, 0, 0, 1)
70-
ZEND_ARG_TYPE_INFO(0, entry, IS_STRING, 0)
70+
ZEND_ARG_TYPE_INFO(0, localName, IS_STRING, 0)
7171
ZEND_END_ARG_INFO()
7272

7373
#define arginfo_class_Phar_delMetadata arginfo_class_Phar___destruct
7474

7575
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_extractTo, 0, 0, 1)
76-
ZEND_ARG_TYPE_INFO(0, pathto, IS_STRING, 0)
76+
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
7777
ZEND_ARG_TYPE_MASK(0, files, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
7878
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, overwrite, _IS_BOOL, 0, "false")
7979
ZEND_END_ARG_INFO()
@@ -83,7 +83,7 @@ ZEND_END_ARG_INFO()
8383
#define arginfo_class_Phar_getPath arginfo_class_Phar___destruct
8484

8585
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_getMetadata, 0, 0, 0)
86-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unserialize_options, IS_ARRAY, 0, "[]")
86+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unserializeOptions, IS_ARRAY, 0, "[]")
8787
ZEND_END_ARG_INFO()
8888

8989
#define arginfo_class_Phar_getModified arginfo_class_Phar___destruct
@@ -101,19 +101,19 @@ ZEND_END_ARG_INFO()
101101
#define arginfo_class_Phar_isCompressed arginfo_class_Phar___destruct
102102

103103
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_isFileFormat, 0, 0, 1)
104-
ZEND_ARG_TYPE_INFO(0, fileformat, IS_LONG, 0)
104+
ZEND_ARG_TYPE_INFO(0, format, IS_LONG, 0)
105105
ZEND_END_ARG_INFO()
106106

107107
#define arginfo_class_Phar_isWritable arginfo_class_Phar___destruct
108108

109109
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_offsetExists, 0, 0, 1)
110-
ZEND_ARG_INFO(0, entry)
110+
ZEND_ARG_INFO(0, localName)
111111
ZEND_END_ARG_INFO()
112112

113113
#define arginfo_class_Phar_offsetGet arginfo_class_Phar_offsetExists
114114

115115
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_offsetSet, 0, 0, 2)
116-
ZEND_ARG_INFO(0, entry)
116+
ZEND_ARG_INFO(0, localName)
117117
ZEND_ARG_INFO(0, value)
118118
ZEND_END_ARG_INFO()
119119

@@ -125,21 +125,21 @@ ZEND_END_ARG_INFO()
125125

126126
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_setDefaultStub, 0, 0, 0)
127127
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
128-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webindex, IS_STRING, 1, "null")
128+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webIndex, IS_STRING, 1, "null")
129129
ZEND_END_ARG_INFO()
130130

131131
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_setMetadata, 0, 0, 1)
132132
ZEND_ARG_TYPE_INFO(0, metadata, IS_MIXED, 0)
133133
ZEND_END_ARG_INFO()
134134

135135
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_setSignatureAlgorithm, 0, 0, 1)
136-
ZEND_ARG_TYPE_INFO(0, algorithm, IS_LONG, 0)
137-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, privatekey, IS_STRING, 1, "null")
136+
ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0)
137+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, privateKey, IS_STRING, 1, "null")
138138
ZEND_END_ARG_INFO()
139139

140140
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Phar_setStub, 0, 0, 1)
141-
ZEND_ARG_INFO(0, newstub)
142-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxlen, IS_LONG, 0, "-1")
141+
ZEND_ARG_INFO(0, stub)
142+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "-1")
143143
ZEND_END_ARG_INFO()
144144

145145
#define arginfo_class_Phar_startBuffering arginfo_class_Phar___destruct
@@ -150,15 +150,15 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_apiVersion, 0, 0, IS_
150150
ZEND_END_ARG_INFO()
151151

152152
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_canCompress, 0, 0, _IS_BOOL, 0)
153-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, method, IS_LONG, 0, "0")
153+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression, IS_LONG, 0, "0")
154154
ZEND_END_ARG_INFO()
155155

156156
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_canWrite, 0, 0, _IS_BOOL, 0)
157157
ZEND_END_ARG_INFO()
158158

159159
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_createDefaultStub, 0, 0, IS_STRING, 0)
160160
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
161-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webindex, IS_STRING, 1, "null")
161+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, webIndex, IS_STRING, 1, "null")
162162
ZEND_END_ARG_INFO()
163163

164164
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_getSupportedCompression, 0, 0, IS_ARRAY, 0)
@@ -185,35 +185,35 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_mapPhar, 0, 0, _IS_BO
185185
ZEND_END_ARG_INFO()
186186

187187
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_running, 0, 0, IS_STRING, 0)
188-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retphar, _IS_BOOL, 0, "true")
188+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, returnPhar, _IS_BOOL, 0, "true")
189189
ZEND_END_ARG_INFO()
190190

191191
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_mount, 0, 2, IS_VOID, 0)
192-
ZEND_ARG_TYPE_INFO(0, inphar, IS_STRING, 0)
193-
ZEND_ARG_TYPE_INFO(0, externalfile, IS_STRING, 0)
192+
ZEND_ARG_TYPE_INFO(0, pharPath, IS_STRING, 0)
193+
ZEND_ARG_TYPE_INFO(0, externalPath, IS_STRING, 0)
194194
ZEND_END_ARG_INFO()
195195

196196
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_mungServer, 0, 1, IS_VOID, 0)
197-
ZEND_ARG_TYPE_INFO(0, munglist, IS_ARRAY, 0)
197+
ZEND_ARG_TYPE_INFO(0, variables, IS_ARRAY, 0)
198198
ZEND_END_ARG_INFO()
199199

200200
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_unlinkArchive, 0, 1, _IS_BOOL, 0)
201-
ZEND_ARG_TYPE_INFO(0, archive, IS_STRING, 0)
201+
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
202202
ZEND_END_ARG_INFO()
203203

204204
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Phar_webPhar, 0, 0, IS_VOID, 0)
205205
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, alias, IS_STRING, 1, "null")
206206
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, index, IS_STRING, 1, "null")
207-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, f404, IS_STRING, 0, "\"\"")
208-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mimetypes, IS_ARRAY, 0, "[]")
209-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rewrites, IS_CALLABLE, 1, "null")
207+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fileNotFoundScript, IS_STRING, 0, "\"\"")
208+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mimeTypes, IS_ARRAY, 0, "[]")
209+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, rewrite, IS_CALLABLE, 1, "null")
210210
ZEND_END_ARG_INFO()
211211

212212
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PharData___construct, 0, 0, 1)
213213
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
214214
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS")
215215
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, alias, IS_STRING, 1, "null")
216-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fileformat, IS_LONG, 0, "0")
216+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_LONG, 0, "0")
217217
ZEND_END_ARG_INFO()
218218

219219
#define arginfo_class_PharData___destruct arginfo_class_Phar___destruct
@@ -254,7 +254,9 @@ ZEND_END_ARG_INFO()
254254

255255
#define arginfo_class_PharData_getPath arginfo_class_Phar___destruct
256256

257-
#define arginfo_class_PharData_getMetadata arginfo_class_Phar_getMetadata
257+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PharData_getMetadata, 0, 0, 0)
258+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, unserialize_options, IS_ARRAY, 0, "[]")
259+
ZEND_END_ARG_INFO()
258260

259261
#define arginfo_class_PharData_getModified arginfo_class_Phar___destruct
260262

@@ -290,7 +292,10 @@ ZEND_END_ARG_INFO()
290292

291293
#define arginfo_class_PharData_setSignatureAlgorithm arginfo_class_Phar_setSignatureAlgorithm
292294

293-
#define arginfo_class_PharData_setStub arginfo_class_Phar_setStub
295+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PharData_setStub, 0, 0, 1)
296+
ZEND_ARG_INFO(0, newstub)
297+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, maxlen, IS_LONG, 0, "-1")
298+
ZEND_END_ARG_INFO()
294299

295300
#define arginfo_class_PharData_startBuffering arginfo_class_Phar___destruct
296301

@@ -355,7 +360,7 @@ ZEND_END_ARG_INFO()
355360
#define arginfo_class_PharFileInfo_hasMetadata arginfo_class_Phar___destruct
356361

357362
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PharFileInfo_isCompressed, 0, 0, 0)
358-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression_type, IS_LONG, 1, "null")
363+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, compression, IS_LONG, 1, "null")
359364
ZEND_END_ARG_INFO()
360365

361366
#define arginfo_class_PharFileInfo_isCRCChecked arginfo_class_Phar___destruct

ext/phar/tests/badparameters.phpt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ try {
228228
}
229229
?>
230230
--EXPECTF--
231-
Phar::mungServer(): Argument #1 ($munglist) must be of type array, string given
231+
Phar::mungServer(): Argument #1 ($variables) must be of type array, string given
232232
Phar::createDefaultStub(): Argument #1 ($index) must be of type ?string, array given
233233
Phar::loadPhar(): Argument #1 ($filename) must be of type string, array given
234-
Phar::canCompress(): Argument #1 ($method) must be of type int, string given
234+
Phar::canCompress(): Argument #1 ($compression) must be of type int, string given
235235
Phar::__construct(): Argument #1 ($filename) must be of type string, array given
236236
Phar::convertToExecutable(): Argument #1 ($format) must be of type ?int, array given
237237
Phar::convertToData(): Argument #1 ($format) must be of type ?int, array given
238-
PharData::delete(): Argument #1 ($entry) must be of type string, array given
238+
PharData::delete(): Argument #1 ($localName) must be of type string, array given
239239
Cannot write out phar archive, phar is read-only
240240
Entry oops does not exist and cannot be deleted
241241
%sfrontcontroller10.phar
@@ -244,23 +244,23 @@ A Phar alias cannot be set in a plain tar archive
244244
Phar::setAlias(): Argument #1 ($alias) must be of type string, array given
245245
Cannot change stub, phar is read-only
246246
A Phar stub cannot be set in a plain tar archive
247-
Phar::setStub(): Argument #1 ($newstub) must be of type string, array given
247+
Phar::setStub(): Argument #1 ($stub) must be of type string, array given
248248
A Phar stub cannot be set in a plain tar archive
249249
Phar::setDefaultStub(): Argument #1 ($index) must be of type ?string, array given
250250
Cannot change stub: phar.readonly=1
251251
Cannot set signature algorithm, phar is read-only
252-
Phar::compress(): Argument #1 ($compression_type) must be of type int, array given
252+
Phar::compress(): Argument #1 ($compression) must be of type int, array given
253253
Cannot compress phar archive, phar is read-only
254-
Phar::compressFiles(): Argument #1 ($compression_type) must be of type int, array given
254+
Phar::compressFiles(): Argument #1 ($compression) must be of type int, array given
255255
Phar is readonly, cannot change compression
256256
Phar::copy() expects exactly 2 arguments, 1 given
257257
Cannot copy "a" to "b", phar is read-only
258-
Phar::offsetExists(): Argument #1 ($entry) must be of type string, array given
259-
Phar::offsetGet(): Argument #1 ($entry) must be of type string, array given
258+
Phar::offsetExists(): Argument #1 ($localName) must be of type string, array given
259+
Phar::offsetGet(): Argument #1 ($localName) must be of type string, array given
260260
Phar::offsetSet() expects exactly 2 arguments, 1 given
261-
PharData::offsetUnset(): Argument #1 ($entry) must be of type string, array given
261+
PharData::offsetUnset(): Argument #1 ($localName) must be of type string, array given
262262
Write operations disabled by the php.ini setting phar.readonly
263-
Phar::addEmptyDir(): Argument #1 ($dirname) must be of type string, array given
263+
Phar::addEmptyDir(): Argument #1 ($directory) must be of type string, array given
264264
Phar::addFile(): Argument #1 ($filename) must be of type string, array given
265265
Phar::addFromString() expects exactly 2 arguments, 1 given
266266
Write operations disabled by the php.ini setting phar.readonly

ext/phar/tests/bug64931/bug64931.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ CAUGHT: Cannot create any files in magic ".phar" directory
5353
CAUGHT: Cannot create any files in magic ".phar" directory
5454
CAUGHT: Cannot create any files in magic ".phar" directory
5555
CAUGHT: Cannot create any files in magic ".phar" directory
56-
CAUGHT: Phar::addFromString(): Argument #1 ($localname) must not contain any null bytes
56+
CAUGHT: Phar::addFromString(): Argument #1 ($localName) must not contain any null bytes

ext/phar/tests/cache_list/frontcontroller31.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Content-type: text/html; charset=UTF-8
1313
--FILE_EXTERNAL--
1414
files/frontcontroller16.phar
1515
--EXPECTF--
16-
Fatal error: Uncaught TypeError: Phar::webPhar(): Argument #5 ($rewrites) must be a valid callback or null, class "fail" not found in %s:%d
16+
Fatal error: Uncaught TypeError: Phar::webPhar(): Argument #5 ($rewrite) must be a valid callback or null, class "fail" not found in %s:%d
1717
Stack trace:
1818
#0 %s(%d): Phar::webPhar('test.phar', '/index.php', '', Array, Array)
1919
#1 {main}

ext/phar/tests/create_path_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ string(5) "query"
7878
11:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
7979
12:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
8080
13:Error: file_put_contents(phar://%s): Failed to open stream: phar error: invalid path "%s" contains illegal character
81-
Exception: Phar::offsetSet(): Argument #1 ($entry) must not contain any null bytes
81+
Exception: Phar::offsetSet(): Argument #1 ($localName) must not contain any null bytes

ext/phar/tests/frontcontroller31.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Content-type: text/html; charset=UTF-8
1212
--FILE_EXTERNAL--
1313
files/frontcontroller16.phar
1414
--EXPECTF--
15-
Fatal error: Uncaught TypeError: Phar::webPhar(): Argument #5 ($rewrites) must be a valid callback or null, class "fail" not found in %s:%d
15+
Fatal error: Uncaught TypeError: Phar::webPhar(): Argument #5 ($rewrite) must be a valid callback or null, class "fail" not found in %s:%d
1616
Stack trace:
1717
#0 %s(%d): Phar::webPhar('test.phar', '/index.php', '', Array, Array)
1818
#1 {main}

ext/phar/tests/phar_extract.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ string(3) "hi3"
142142
string(3) "hi2"
143143
bool(false)
144144
Phar::extractTo(): Argument #2 ($files) must be of type array|string|null, stdClass given
145-
Phar::extractTo(): Argument #1 ($pathto) must be of type string, array given
145+
Phar::extractTo(): Argument #1 ($directory) must be of type string, array given
146146
Invalid argument, extraction path must be non-zero length
147147
Unable to use path "%soops" for extraction, it is a file, must be a directory
148148
Invalid argument, array of filenames to extract contains non-string value

ext/phar/tests/phar_unlinkarchive.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ __HALT_COMPILER();
9292
Unknown phar archive ""
9393
Unknown phar archive "%sphar_unlinkarchive.phar"
9494
Unknown phar archive "%sphar_unlinkarchive.phar.tar": internal corruption of phar "%sphar_unlinkarchive.phar.tar" (truncated entry)
95-
Phar::unlinkArchive(): Argument #1 ($archive) must be of type string, array given
95+
Phar::unlinkArchive(): Argument #1 ($filename) must be of type string, array given
9696
bool(false)
9797
string(48) "<?php echo "first stub\n"; __HALT_COMPILER(); ?>"
9898
phar archive "%sphar_unlinkarchive.phar" has open file handles or objects. fclose() all file handles, and unset() all objects prior to calling unlinkArchive()

0 commit comments

Comments
 (0)