xref: /php-src/ext/session/tests/bug79221.phpt (revision 6600ad60)
1--TEST--
2Null Pointer Dereference in PHP Session Upload Progress
3--EXTENSIONS--
4session
5--INI--
6error_reporting=0
7file_uploads=1
8upload_max_filesize=1024
9session.save_path=
10session.name=PHPSESSID
11session.serialize_handler=php
12session.use_strict_mode=0
13session.use_cookies=1
14session.use_only_cookies=0
15session.upload_progress.enabled=1
16session.upload_progress.cleanup=0
17session.upload_progress.prefix=upload_progress_
18session.upload_progress.name=PHP_SESSION_UPLOAD_PROGRESS
19session.upload_progress.freq=1%
20session.upload_progress.min_freq=0.000000001
21--COOKIE--
22PHPSESSID=session-upload
23--POST_RAW--
24Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
25-----------------------------20896060251896012921717172737
26Content-Disposition: form-data; name="PHPSESSID"
27
28session-upload
29-----------------------------20896060251896012921717172737
30Content-Disposition: form-data; name="PHP_SESSION_UPLOAD_PROGRESS"
31
32ryat
33-----------------------------20896060251896012921717172737
34Content-Disposition: form-data; file="file"; ryat="filename"
35
361
37-----------------------------20896060251896012921717172737--
38--FILE--
39<?php
40
41session_start();
42var_dump($_SESSION);
43session_destroy();
44
45?>
46--EXPECT--
47array(0) {
48}
49