mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-17 14:06:38 +00:00
Compare commits
951
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12a6ea6fff | ||
|
|
7644cb4436 | ||
|
|
2a24558178 | ||
|
|
2637ce9fb0 | ||
|
|
38faa59bc4 | ||
|
|
57bf3eb6ca | ||
|
|
0e9fe5a2c2 | ||
|
|
29acd17ec2 | ||
|
|
7d14f70776 | ||
|
|
3d76289c59 | ||
|
|
eabb9be2ac | ||
|
|
f9207e3187 | ||
|
|
a0eb5848b5 | ||
|
|
cba0322c81 | ||
|
|
fc6e70d8e4 | ||
|
|
1504071cb1 | ||
|
|
5efdfee8c6 | ||
|
|
03fd10c479 | ||
|
|
75eeee8f24 | ||
|
|
0aa36e2d97 | ||
|
|
0f53b4e515 | ||
|
|
76ba9b44b4 | ||
|
|
3dc4f14c6b | ||
|
|
3e0b63312e | ||
|
|
689d1d9e4b | ||
|
|
686c7fec26 | ||
|
|
85ef85a0b4 | ||
|
|
f561727ee0 | ||
|
|
c8e40e49d7 | ||
|
|
63d87a0adb | ||
|
|
06c183b761 | ||
|
|
aef55bc5f3 | ||
|
|
9f045cd40e | ||
|
|
094bcdff8b | ||
|
|
334e62a77d | ||
|
|
3da811a124 | ||
|
|
f915973c1e | ||
|
|
cd62a70863 | ||
|
|
92fa280b96 | ||
|
|
24c87d760d | ||
|
|
2024790fd2 | ||
|
|
d506ce8d94 | ||
|
|
4adcc3c7bc | ||
|
|
4c76006fe3 | ||
|
|
964eff5276 | ||
|
|
085e8b781c | ||
|
|
761c62267f | ||
|
|
f719d3707d | ||
|
|
dd92188d76 | ||
|
|
7111501381 | ||
|
|
e16265aa0e | ||
|
|
688b347d84 | ||
|
|
8cf9513bb9 | ||
|
|
3239a25e53 | ||
|
|
f28cff1925 | ||
|
|
c70397b3a9 | ||
|
|
f13f4bc872 | ||
|
|
222e0bc0f6 | ||
|
|
523da85c11 | ||
|
|
05abc63d14 | ||
|
|
dbeef88661 | ||
|
|
2ba369cdfa | ||
|
|
a9a2eb4a14 | ||
|
|
ac15afe9c1 | ||
|
|
4f3ab10786 | ||
|
|
8ed386997f | ||
|
|
a40667d756 | ||
|
|
534395e4ae | ||
|
|
2a545be57f | ||
|
|
167e51f36c | ||
|
|
abb7038cbf | ||
|
|
ac4f3422bc | ||
|
|
9ea04e1e46 | ||
|
|
1ac484d1a1 | ||
|
|
78f10489ca | ||
|
|
5f1b91a6bf | ||
|
|
4415b3af51 | ||
|
|
c8462df127 | ||
|
|
f061627899 | ||
|
|
e6c213b8ea | ||
|
|
93a4e0d1fa | ||
|
|
f16059d697 | ||
|
|
61d97af18b | ||
|
|
a8b4724747 | ||
|
|
caf792940f | ||
|
|
64f21f63ad | ||
|
|
cdab5577c0 | ||
|
|
63f65b6e8f | ||
|
|
7a8d9ad16a | ||
|
|
f5570be3a9 | ||
|
|
ff26185322 | ||
|
|
ce96fd6b07 | ||
|
|
75631ab8ac | ||
|
|
60ad3e54af | ||
|
|
95a88f04a9 | ||
|
|
a2434bb66c | ||
|
|
267634b766 | ||
|
|
a31f379367 | ||
|
|
e516b7a964 | ||
|
|
6f7821a82d | ||
|
|
4ced44323d | ||
|
|
7b27de9f0b | ||
|
|
d225fe4e58 | ||
|
|
5d2e201c3d | ||
|
|
7716873a5b | ||
|
|
404580d95c | ||
|
|
bbf58f9234 | ||
|
|
5ddbeffc6f | ||
|
|
49493e226d | ||
|
|
2bc233e856 | ||
|
|
f819965513 | ||
|
|
2ea52b1fb4 | ||
|
|
4af7de49aa | ||
|
|
e6de920a27 | ||
|
|
1045aa2a7c | ||
|
|
d91c4be0d6 | ||
|
|
f6b3d22218 | ||
|
|
5ef0100b4d | ||
|
|
c95477e729 | ||
|
|
6958cb4a14 | ||
|
|
46983d532e | ||
|
|
e0858b424a | ||
|
|
a0ccf0f14a | ||
|
|
8901635d73 | ||
|
|
bb1dbdf62c | ||
|
|
28b41c811d | ||
|
|
9b4999881f | ||
|
|
47713462ce | ||
|
|
0e72e5897e | ||
|
|
c095bec250 | ||
|
|
3332c5be08 | ||
|
|
b343748d56 | ||
|
|
c28f44e409 | ||
|
|
5a416465a0 | ||
|
|
da29092159 | ||
|
|
7bc07ff884 | ||
|
|
8dd82c5fde | ||
|
|
71a8b75c51 | ||
|
|
8977fc8ace | ||
|
|
d7e8aaea46 | ||
|
|
0a1e29d74b | ||
|
|
4cc8073839 | ||
|
|
7e56681670 | ||
|
|
07abcdc031 | ||
|
|
f4b2664e2c | ||
|
|
29bdf30880 | ||
|
|
7a42845d80 | ||
|
|
2bf58d8c70 | ||
|
|
77d160772f | ||
|
|
4df2980242 | ||
|
|
84dc845ff8 | ||
|
|
89d372ba27 | ||
|
|
22f7998a0d | ||
|
|
b01b2e6d0b | ||
|
|
817776d1b9 | ||
|
|
53544e36f2 | ||
|
|
c3557ba32e | ||
|
|
f407fc4e01 | ||
|
|
0399b83ccb | ||
|
|
e6bef6735f | ||
|
|
50863932a6 | ||
|
|
1db7472a73 | ||
|
|
f4927c28bc | ||
|
|
996f45b688 | ||
|
|
7636635ec5 | ||
|
|
837391a9a7 | ||
|
|
8342c36f09 | ||
|
|
b84e262f63 | ||
|
|
dd038a9c89 | ||
|
|
68107ae1c3 | ||
|
|
8efec79ffe | ||
|
|
e61005f712 | ||
|
|
6c3ddc70ed | ||
|
|
535033074a | ||
|
|
9d25e7ee7b | ||
|
|
21638aed88 | ||
|
|
815d0e549b | ||
|
|
7b4cbadfce | ||
|
|
7ded7577b2 | ||
|
|
a1632696a8 | ||
|
|
e547a0dfec | ||
|
|
309aefc7e7 | ||
|
|
3ac257f344 | ||
|
|
cd63986283 | ||
|
|
6e0f2daf65 | ||
|
|
f4d15d8226 | ||
|
|
231da1a5cb | ||
|
|
c10af225c4 | ||
|
|
cd6ea54deb | ||
|
|
443bedf204 | ||
|
|
4c34cd9f38 | ||
|
|
db75ce41a3 | ||
|
|
ee80871a15 | ||
|
|
b5b4f94a4c | ||
|
|
0086bc8a96 | ||
|
|
762a1b2d26 | ||
|
|
384cd8cda5 | ||
|
|
5721132c29 | ||
|
|
3cb6a460a6 | ||
|
|
eabf03f436 | ||
|
|
6887b97a8d | ||
|
|
924bb78167 | ||
|
|
4cedb6d08a | ||
|
|
f7c44c8c4d | ||
|
|
8a2a6dbe21 | ||
|
|
8c5921bfb8 | ||
|
|
6ab767262c | ||
|
|
6a289f4d10 | ||
|
|
946f95c0fc | ||
|
|
3ab0b74de9 | ||
|
|
a3cef7b435 | ||
|
|
30d6cc8919 | ||
|
|
c99251f87e | ||
|
|
db633fb71d | ||
|
|
b88f7753a1 | ||
|
|
14a54b903e | ||
|
|
d46dcd301e | ||
|
|
99b613cbc8 | ||
|
|
40c3aefafb | ||
|
|
4e2fd7eeba | ||
|
|
485a094334 | ||
|
|
93d7715e7b | ||
|
|
f7582fc43b | ||
|
|
2d2d6f84ba | ||
|
|
a4252ab2be | ||
|
|
8d34fe0d22 | ||
|
|
1f86f6be31 | ||
|
|
4f62c099cd | ||
|
|
1cca9d4bf1 | ||
|
|
062ddaa700 | ||
|
|
58a15c2cf5 | ||
|
|
82de444f9a | ||
|
|
eb2908c3f7 | ||
|
|
25e84b6a23 | ||
|
|
3daf54ffa0 | ||
|
|
548661d96d | ||
|
|
e97a07ae9e | ||
|
|
bd73903efb | ||
|
|
421b86ed5e | ||
|
|
ccaff0e994 | ||
|
|
1b60eb8813 | ||
|
|
455db21e06 | ||
|
|
bf7e6f930c | ||
|
|
bf6440d00a | ||
|
|
c4e145b0bc | ||
|
|
33c99f9a44 | ||
|
|
efe22e3bfa | ||
|
|
87edd143ed | ||
|
|
df2261df2a | ||
|
|
234181f690 | ||
|
|
4c88033aa2 | ||
|
|
b3a3c8f7a6 | ||
|
|
7e61cffb0d | ||
|
|
54624f9902 | ||
|
|
a4ad111454 | ||
|
|
9f73a4e045 | ||
|
|
4c63a2232d | ||
|
|
5aca10ee13 | ||
|
|
159ed311cc | ||
|
|
cacd5ad924 | ||
|
|
1f9a7fd758 | ||
|
|
ee2a82e327 | ||
|
|
122179478a | ||
|
|
4113fad4ec | ||
|
|
71bbb24ff0 | ||
|
|
2d925fb216 | ||
|
|
817c28c867 | ||
|
|
090a9b3331 | ||
|
|
4b0927b042 | ||
|
|
4d8503a212 | ||
|
|
bc6e920ebc | ||
|
|
b55d4ecb41 | ||
|
|
60327d87a7 | ||
|
|
5c6f0ebeab | ||
|
|
104bf57ae7 | ||
|
|
5f9956397f | ||
|
|
0db999a94f | ||
|
|
3113744c57 | ||
|
|
517fd63c32 | ||
|
|
a5459c09c9 | ||
|
|
22d73027d0 | ||
|
|
6bae8fbd9c | ||
|
|
edb4351004 | ||
|
|
2cd1661e2d | ||
|
|
761cc30055 | ||
|
|
42a80fac8c | ||
|
|
b080cfcc71 | ||
|
|
2d4c7b4033 | ||
|
|
4839387edd | ||
|
|
fc2ed1b5d0 | ||
|
|
216effe4f5 | ||
|
|
8bb124394b | ||
|
|
389965f1de | ||
|
|
107f916322 | ||
|
|
f1d2e1453c | ||
|
|
bdaec773b5 | ||
|
|
7f0ec2a127 | ||
|
|
841c151b64 | ||
|
|
ff27146950 | ||
|
|
86c1364695 | ||
|
|
b962a566af | ||
|
|
1de4cfb791 | ||
|
|
047f0e4d88 | ||
|
|
2ff0c392e7 | ||
|
|
7f6d8e53fd | ||
|
|
1a40f20729 | ||
|
|
9aafc5d1c6 | ||
|
|
c30edd027f | ||
|
|
531085785b | ||
|
|
63883d4970 | ||
|
|
2d656381f8 | ||
|
|
fe726b1beb | ||
|
|
88117e6128 | ||
|
|
064578114f | ||
|
|
664f06616a | ||
|
|
17ae7c1659 | ||
|
|
d99ee78503 | ||
|
|
416240947b | ||
|
|
0dc0d76854 | ||
|
|
09ca429157 | ||
|
|
fc2143b993 | ||
|
|
8c1582c9ad | ||
|
|
0631d2c59d | ||
|
|
877a6f92f0 | ||
|
|
992991fe1b | ||
|
|
1f06a6a4e8 | ||
|
|
4119b09a1a | ||
|
|
f4da90705b | ||
|
|
25ac985422 | ||
|
|
65942d343f | ||
|
|
013727e1c7 | ||
|
|
e5323bde9a | ||
|
|
ffd60af473 | ||
|
|
eafd04d172 | ||
|
|
3a2f5c2219 | ||
|
|
a7da07a15f | ||
|
|
d97c07c265 | ||
|
|
6ca2ea7109 | ||
|
|
20944e2516 | ||
|
|
cd727b4e9a | ||
|
|
77d307ccbf | ||
|
|
2b04364852 | ||
|
|
391ff7682c | ||
|
|
6e06a45f24 | ||
|
|
03df7fce82 | ||
|
|
97f6da74a1 | ||
|
|
bcea4e69bb | ||
|
|
7a2c4afa91 | ||
|
|
abd1af951c | ||
|
|
b310ce9ccc | ||
|
|
ce82e028b2 | ||
|
|
266ff49a9a | ||
|
|
9a1623dc5f | ||
|
|
c725c054d6 | ||
|
|
f696aece3f | ||
|
|
c286d482aa | ||
|
|
80ddb8d95c | ||
|
|
4275e7428b | ||
|
|
6c08709bd6 | ||
|
|
329cab2942 | ||
|
|
d30323b867 | ||
|
|
8022e383ff | ||
|
|
4789901728 | ||
|
|
c7b95db5ab | ||
|
|
48814f96ef | ||
|
|
edfe2e11db | ||
|
|
a54ac71371 | ||
|
|
292785ed61 | ||
|
|
8220c2e4ce | ||
|
|
13fd8fcded | ||
|
|
87bf415853 | ||
|
|
6396a3272c | ||
|
|
6b2b7046ed | ||
|
|
5fd50c99cb | ||
|
|
d27642fece | ||
|
|
c37b0c690a | ||
|
|
cbd21afae9 | ||
|
|
0605d5f309 | ||
|
|
c0840f18f3 | ||
|
|
77d650908d | ||
|
|
72bef34918 | ||
|
|
c55632007e | ||
|
|
f671ad6275 | ||
|
|
71966d1e5a | ||
|
|
b8837a79b2 | ||
|
|
adbf9e766e | ||
|
|
bb8ec8d629 | ||
|
|
aa82af78e4 | ||
|
|
83a2d6e96e | ||
|
|
550e18eaed | ||
|
|
bd184cc572 | ||
|
|
a7057e4e49 | ||
|
|
d0e7e5aa2a | ||
|
|
a12d2bf747 | ||
|
|
3c3ddb39b4 | ||
|
|
d9f50d95e3 | ||
|
|
a5e51efff8 | ||
|
|
6338f99d52 | ||
|
|
8fba11c57b | ||
|
|
07986a53e3 | ||
|
|
ab778e7414 | ||
|
|
7a83093a3b | ||
|
|
adcf926b80 | ||
|
|
c783495edf | ||
|
|
f9c6bb1ad8 | ||
|
|
411d090895 | ||
|
|
b9d73bb910 | ||
|
|
a6c5363f05 | ||
|
|
6326528127 | ||
|
|
1d7ce1aae0 | ||
|
|
3947bfeadf | ||
|
|
da3743b7b9 | ||
|
|
6db49b7864 | ||
|
|
1f3aaf508c | ||
|
|
0f58370215 | ||
|
|
4348f9e163 | ||
|
|
bb89f5c275 | ||
|
|
27567040d2 | ||
|
|
72064e1a28 | ||
|
|
06c460c995 | ||
|
|
0b1477a716 | ||
|
|
e92ebce7f8 | ||
|
|
c2c3467ab4 | ||
|
|
2fb2f81538 | ||
|
|
ed806c4461 | ||
|
|
2a926ec6ec | ||
|
|
33c7b63c6c | ||
|
|
a109c3538f | ||
|
|
5a3624221b | ||
|
|
a780e73f62 | ||
|
|
cee97080d1 | ||
|
|
c204922c7f | ||
|
|
0a9ca62a77 | ||
|
|
4d72dba301 | ||
|
|
e577899507 | ||
|
|
894dc2480c | ||
|
|
f8e312ea27 | ||
|
|
2f2cdc6a51 | ||
|
|
6c579efc43 | ||
|
|
7ca414f5e7 | ||
|
|
890c709036 | ||
|
|
61a1bad720 | ||
|
|
4588d5d79f | ||
|
|
bb669f2c1b | ||
|
|
1bd381890d | ||
|
|
bbeafa1dcf | ||
|
|
842bc947e2 | ||
|
|
c5602787fc | ||
|
|
c101964325 | ||
|
|
e72a69aae6 | ||
|
|
a6100682d0 | ||
|
|
973e134d2d | ||
|
|
14edb68858 | ||
|
|
8409cb44b2 | ||
|
|
6fc06f265e | ||
|
|
92ef63a07b | ||
|
|
8bf7114691 | ||
|
|
50a0ea7b8c | ||
|
|
49f22527cc | ||
|
|
1e4d963734 | ||
|
|
1178d719ea | ||
|
|
8deefa8780 | ||
|
|
7d55780ca0 | ||
|
|
658272c9ee | ||
|
|
0d3d292633 | ||
|
|
f8c2680509 | ||
|
|
cf7d0fb4e7 | ||
|
|
1e26362d4b | ||
|
|
904b9282fe | ||
|
|
7ab1a74f49 | ||
|
|
d0dc4810eb | ||
|
|
afed1468e4 | ||
|
|
f4644c8c85 | ||
|
|
07c1929a7a | ||
|
|
8be696d143 | ||
|
|
7e8ec822a5 | ||
|
|
97317c7b1e | ||
|
|
a59ffde6bc | ||
|
|
fbe6499d46 | ||
|
|
231d8dd526 | ||
|
|
c0edb4afce | ||
|
|
9d02d50df2 | ||
|
|
64ceec13f2 | ||
|
|
0d1ab2f6ac | ||
|
|
f171aefb31 | ||
|
|
1e17bb2aab | ||
|
|
5fe988518a | ||
|
|
c80e055c9c | ||
|
|
1c50d5385d | ||
|
|
6150174941 | ||
|
|
3ef14fc609 | ||
|
|
c0e6f37cb9 | ||
|
|
cb1d315b7d | ||
|
|
30a8dcff1b | ||
|
|
e3ddef53b4 | ||
|
|
4445c85d4f | ||
|
|
444bba79ba | ||
|
|
110fab9803 | ||
|
|
a0bf0739a9 | ||
|
|
ed4f6dbd36 | ||
|
|
94286b35e3 | ||
|
|
3aceb07efd | ||
|
|
ebc6982eb8 | ||
|
|
200b139c69 | ||
|
|
6212b88ef3 | ||
|
|
72ff4aac7e | ||
|
|
426e14a6ed | ||
|
|
5ce0bb46f6 | ||
|
|
2e1cd1e133 | ||
|
|
5126ac9ab0 | ||
|
|
c11850b406 | ||
|
|
b1fb44660d | ||
|
|
221c71032f | ||
|
|
d53e8cfb83 | ||
|
|
ede218d54c | ||
|
|
a30113b617 | ||
|
|
1dc9e43cd0 | ||
|
|
50554563af | ||
|
|
6d85947b52 | ||
|
|
4c961e9045 | ||
|
|
d733338225 | ||
|
|
e71ee33358 | ||
|
|
00fabe553a | ||
|
|
e6dc3a5cbc | ||
|
|
c02f6724a8 | ||
|
|
f20dd1f9ae | ||
|
|
5f790678ec | ||
|
|
a3bf7aa4fe | ||
|
|
6106c44c10 | ||
|
|
e670162315 | ||
|
|
ce1bd65d29 | ||
|
|
a4ff8bce62 | ||
|
|
e1ce0a64ea | ||
|
|
336b5af34b | ||
|
|
a4d1188313 | ||
|
|
09d8bbb2ee | ||
|
|
0891e86ed8 | ||
|
|
e46fee1d1a | ||
|
|
c06a26a524 | ||
|
|
3b38626603 | ||
|
|
2b48156eab | ||
|
|
92ba590555 | ||
|
|
1fe5265c3e | ||
|
|
112ac7e978 | ||
|
|
af2d266a09 | ||
|
|
4e606e3ceb | ||
|
|
96bb25e8e7 | ||
|
|
865f85718f | ||
|
|
9c60bd8df7 | ||
|
|
a8e80ec235 | ||
|
|
0488a86634 | ||
|
|
ced29dd706 | ||
|
|
9b07568c43 | ||
|
|
0cc45e7bdb | ||
|
|
10a9634bc9 | ||
|
|
eb5e97adf5 | ||
|
|
419f589580 | ||
|
|
9ea7a70e24 | ||
|
|
e64734f986 | ||
|
|
22458ed4d5 | ||
|
|
86544f5971 | ||
|
|
5a3a34e3e6 | ||
|
|
89bd3af6b9 | ||
|
|
d27d572a7d | ||
|
|
2bb9bbb803 | ||
|
|
08e1471c16 | ||
|
|
53324e8830 | ||
|
|
698539fa79 | ||
|
|
6b990988f1 | ||
|
|
6ee4060bfa | ||
|
|
c6e852d7db | ||
|
|
ffdd175918 | ||
|
|
5a4a66cdd5 | ||
|
|
6b730a04ae | ||
|
|
7f79e86886 | ||
|
|
7d0eedf08c | ||
|
|
f3448471df | ||
|
|
d52e132203 | ||
|
|
8661e8d298 | ||
|
|
8a142cb861 | ||
|
|
a46cb6b513 | ||
|
|
06c987663a | ||
|
|
ae4ae5a313 | ||
|
|
c4c6b69b64 | ||
|
|
84f3b13264 | ||
|
|
49418ce7da | ||
|
|
d4746a659e | ||
|
|
42c4bafbbd | ||
|
|
d596ea742a | ||
|
|
d47e50a9ff | ||
|
|
cfd930d218 | ||
|
|
4029454a0d | ||
|
|
ec54570362 | ||
|
|
3896e7403d | ||
|
|
ddc9246071 | ||
|
|
f310305fc2 | ||
|
|
2cfb5e4254 | ||
|
|
33ac0d0e33 | ||
|
|
d686b7579a | ||
|
|
d1c912628d | ||
|
|
24b8bc3489 | ||
|
|
8fcd33ed18 | ||
|
|
3d5f729181 | ||
|
|
0da5464a81 | ||
|
|
83051b1a86 | ||
|
|
1d9c49bb3c | ||
|
|
0296501274 | ||
|
|
22df3125d5 | ||
|
|
d652e02235 | ||
|
|
205775507a | ||
|
|
764a95f6f3 | ||
|
|
f1e02c5cc7 | ||
|
|
4d3944f941 | ||
|
|
5eb64a4957 | ||
|
|
899bc2f582 | ||
|
|
d24c14cb59 | ||
|
|
afcb62ba1e | ||
|
|
7aaef918a6 | ||
|
|
90906a91e9 | ||
|
|
748dd20476 | ||
|
|
9daa864c4f | ||
|
|
e692080fc5 | ||
|
|
cac310d87e | ||
|
|
442fa8dc1b | ||
|
|
f7d82d0e0d | ||
|
|
0d4720a61b | ||
|
|
9e5313fdca | ||
|
|
32447e4902 | ||
|
|
dbddbb6e34 | ||
|
|
178ee9325d | ||
|
|
3c9e1e6d70 | ||
|
|
73a413bdea | ||
|
|
481f77890d | ||
|
|
20f6aaeca9 | ||
|
|
aeae0d1bad | ||
|
|
3e5ac35bd9 | ||
|
|
761dbeedbb | ||
|
|
f8b17007e0 | ||
|
|
9badd4f0fb | ||
|
|
6b1d256af5 | ||
|
|
68cd943189 | ||
|
|
5afc8e2c83 | ||
|
|
ae01c146d1 | ||
|
|
a8be1c1d4b | ||
|
|
0fb528edee | ||
|
|
b65a473efb | ||
|
|
d78fb2b14a | ||
|
|
6d1d27bc3a | ||
|
|
707980c2be | ||
|
|
badf05a8ea | ||
|
|
b690b940ca | ||
|
|
5441c86936 | ||
|
|
a14dd7502b | ||
|
|
c42d8b3776 | ||
|
|
7deae5022d | ||
|
|
9ef6a73dee | ||
|
|
8454cca44c | ||
|
|
a259f797bf | ||
|
|
6ba6263817 | ||
|
|
24ef65019f | ||
|
|
c453a8fcda | ||
|
|
7c1d43dd95 | ||
|
|
d4cca6da93 | ||
|
|
d7b1fa9d35 | ||
|
|
4a0b4494d4 | ||
|
|
41406516b6 | ||
|
|
2a043ed2d3 | ||
|
|
38f6c131e5 | ||
|
|
b472636375 | ||
|
|
047d6f2855 | ||
|
|
b61d7501c9 | ||
|
|
4cd5db922b | ||
|
|
cf140b3bf7 | ||
|
|
c0a8ce2f61 | ||
|
|
0ab82cecc2 | ||
|
|
9b334da667 | ||
|
|
fb80ebe102 | ||
|
|
4b5666a539 | ||
|
|
2613069cd4 | ||
|
|
46c0f21386 | ||
|
|
e2d9e0ae70 | ||
|
|
dbe35d87d6 | ||
|
|
e750930899 | ||
|
|
54caf22325 | ||
|
|
42d25dc2b2 | ||
|
|
901fc6f3a4 | ||
|
|
9cfcc89a0b | ||
|
|
435405f5da | ||
|
|
bb3faf2d25 | ||
|
|
a622dd6bfb | ||
|
|
66ef4d185c | ||
|
|
ce03ced4d7 | ||
|
|
ba6ee3fc06 | ||
|
|
3aa95c59cc | ||
|
|
6ebe80be5d | ||
|
|
6356bcbbb9 | ||
|
|
ce2fbe1931 | ||
|
|
5efee3d587 | ||
|
|
b7385f02fd | ||
|
|
4d005a8e65 | ||
|
|
ce136a825c | ||
|
|
0d468290be | ||
|
|
d6458c3b1e | ||
|
|
00191c3c34 | ||
|
|
c4be9c3890 | ||
|
|
58f13c3c9f | ||
|
|
bccf2cea5d | ||
|
|
f3009cb596 | ||
|
|
c5ff0eb5b8 | ||
|
|
bcdc3b30f7 | ||
|
|
621cdd9019 | ||
|
|
c389adb96a | ||
|
|
4abc7a1e69 | ||
|
|
348880ce66 | ||
|
|
337513ffa0 | ||
|
|
ed4ce335d8 | ||
|
|
5583cd237f | ||
|
|
159369c68c | ||
|
|
29c99daa0f | ||
|
|
ef1eeff882 | ||
|
|
9c90bf42c1 | ||
|
|
ea3a6539dc | ||
|
|
3bdc7518a2 | ||
|
|
b4500e9b85 | ||
|
|
797bb31e24 | ||
|
|
2655e63e10 | ||
|
|
60c236be92 | ||
|
|
0d47dff287 | ||
|
|
c91c86b743 | ||
|
|
8a402bf368 | ||
|
|
f4994234e2 | ||
|
|
a1de9f382a | ||
|
|
50a1b1d06c | ||
|
|
57cfa703bf | ||
|
|
df59ed1c11 | ||
|
|
a22cd02f2f | ||
|
|
059e2be153 | ||
|
|
9db78b574b | ||
|
|
c9fc939be0 | ||
|
|
e3be1e0bea | ||
|
|
c881ee30ea | ||
|
|
34ffc8a6c4 | ||
|
|
b86ebe46cb | ||
|
|
ce0ea97850 | ||
|
|
a78fa3fcaf | ||
|
|
90f16527af | ||
|
|
aad53cbdec | ||
|
|
87bac04bf1 | ||
|
|
32a09f39be | ||
|
|
24704df3a8 | ||
|
|
a8cad398fc | ||
|
|
c5a068e025 | ||
|
|
24a1dbabc8 | ||
|
|
f94a437d9d | ||
|
|
27ef344f2b | ||
|
|
ad15797925 | ||
|
|
87b4f2a79d | ||
|
|
c2b911a0ec | ||
|
|
d3b7aaa3fc | ||
|
|
d4828ccd23 | ||
|
|
ab232ebb09 | ||
|
|
fd6f3961f8 | ||
|
|
7d4dde57d9 | ||
|
|
c7a553a7fb | ||
|
|
57f8649eac | ||
|
|
5b18acdcc9 | ||
|
|
962aa93ec7 | ||
|
|
d787d545d2 | ||
|
|
1e96fbe4a8 | ||
|
|
6597e85562 | ||
|
|
617e8a4f8c | ||
|
|
7cf3911cb8 | ||
|
|
ebae62d7c4 | ||
|
|
04d24bde20 | ||
|
|
3860164101 | ||
|
|
e32090a163 | ||
|
|
73ddb79613 | ||
|
|
9d67273740 | ||
|
|
f8b1db2d0d | ||
|
|
af567e7d54 | ||
|
|
e0e0147003 | ||
|
|
fdf0395e49 | ||
|
|
3a15e98155 | ||
|
|
11040eae16 | ||
|
|
6202b46f2a | ||
|
|
55320ca1b8 | ||
|
|
cac3520882 | ||
|
|
4a8d751cff | ||
|
|
d0cef550a3 | ||
|
|
43f4d46cb3 | ||
|
|
6dff9e55be | ||
|
|
44bcdeeb77 | ||
|
|
f9fe805abe | ||
|
|
864f2da733 | ||
|
|
813e3cf14d | ||
|
|
cbe5199c42 | ||
|
|
88bf630798 | ||
|
|
de4a5156e6 | ||
|
|
8fd0407b3a | ||
|
|
d0abd9510e | ||
|
|
0871df60a3 | ||
|
|
151fc3b7c0 | ||
|
|
90c336026e | ||
|
|
eca9e10bc0 | ||
|
|
803869d6ff | ||
|
|
2b0464c3a9 | ||
|
|
b373d8e184 | ||
|
|
174d2528b1 | ||
|
|
91bcba0343 | ||
|
|
a3168a398c | ||
|
|
2c38266536 | ||
|
|
b72437494b | ||
|
|
fa40847263 | ||
|
|
16e4bd5d58 | ||
|
|
9b468d9577 | ||
|
|
c033a81b50 | ||
|
|
9d24798b38 | ||
|
|
f4735e72e4 | ||
|
|
9b3e080098 | ||
|
|
ad4b429633 | ||
|
|
0688e6ef01 | ||
|
|
17f5a9d2a2 | ||
|
|
1838fcc7b0 | ||
|
|
5031bfc395 | ||
|
|
07446082c8 | ||
|
|
eaab2fbc4b | ||
|
|
7174b6ec78 | ||
|
|
3d900d4cad | ||
|
|
eba793fa1f | ||
|
|
be5920b3e9 | ||
|
|
a5d361e3ea | ||
|
|
8525f7bb02 | ||
|
|
5bb74e6562 | ||
|
|
3283b811eb | ||
|
|
257a192095 | ||
|
|
c92c788c85 | ||
|
|
c200eeeb61 | ||
|
|
8f128b2b13 | ||
|
|
9f16874a53 | ||
|
|
cb30330800 | ||
|
|
64f372fae2 | ||
|
|
0f88851e92 | ||
|
|
72ede78ebb | ||
|
|
267b5cea14 | ||
|
|
eb88d58e6c | ||
|
|
1c0ed3433e | ||
|
|
eb0a3ff1af | ||
|
|
af6dd192b3 | ||
|
|
a5142d18cb | ||
|
|
e86710ce11 | ||
|
|
4842f96e2d | ||
|
|
5431f235db | ||
|
|
c996aea40d | ||
|
|
f71444c756 | ||
|
|
34e56fea0b | ||
|
|
2556733787 | ||
|
|
a1f753c8e3 | ||
|
|
edc961cc66 | ||
|
|
0fecc8c6a0 | ||
|
|
592daf8453 | ||
|
|
ab81ddd1de | ||
|
|
ee185c604a | ||
|
|
5a7786c63f | ||
|
|
45b68febe9 | ||
|
|
691522780f | ||
|
|
efa0077e08 | ||
|
|
804b950562 | ||
|
|
0cbfc91628 | ||
|
|
df43d76e62 | ||
|
|
1efc049863 | ||
|
|
336e957951 | ||
|
|
5aedea7179 | ||
|
|
a175419f84 | ||
|
|
5d2f7ab843 | ||
|
|
4c252d805d | ||
|
|
0b401e1289 | ||
|
|
9c97c26832 | ||
|
|
b47136d332 | ||
|
|
8088be390f | ||
|
|
45c090f3e7 | ||
|
|
de174766f8 | ||
|
|
7a4b40efc5 | ||
|
|
a812818670 | ||
|
|
e79a8d440e | ||
|
|
ff515d0ee4 | ||
|
|
664b2389ca | ||
|
|
76d64590b0 | ||
|
|
cdac2b4ecf | ||
|
|
6cc57e0d0d | ||
|
|
48e413eb28 | ||
|
|
6aa682f564 | ||
|
|
187a0d9b28 | ||
|
|
dd9fc198ce | ||
|
|
2404c4c84f | ||
|
|
632c03de71 | ||
|
|
913970cebf | ||
|
|
036c5f9f31 | ||
|
|
213e155713 | ||
|
|
b298ed5b70 | ||
|
|
f53f94d24d | ||
|
|
dda73e99f2 | ||
|
|
3bd2faff8c | ||
|
|
be73f948d2 | ||
|
|
48c3d20dd4 | ||
|
|
d2699793e0 | ||
|
|
8338d48828 | ||
|
|
517d9bb1f2 | ||
|
|
c4eafddbda | ||
|
|
48392f04fa | ||
|
|
7670d2948d | ||
|
|
798103d4e0 | ||
|
|
dda0320c5c | ||
|
|
d7e716b8f0 | ||
|
|
aa8f43fad9 | ||
|
|
5f11cd5693 | ||
|
|
462580cd7d | ||
|
|
49a81742ef | ||
|
|
4d571dee74 | ||
|
|
a140e70661 | ||
|
|
0758c8794d | ||
|
|
9744284109 | ||
|
|
6d77506cfd | ||
|
|
f1af56fb4e | ||
|
|
12b71200be | ||
|
|
44a5b8e459 | ||
|
|
96e2651fa2 | ||
|
|
a3857fd963 | ||
|
|
8b1d84a6ce | ||
|
|
f534df710e | ||
|
|
a712d9cefb | ||
|
|
c2e16d3c5b | ||
|
|
311ab2c822 | ||
|
|
60176163f1 | ||
|
|
b529350d4a | ||
|
|
a5b5743d71 | ||
|
|
53d35553c6 | ||
|
|
4dc1cef4fe | ||
|
|
658fe1d0c3 | ||
|
|
462399b78b | ||
|
|
94cd357f5b | ||
|
|
e99039d692 | ||
|
|
3e58dee19a | ||
|
|
ec36ac1610 | ||
|
|
53cfb3d53d | ||
|
|
252082192a | ||
|
|
1a6f4efbad | ||
|
|
abd893a2ae | ||
|
|
a1cce74e96 | ||
|
|
78887ff757 | ||
|
|
9f20131311 | ||
|
|
a46e108b83 |
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -279,7 +279,15 @@ ir if
|
||||
it is your first install then you need to "make install" as well)
|
||||
|
||||
13. cd ../php-5.x.y
|
||||
14. cp php.ini-dist /usr/local/lib/php.ini
|
||||
|
||||
14. The PHP distribution provides two sample php.ini files, you can use them
|
||||
by
|
||||
cp php.ini-development /usr/local/lib/php.ini
|
||||
or
|
||||
cp php.ini-production /usr/local/lib/php.ini
|
||||
|
||||
If you choose one of these php.ini files be certain to read the list
|
||||
of changes within, as they affect how PHP behaves.
|
||||
|
||||
15. You can edit /usr/local/lib/php.ini file to set PHP options.
|
||||
Edit your httpd.conf or srm.conf file and add:
|
||||
@@ -451,15 +459,19 @@ Apache 2.0 on Unix systems
|
||||
|
||||
13. Setup your php.ini
|
||||
|
||||
cp php.ini-dist /usr/local/lib/php.ini
|
||||
The PHP distribution provides two sample php.ini files, you can use them
|
||||
by
|
||||
cp php.ini-development /usr/local/lib/php.ini
|
||||
or
|
||||
cp php.ini-production /usr/local/lib/php.ini
|
||||
|
||||
If you choose one of these php.ini files be certain to read the list
|
||||
of changes within, as they affect how PHP behaves.
|
||||
|
||||
You may edit your .ini file to set PHP options. If you prefer having
|
||||
php.ini in another location, use --with-config-file-path=/some/path in
|
||||
step 10.
|
||||
|
||||
If you instead choose php.ini-recommended, be certain to read the list
|
||||
of changes within, as they affect how PHP behaves.
|
||||
|
||||
14. Edit your httpd.conf to load the PHP module. The path on the right hand
|
||||
side of the LoadModule statement must point to the path of the PHP
|
||||
module on your system. The make install from above may have already
|
||||
@@ -716,6 +728,14 @@ CGI environment and recommended modifications in php.ini
|
||||
the web server not from the administration server. Use the command
|
||||
line as root user and start it manually - you will see there are no
|
||||
CGI-like environment variables.
|
||||
|
||||
Simply change your scripts to get CGI variables in the correct way for
|
||||
PHP 4.x by using the superglobal $_SERVER. If you have older scripts
|
||||
which use $HTTP_HOST, etc., you should turn on register_globals in
|
||||
php.ini and change the variable order too (important: remove "E" from
|
||||
it, because you do not need the environment here):
|
||||
variables_order = "GPCS"
|
||||
register_globals = On
|
||||
__________________________________________________________________
|
||||
|
||||
Special use for error pages or self-made directory listings (PHP >= 4.3.3)
|
||||
@@ -850,7 +870,7 @@ Using Binary Packages
|
||||
Example 2-6. OpenBSD Package Install Example
|
||||
# pkg_add php4-core-4.3.8.tgz
|
||||
# /usr/local/sbin/phpxs -s
|
||||
# cp /usr/local/share/doc/php4/php.ini-recommended /var/www/conf/php.ini
|
||||
# cp /usr/local/share/doc/php4/php.ini-development /var/www/conf/php.ini
|
||||
(add in mysql)
|
||||
# pkg_add php4-mysql-4.3.8.tgz
|
||||
# /usr/local/sbin/phpxs -a mysql
|
||||
@@ -1234,10 +1254,10 @@ setenv OPTIM=-O2
|
||||
back to the root of the Apache source directory and run the above
|
||||
configure command again. That'll bring the link table up to date.
|
||||
Run make and make install again.
|
||||
7. Copy and rename the php.ini-dist file to your bin directory from
|
||||
your PHP 4 source directory: cp php.ini-dist /usr/local/bin/php.ini
|
||||
or (if your don't have a local directory) cp php.ini-dist
|
||||
/usr/bin/php.ini.
|
||||
7. Copy and rename the php.ini-development or php.ini-production file to
|
||||
your bin directory from your PHP 4 source directory:
|
||||
cp php.ini-development /usr/local/bin/php.ini or (if your don't have a
|
||||
local directory) cp php.ini-development /usr/bin/php.ini.
|
||||
__________________________________________________________________
|
||||
|
||||
Compiling for MacOS X Client
|
||||
@@ -1524,7 +1544,7 @@ The configuration file
|
||||
; Boolean values can be set to either:
|
||||
; true, on, yes
|
||||
; or false, off, no, none
|
||||
html_errors = off
|
||||
register_globals = off
|
||||
track_errors = yes
|
||||
|
||||
; you can enclose strings in double-quotes
|
||||
@@ -1584,11 +1604,15 @@ Running PHP as an Apache module
|
||||
Example 6-2. Apache configuration example
|
||||
<IfModule mod_php5.c>
|
||||
php_value include_path ".:/usr/local/lib/php"
|
||||
php_admin_flag engine on
|
||||
php_admin_flag safe_mode on
|
||||
</IfModule>
|
||||
<IfModule mod_php4.c>
|
||||
php_value include_path ".:/usr/local/lib/php"
|
||||
php_admin_flag engine on
|
||||
php_admin_flag safe_mode on
|
||||
</IfModule>
|
||||
<IfModule mod_php3.c>
|
||||
php3_include_path ".:/usr/local/lib/php"
|
||||
php3_safe_mode on
|
||||
</IfModule>
|
||||
|
||||
Caution
|
||||
@@ -1723,8 +1747,8 @@ cgi error:
|
||||
example, set it with something like:
|
||||
--with-config-file-path=/etc
|
||||
|
||||
And then you would copy php.ini-dist from the distribution to
|
||||
/etc/php.ini and edit it to make any local changes you want.
|
||||
And then you would copy php.ini-development or php.ini-production from the
|
||||
distribution to /etc/php.ini and edit it to make any local changes you want.
|
||||
--with-config-file-scan-dir=PATH
|
||||
|
||||
On Windows the default path for the php.ini file is the Windows
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--------------------------------------------------------------------
|
||||
The PHP License, version 3.01
|
||||
Copyright (c) 1999 - 2009 The PHP Group. All rights reserved.
|
||||
Copyright (c) 1999 - 2010 The PHP Group. All rights reserved.
|
||||
--------------------------------------------------------------------
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
+6
-11
@@ -1,8 +1,3 @@
|
||||
#
|
||||
# Lemon
|
||||
#
|
||||
lemon: lemon.c
|
||||
$(CC) -o $@ -Wall $?
|
||||
|
||||
#
|
||||
# Zend
|
||||
@@ -12,17 +7,17 @@ $(builddir)/zend_language_scanner.lo: $(srcdir)/zend_language_parser.h
|
||||
$(builddir)/zend_ini_scanner.lo: $(srcdir)/zend_ini_parser.h
|
||||
|
||||
$(srcdir)/zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
|
||||
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l)
|
||||
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l)
|
||||
|
||||
$(srcdir)/zend_language_parser.h: $(srcdir)/zend_language_parser.c
|
||||
$(srcdir)/zend_language_parser.c: lemon $(srcdir)/zend_language_parser.y
|
||||
$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_language_parser.y || test $$? -eq 2
|
||||
$(srcdir)/zend_language_parser.c: $(srcdir)/zend_language_parser.y
|
||||
@$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o $@
|
||||
|
||||
$(srcdir)/zend_ini_parser.h: $(srcdir)/zend_ini_parser.c
|
||||
$(srcdir)/zend_ini_parser.c: lemon $(srcdir)/zend_ini_parser.y
|
||||
@$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_ini_parser.y
|
||||
$(srcdir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
|
||||
@$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
|
||||
|
||||
$(srcdir)/zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
|
||||
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l)
|
||||
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l)
|
||||
|
||||
$(builddir)/zend_indent.lo $(builddir)/zend_highlight.lo $(builddir)/zend_compile.lo: $(srcdir)/zend_language_parser.h
|
||||
+3
-3
@@ -1,4 +1,3 @@
|
||||
LEMON = $(top_srcdir)/lemon
|
||||
mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
|
||||
INSTALL = $(top_srcdir)/build/shtool install -c
|
||||
INSTALL_DATA = $(INSTALL) -m 644
|
||||
@@ -80,7 +79,7 @@ PHP_TEST_SHARED_EXTENSIONS = ` \
|
||||
. $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
|
||||
done; \
|
||||
fi`
|
||||
PHP_DEPRECATED_DIRECTIVES_REGEX = '^(magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
|
||||
PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
|
||||
|
||||
test: all
|
||||
-@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
|
||||
@@ -99,6 +98,7 @@ test: all
|
||||
TEST_PHP_SRCDIR=$(top_srcdir) \
|
||||
CC="$(CC)" \
|
||||
$(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
|
||||
rm $(top_builddir)/tmp-php.ini; \
|
||||
else \
|
||||
echo "ERROR: Cannot run tests without CLI sapi."; \
|
||||
fi
|
||||
@@ -112,7 +112,7 @@ clean:
|
||||
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile lemon config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
|
||||
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
|
||||
$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
|
||||
|
||||
.PHONY: all clean install distclean test
|
||||
|
||||
@@ -1,107 +1,557 @@
|
||||
PHP NEWS
|
||||
PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 201?, PHP 5.3.99
|
||||
- Upgraded bundled sqlite to version 3.6.23.1. (Ilia)
|
||||
06 Jan 2011, PHP 5.3.5
|
||||
- Fixed Bug #53632 (infinite loop with x87 fpu). (Scott, Rasmus)
|
||||
|
||||
09 Dec 2010, PHP 5.3.4
|
||||
- Upgraded bundled Sqlite3 to version 3.7.3. (Ilia)
|
||||
- Upgraded bundled PCRE to version 8.10. (Ilia)
|
||||
|
||||
- Added caches to eliminate repeatable run-time bindings of functions, classes,
|
||||
constants, methods and properties (Dmitry)
|
||||
- Added a number of small performance tweaks and optimizations (Dmitry)
|
||||
. ZEND_RECV now always has IS_CV as its result
|
||||
. ZEND_CATCH now has to be used only with constant class names
|
||||
. ZEND_FETCH_DIM_? may fetch array and dimension operans in a different order
|
||||
. ZEND_RETURN is splitted into two new instructions ZEND_RETURN and
|
||||
ZEND_RETURN_BY_REF
|
||||
. optimized access to global constants using values with pre-calculated
|
||||
hash_values from litersls table
|
||||
. optimized access to static properties using executor specialization.
|
||||
A constant class name may be used as a direct operand of ZEND_FETCH_*
|
||||
instruction without previous ZEND_FETCH_CLASS.
|
||||
. eliminated unnecessary iterations during request startup/shutdown
|
||||
. zend_stack initialization is delayed before the actual usage
|
||||
- Added concept of interned strings. All strings constants known at compile
|
||||
time are allocated in a single copy and never changed. (Dmitry)
|
||||
- Added an optimization which saves memory and emalloc/efree calls for empty
|
||||
HashTables (Stas, Dmitry)
|
||||
- Security enhancements:
|
||||
. Fixed crash in zip extract method (possible CWE-170).
|
||||
(Maksymilian Arciemowicz, Pierre)
|
||||
. Paths with NULL in them (foo\0bar.txt) are now considered as invalid. (Rasmus)
|
||||
. Fixed a possible double free in imap extension (Identified by Mateusz
|
||||
Kocielski). (CVE-2010-4150). (Ilia)
|
||||
. Fixed NULL pointer dereference in ZipArchive::getArchiveComment.
|
||||
(CVE-2010-3709). (Maksymilian Arciemowicz)
|
||||
. Fixed possible flaw in open_basedir (CVE-2010-3436). (Pierre)
|
||||
. Fixed MOPS-2010-24, fix string validation. (CVE-2010-2950). (Pierre)
|
||||
. Fixed symbolic resolution support when the target is a DFS share. (Pierre)
|
||||
. Fixed bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with
|
||||
large amount of data) (CVE-2010-3710). (Adam)
|
||||
|
||||
- General improvements:
|
||||
. Added stat support for zip stream. (Pierre)
|
||||
. Added follow_location (enabled by default) option for the http stream
|
||||
support. (Pierre)
|
||||
. Improved support for is_link and related functions on Windows. (Pierre)
|
||||
. Added a 3rd parameter to get_html_translation_table. It now takes a charset
|
||||
hint, like htmlentities et al. (Gustavo)
|
||||
|
||||
- Implemented feature requests:
|
||||
. Implemented FR #52348, added new constant ZEND_MULTIBYTE to detect
|
||||
zend multibyte at runtime. (Kalle)
|
||||
. Implemented FR #52173, added functions pcntl_get_last_error() and
|
||||
pcntl_strerror(). (nick dot telford at gmail dot com, Arnaud)
|
||||
. Implemented symbolic links support for open_basedir checks. (Pierre)
|
||||
. Implemented FR #51804, SplFileInfo::getLinkTarget on Windows. (Pierre)
|
||||
. Implemented FR #50692, not uploaded files don't count towards
|
||||
max_file_uploads limit. As a side improvement, temporary files are not opened
|
||||
for empty uploads and, in debug mode, 0-length uploads. (Gustavo)
|
||||
|
||||
- Improved MySQLnd:
|
||||
. Added new character sets to mysqlnd, which are available in MySQL 5.5
|
||||
(Andrey)
|
||||
|
||||
- Improved PHP-FPM SAPI:
|
||||
. Added '-p/--prefix' to php-fpm to use a custom prefix and run multiple
|
||||
instances. (fat)
|
||||
. Added custom process title for FPM. (fat)
|
||||
. Added '-t/--test' to php-fpm to check and validate FPM conf file. (fat)
|
||||
. Added statistics about listening socket queue length for FPM.
|
||||
(andrei dot nigmatulin at gmail dot com, fat)
|
||||
|
||||
- Core:
|
||||
. Fixed extract() to do not overwrite $GLOBALS and $this when using
|
||||
EXTR_OVERWRITE. (jorto at redhat dot com)
|
||||
. Fixed bug in the Windows implementation of dns_get_record, where the two
|
||||
last parameters wouldn't be filled unless the type were DNS_ANY (Gustavo).
|
||||
. Changed the $context parameter on copy() to actually have an effect. (Kalle)
|
||||
. Fixed htmlentities/htmlspecialchars accepting certain ill-formed UTF-8
|
||||
sequences. (Gustavo)
|
||||
. Fixed bug #53409 (sleep() returns NULL on Windows). (Pierre)
|
||||
. Fixed bug #53319 (strip_tags() may strip '<br />' incorrectly). (Felipe)
|
||||
. Fixed bug #53304 (quot_print_decode does not handle lower-case hex digits).
|
||||
(Ilia, daniel dot mueller at inexio dot net)
|
||||
. Fixed bug #53248 (rawurlencode RFC 3986 EBCDIC support misses tilde char).
|
||||
(Justin Martin)
|
||||
. Fixed bug #53226 (file_exists fails on big filenames). (Adam)
|
||||
. Fixed bug #53198 (changing INI setting "from" with ini_set did not have any
|
||||
effect). (Gustavo)
|
||||
. Fixed bug #53180 (post_max_size=0 not disabling the limit when the content
|
||||
type is application/x-www-form-urlencoded or is not registered with PHP).
|
||||
(gm at tlink dot de, Gustavo)
|
||||
. Fixed bug #53141 (autoload misbehaves if called from closing session).
|
||||
(ladislav at marek dot su)
|
||||
. Fixed bug #53021 (In html_entity_decode, failure to convert numeric entities
|
||||
with ENT_NOQUOTES and ISO-8859-1). Fixed and extended the fix of ENT_NOQUOTES
|
||||
in html_entity_decode that had introduced the bug (rev #185591) to other
|
||||
encodings. Additionaly, html_entity_decode() now doesn't decode " if
|
||||
ENT_NOQUOTES is given. (Gustavo)
|
||||
. Fixed bug #52931 (strripos not overloaded with function overloading enabled).
|
||||
(Felipe)
|
||||
. Fixed bug #52772 (var_dump() doesn't check for the existence of
|
||||
get_class_name before calling it). (Kalle, Gustavo)
|
||||
. Fixed bug #52534 (var_export array with negative key). (Felipe)
|
||||
. Fixed bug #52327 (base64_decode() improper handling of leading padding in
|
||||
strict mode). (Ilia)
|
||||
. Fixed bug #52260 (dns_get_record fails with non-existing domain on Windows).
|
||||
(a_jelly_doughnut at phpbb dot com, Pierre)
|
||||
. Fixed bug #50953 (socket will not connect to IPv4 address when the host has
|
||||
both IPv4 and IPv6 addresses, on Windows). (Gustavo, Pierre)
|
||||
. Fixed bug #50524 (proc_open on Windows does not respect cwd as it does on
|
||||
other platforms). (Pierre)
|
||||
. Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the number
|
||||
of reported malformed sequences). (CVE-2010-3870) (Gustavo)
|
||||
. Fixed bug #49407 (get_html_translation_table doesn't handle UTF-8). (Gustavo)
|
||||
. Fixed bug #48831 (php -i has different output to php --ini). (Richard,
|
||||
Pierre)
|
||||
. Fixed bug #47643 (array_diff() takes over 3000 times longer than php 5.2.4).
|
||||
(Felipe)
|
||||
. Fixed bug #47168 (printf of floating point variable prints maximum of 40
|
||||
decimal places). (Ilia)
|
||||
. Fixed bug #46587 (mt_rand() does not check that max is greater than min).
|
||||
(Ilia)
|
||||
. Fixed bug #29085 (bad default include_path on Windows). (Pierre)
|
||||
. Fixed bug #25927 (get_html_translation_table calls the ' ' instead of
|
||||
'). (Gustavo)
|
||||
|
||||
- Zend engine:
|
||||
. Reverted fix for bug #51176 (Static calling in non-static method behaves
|
||||
like $this->). (Felipe)
|
||||
. Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED.
|
||||
(Kalle)
|
||||
. Fixed NULL dereference in lex_scan on zend multibyte builds where the script
|
||||
had a flex incompatible encoding and there was no converter. (Gustavo)
|
||||
. Fixed covariance of return-by-ref constraints. (Etienne)
|
||||
. Fixed bug #53305 (E_NOTICE when defining a constant starts with
|
||||
__COMPILER_HALT_OFFSET__). (Felipe)
|
||||
. Fixed bug #52939 (zend_call_function does not respect ZEND_SEND_PREFER_REF).
|
||||
(Dmitry)
|
||||
. Fixed bug #52879 (Objects unreferenced in __get, __set, __isset or __unset
|
||||
can be freed too early). (mail_ben_schmidt at yahoo dot com dot au, Dmitry)
|
||||
. Fixed bug #52786 (PHP should reset section to [PHP] after ini sections).
|
||||
(Fedora at famillecollet dot com)
|
||||
. Fixed bug #52508 (newline problem with parse_ini_file+INI_SCANNER_RAW).
|
||||
(Felipe)
|
||||
. Fixed bug #52484 (__set() ignores setting properties with empty names).
|
||||
(Felipe)
|
||||
. Fixed bug #52361 (Throwing an exception in a destructor causes invalid
|
||||
catching). (Dmitry)
|
||||
. Fixed bug #51008 (Zend/tests/bug45877.phpt fails). (Dmitry)
|
||||
|
||||
- Build issues:
|
||||
. Fixed bug #52436 (Compile error if systems do not have stdint.h)
|
||||
(Sriram Natarajan)
|
||||
. Fixed bug #50345 (nanosleep not detected properly on some solaris versions).
|
||||
(Ulf, Tony)
|
||||
. Fixed bug #49215 (make fails on glob_wrapper). (Felipe)
|
||||
|
||||
- Calendar extension:
|
||||
. Fixed bug #52744 (cal_days_in_month incorrect for December 1 BCE).
|
||||
(gpap at internet dot gr, Adam)
|
||||
|
||||
- cURL extension:
|
||||
. Fixed bug #52828 (curl_setopt does not accept persistent streams).
|
||||
(Gustavo, Ilia)
|
||||
. Fixed bug #52827 (cURL leaks handle and causes assertion error
|
||||
(CURLOPT_STDERR)). (Gustavo)
|
||||
. Fixed bug #52202 (CURLOPT_PRIVATE gets corrupted). (Ilia)
|
||||
. Fixed bug #50410 (curl extension slows down PHP on Windows). (Pierre)
|
||||
|
||||
- DateTime extension:
|
||||
. Fixed bug #53297 (gettimeofday implementation in php/win32/time.c can return
|
||||
1 million microsecs). (ped at 7gods dot org)
|
||||
. Fixed bug #52668 (Iterating over a dateperiod twice is broken). (Derick)
|
||||
. Fixed bug #52454 (Relative dates and getTimestamp increments by one day).
|
||||
(Derick)
|
||||
. Fixed bug #52430 (date_parse parse 24:xx:xx as valid time). (Derick)
|
||||
. Added support for the ( and ) delimiters/separators to
|
||||
DateTime::createFromFormat(). (Derick)
|
||||
|
||||
- DBA extension:
|
||||
. Added Berkeley DB 5.1 support to the DBA extension. (Oracle Corp.)
|
||||
|
||||
- DOM extension:
|
||||
. Fixed bug #52656 (DOMCdataSection does not work with splitText). (Ilia)
|
||||
|
||||
- Filter extension:
|
||||
. Fixed the filter extension accepting IPv4 octets with a leading 0 as that
|
||||
belongs to the unsupported "dotted octal" representation. (Gustavo)
|
||||
. Fixed bug #53236 (problems in the validation of IPv6 addresses with leading
|
||||
and trailing :: in the filter extension). (Gustavo)
|
||||
. Fixed bug #50117 (problems in the validation of IPv6 addresses with IPv4
|
||||
addresses and ::). (Gustavo)
|
||||
|
||||
- GD extension:
|
||||
. Fixed bug #53492 (fix crash if anti-aliasing steps are invalid). (Pierre)
|
||||
|
||||
- GMP extension:
|
||||
. Fixed bug #52906 (gmp_mod returns negative result when non-negative is
|
||||
expected). (Stas)
|
||||
. Fixed bug #52849 (GNU MP invalid version match). (Adam)
|
||||
|
||||
- Hash extension:
|
||||
. Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c).
|
||||
(Mike, Ilia)
|
||||
|
||||
- Iconv extension:
|
||||
. Fixed bug #52941 (The 'iconv_mime_decode_headers' function is skipping
|
||||
headers). (Adam)
|
||||
. Fixed bug #52599 (iconv output handler outputs incorrect content type
|
||||
when flags are used). (Ilia)
|
||||
. Fixed bug #51250 (iconv_mime_decode() does not ignore malformed Q-encoded
|
||||
words). (Ilia)
|
||||
|
||||
- Intl extension:
|
||||
. Fixed crashes on invalid parameters in intl extension. (CVE-2010-4409). (Stas, Maksymilian
|
||||
Arciemowicz)
|
||||
. Added support for formatting the timestamp stored in a DateTime object.
|
||||
(Stas)
|
||||
. Fixed bug #50590 (IntlDateFormatter::parse result is limited to the integer
|
||||
range). (Stas)
|
||||
|
||||
- Mbstring extension:
|
||||
. Fixed bug #53273 (mb_strcut() returns garbage with the excessive length
|
||||
parameter). (CVE-2010-4156) (Mateusz Kocielski, Pierre, Moriyoshi)
|
||||
. Fixed bug #52981 (Unicode casing table was out-of-date. Updated with
|
||||
UnicodeData-6.0.0d7.txt and included the source of the generator program with
|
||||
the distribution) (Gustavo).
|
||||
. Fixed bug #52681 (mb_send_mail() appends an extra MIME-Version header).
|
||||
(Adam)
|
||||
|
||||
- MSSQL extension:
|
||||
. Fixed possible crash in mssql_fetch_batch(). (Kalle)
|
||||
. Fixed bug #52843 (Segfault when optional parameters are not passed in to
|
||||
mssql_connect). (Felipe)
|
||||
|
||||
- MySQL extension:
|
||||
. Fixed bug #52636 (php_mysql_fetch_hash writes long value into int).
|
||||
(Kalle, rein at basefarm dot no)
|
||||
|
||||
- MySQLi extension:
|
||||
. Fixed bug #52891 (Wrong data inserted with mysqli/mysqlnd when using
|
||||
mysqli_stmt_bind_param and value> PHP_INT_MAX). (Andrey)
|
||||
. Fixed bug #52686 (mysql_stmt_attr_[gs]et argument points to incorrect type).
|
||||
(rein at basefarm dot no)
|
||||
. Fixed bug #52654 (mysqli doesn't install headers with structures it uses).
|
||||
(Andrey)
|
||||
. Fixed bug #52433 (Call to undefined method mysqli::poll() - must be static).
|
||||
(Andrey)
|
||||
. Fixed bug #52417 (MySQLi build failure with mysqlnd on MacOS X). (Andrey)
|
||||
. Fixed bug #52413 (MySQLi/libmysql build failure on OS X, FreeBSD). (Andrey)
|
||||
. Fixed bug #52390 (mysqli_report() should be per-request setting). (Kalle)
|
||||
. Fixed bug #52302 (mysqli_fetch_all does not work with MYSQLI_USE_RESULT).
|
||||
(Andrey)
|
||||
. Fixed bug #52221 (Misbehaviour of magic_quotes_runtime (get/set)). (Andrey)
|
||||
. Fixed bug #45921 (Can't initialize character set hebrew). (Andrey)
|
||||
|
||||
- MySQLnd:
|
||||
. Fixed bug #52613 (crash in mysqlnd after hitting memory limit). (Andrey)
|
||||
|
||||
- ODBC extension:
|
||||
- Fixed bug #52512 (Broken error handling in odbc_execute).
|
||||
(mkoegler at auto dot tuwien dot ac dot at)
|
||||
|
||||
- Openssl extension:
|
||||
. Fixed possible blocking behavior in openssl_random_pseudo_bytes on Windows.
|
||||
(Pierre)
|
||||
. Fixed bug #53136 (Invalid read on openssl_csr_new()). (Felipe)
|
||||
. Fixed bug #52947 (segfault when ssl stream option capture_peer_cert_chain
|
||||
used). (Felipe)
|
||||
|
||||
- Oracle Database extension (OCI8):
|
||||
. Fixed bug #53284 (Valgrind warnings in oci_set_* functions) (Oracle Corp.)
|
||||
. Fixed bug #51610 (Using oci_connect causes PHP to take a long time to
|
||||
exit). Requires Oracle 11.2.0.2 client libraries (or Oracle bug fix
|
||||
9891199) for this patch to have an effect. (Oracle Corp.)
|
||||
|
||||
- PCNTL extension:
|
||||
. Fixed bug #52784 (Race condition when handling many concurrent signals).
|
||||
(nick dot telford at gmail dot com, Arnaud)
|
||||
|
||||
- PCRE extension:
|
||||
. Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8). (Felipe)
|
||||
. Fixed bug #52732 (Docs say preg_match() returns FALSE on error, but it
|
||||
returns int(0)). (slugonamission at gmail dot com)
|
||||
|
||||
- PHAR extension:
|
||||
. Fixed bug #50987 (unaligned memory access in phar.c).
|
||||
(geissert at debian dot org, Ilia)
|
||||
|
||||
- PHP-FPM SAPI:
|
||||
. Fixed bug #53412 (segfault when using -y). (fat)
|
||||
. Fixed inconsistent backlog default value (-1) in FPM on many systems. (fat)
|
||||
. Fixed bug #52501 (libevent made FPM crashed when forking -- libevent has
|
||||
been removed). (fat)
|
||||
. Fixed bug #52725 (gcc builtin atomic functions were sometimes used when they
|
||||
were not available). (fat)
|
||||
. Fixed bug #52693 (configuration file errors are not logged to stderr). (fat)
|
||||
. Fixed bug #52674 (FPM Status page returns inconsistent Content-Type headers).
|
||||
(fat)
|
||||
. Fixed bug #52498 (libevent was not only linked to php-fpm). (fat)
|
||||
|
||||
- PDO:
|
||||
. Fixed bug #52699 (PDO bindValue writes long int 32bit enum).
|
||||
(rein at basefarm dot no)
|
||||
. Fixed bug #52487 (PDO::FETCH_INTO leaks memory). (Felipe)
|
||||
|
||||
- PDO DBLib driver:
|
||||
. Fixed bug #52546 (pdo_dblib segmentation fault when iterating MONEY values).
|
||||
(Felipe)
|
||||
|
||||
- PDO Firebird driver:
|
||||
. Restored firebird support (VC9 builds only). (Pierre)
|
||||
. Fixed bug #53335 (pdo_firebird did not implement rowCount()).
|
||||
(preeves at ibphoenix dot com)
|
||||
. Fixed bug #53323 (pdo_firebird getAttribute() crash).
|
||||
(preeves at ibphoenix dot com)
|
||||
|
||||
- PDO MySQL driver:
|
||||
. Fixed bug #52745 (Binding params doesn't work when selecting a date inside a
|
||||
CASE-WHEN). (Andrey)
|
||||
|
||||
- PostgreSQL extension:
|
||||
. Fixed bug #47199 (pg_delete() fails on NULL). (ewgraf at gmail dot com)
|
||||
|
||||
- Reflection extension:
|
||||
. Fixed ReflectionProperty::isDefault() giving a wrong result for properties
|
||||
obtained with ReflectionClass::getProperties(). (Gustavo)
|
||||
- Reflection extension:
|
||||
. Fixed bug #53366 (Reflection doesnt get dynamic property value from
|
||||
getProperty()). (Felipe)
|
||||
. Fixed bug #52854 (ReflectionClass::newInstanceArgs does not work for classes
|
||||
without constructors). (Johannes)
|
||||
|
||||
- SOAP extension:
|
||||
. Fixed bug #44248 (RFC2616 transgression while HTTPS request through proxy
|
||||
with SoapClient object). (Dmitry)
|
||||
|
||||
- SPL extension:
|
||||
. Fixed bug #53362 (Segmentation fault when extending SplFixedArray). (Felipe)
|
||||
. Fixed bug #53279 (SplFileObject doesn't initialise default CSV escape
|
||||
character). (Adam)
|
||||
. Fixed bug #53144 (Segfault in SplObjectStorage::removeAll()). (Felipe)
|
||||
. Fixed bug #53071 (SPLObjectStorage defeats gc_collect_cycles). (Gustavo)
|
||||
. Fixed bug #52573 (SplFileObject::fscanf Segmentation fault). (Felipe)
|
||||
. Fixed bug #51763 (SplFileInfo::getType() does not work symbolic link
|
||||
and directory). (Pierre)
|
||||
. Fixed bug #50481 (Storing many SPLFixedArray in an array crashes). (Felipe)
|
||||
. Fixed bug #50579 (RegexIterator::REPLACE doesn't work). (Felipe)
|
||||
|
||||
- SQLite3 extension:
|
||||
. Fixed bug #53463 (sqlite3 columnName() segfaults on bad column_number).
|
||||
(Felipe)
|
||||
|
||||
- Streams:
|
||||
. Fixed forward stream seeking emulation in streams that don't support seeking
|
||||
in situations where the read operation gives back less data than requested
|
||||
and when there was data in the buffer before the emulation started. Also made
|
||||
more consistent its behavior -- should return failure every time less data
|
||||
than was requested was skipped. (Gustavo)
|
||||
. Fixed bug #53241 (stream casting that relies on fdopen/fopencookie fails
|
||||
with streams opened with, inter alia, the 'xb' mode). (Gustavo)
|
||||
. Fixed bug #53006 (stream_get_contents has an unpredictable behavior when the
|
||||
underlying stream does not support seeking). (Gustavo)
|
||||
. Fixed bug #52944 (Invalid write on second and subsequent reads with an
|
||||
inflate filter fed invalid data). (Gustavo)
|
||||
. Fixed bug #52820 (writes to fopencookie FILE* not commited when seeking the
|
||||
stream). (Gustavo)
|
||||
|
||||
- WDDX extension:
|
||||
. Fixed bug #52468 (wddx_deserialize corrupts integer field value when left
|
||||
empty). (Felipe)
|
||||
|
||||
- Zlib extension:
|
||||
. Fixed bug #52926 (zlib fopen wrapper does not use context). (Gustavo)
|
||||
|
||||
22 Jul 2010, PHP 5.3.3
|
||||
- Upgraded bundled sqlite to version 3.6.23.1. (Ilia)
|
||||
- Upgraded bundled PCRE to version 8.02. (Ilia)
|
||||
|
||||
- Added array dereferencing support. (Felipe)
|
||||
- Added DTrace support. (David Soria Parra)
|
||||
- Added Tokyo Cabinet abstract DB support to ext/dba. (Michael Maclean)
|
||||
- Added Jenkins's one-at-a-time hash support to ext/hash. (Martin Jansen)
|
||||
- Added FNV-1 hash support to ext/hash. (Michael Maclean)
|
||||
- Added ReflectionExtension::isTemporary() and
|
||||
ReflectionExtension::isPersistent(). (Johannes)
|
||||
- Added ReflectionZendExtension class. (Johannes)
|
||||
- Added ReflectionClass::isCloneable(). (Felipe)
|
||||
- Added command line option --rz to CLI. (Johannes)
|
||||
- Added closure $this support back. (Stas)
|
||||
- Added SplObjectStorage::getHash() hook. (Etienne)
|
||||
- Added JsonSerializable interface (Sara)
|
||||
- Added JSON_BIGINT_AS_STRING, extended json_decode() sig with $options. (Sara)
|
||||
- Added support for storing upload progress feedback in session data. (Arnaud)
|
||||
- Added support for CURLOPT_MAX_RECV_SPEED_LARGE and CURLOPT_MAX_SEND_SPEED_LARGE.
|
||||
FR #51815. (Pierrick)
|
||||
- Added iterator support in MySQLi. mysqli_result implements Traversable.
|
||||
(Andrey, Johannes)
|
||||
- Added scalar typehinting. (Ilia, Derick)
|
||||
- Added support for JSON_NUMERIC_CHECK option in json_encode() that converts
|
||||
numeric strings to integers. (Ilia)
|
||||
- Added support for object references in recursive serialize() calls. FR #36424.
|
||||
(Mike)
|
||||
- Added Berkeley DB 5 support to the DBA extension (Johannes, Chris Jones)
|
||||
|
||||
- default_charset if not specified is now UTF-8 instead of ISO-8859-1. (Rasmus)
|
||||
|
||||
- Changed the structure of op_array.opcodes. The constant values are moved from
|
||||
opcode operands into a separate literal table. (Dmitry)
|
||||
- Changed session.entropy_file to default to /dev/urandom or /dev/arandom if
|
||||
either is present at compile time. (Rasmus)
|
||||
|
||||
- Improved CLI Interactive readline shell (Johannes)
|
||||
. Added cli.pager ini setting to set a pager for output.
|
||||
. Added cli.prompt ini settingto configure the shell prompt.
|
||||
. Added shortcut #inisetting=value to change ini settings at run-time.
|
||||
. Don't terminate shell on fatal errors.
|
||||
- Improved ext/zlib: re-implemented non-file related functionality. (Mike)
|
||||
- Improved output layer. See README.NEW-OUTPUT-API for internals. (Mike)
|
||||
|
||||
- Removed legacy features:
|
||||
. allow_call_time_pass_reference. (Pierrick)
|
||||
. define_syslog_variables ini option and its associated function. (Kalle)
|
||||
. highlight.bg ini option. (Kalle)
|
||||
. import_request_variables(). (Kalle)
|
||||
. register_globals. (Kalle)
|
||||
. register_long_arrays ini option. (Kalle)
|
||||
. Safe mode. (Kalle)
|
||||
. Session bug compatibility mode (session.bug_compat42 and
|
||||
session.bug_compat_warn ini options). (Kalle)
|
||||
. session_is_registered(), session_register() and session_unregister()
|
||||
functions. (Kalle)
|
||||
. y2k_compliance ini option. (Kalle)
|
||||
|
||||
- Implemented FR #51295 (SQLite3::busyTimeout not existing). (Mark)
|
||||
- Implemented FR #48632 (OpenSSL AES support). (yonas dot y
|
||||
at gmail dot com, Pierre)
|
||||
- Implemented FR #42060 (Add paged Results support). (ando@OpenLDAP.org,
|
||||
iarenuno@eteo.mondragon.edu, jeanseb@au-fil-du.net, remy.saissy@gmail.com)
|
||||
|
||||
- Fixed PDO objects binary incompatibility. (Dmitry)
|
||||
|
||||
- Fixed bug #52211 (iconv() returns part of string on error). (Felipe)
|
||||
|
||||
|
||||
?? ??? 20??, PHP 5.3.3
|
||||
- Upgraded bundled PCRE to version 8.01. (Ilia)
|
||||
|
||||
- Added stream_set_read_buffer, allows to set the buffer for read operation.
|
||||
(Pierre)
|
||||
- Added stream filter support to mcrypt extension (ported from
|
||||
mcrypt_filter). (Stas)
|
||||
- Added full_special_chars filter to ext/filter (Rasmus)
|
||||
- Added full_special_chars filter to ext/filter. (Rasmus)
|
||||
- Added backlog socket context option for stream_socket_server(). (Mike)
|
||||
- Added fifth parameter to openssl_encrypt()/openssl_decrypt()
|
||||
(string $iv) to use non-NULL IV.
|
||||
Made implicit use of NULL IV a warning. (Sara)
|
||||
- Added openssl_cipher_iv_length(). (Sara)
|
||||
- Added FastCGI Process Manager (FPM) SAPI. (Tony)
|
||||
- Added recent Windows versions to php_uname and fix undefined windows
|
||||
version support. (Pierre)
|
||||
- Added Berkeley DB 5 support to the DBA extension. (Johannes, Chris Jones)
|
||||
- Added support for copy to/from array/file for pdo_pgsql extension.
|
||||
(Denis Gasparin, Ilia)
|
||||
- Added inTransaction() method to PDO, with specialized support for Postgres.
|
||||
(Ilia, Denis Gasparin)
|
||||
|
||||
- Changed namespaced classes so that the ctor can only be named
|
||||
__construct now. (Stas)
|
||||
- Reset error state in PDO::beginTransaction() reset error state. (Ilia)
|
||||
|
||||
- Implemented FR#51295 (SQLite3::busyTimeout not existing). (Mark)
|
||||
- Implemented FR#35638 (Adding udate to imap_fetch_overview results).
|
||||
(Charles_Duffy at dell dot com )
|
||||
- Rewrote var_export() to use smart_str rather than output buffering, prevents
|
||||
data disclosure if a fatal error occurs (CVE-2010-2531). (Scott)
|
||||
- Fixed possible buffer overflows in mysqlnd_list_fields, mysqlnd_change_user.
|
||||
(Andrey)
|
||||
- Fixed possible buffer overflows when handling error packets in mysqlnd.
|
||||
Reported by Stefan Esser. (Andrey)
|
||||
- Fixed very rare memory leak in mysqlnd, when binding thousands of columns.
|
||||
(Andrey)
|
||||
- Fixed a crash when calling an inexistent method of a class that inherits
|
||||
PDOStatement if instantiated directly instead of doing by the PDO methods.
|
||||
(Felipe)
|
||||
|
||||
- Fixed memory leak on error in mcrypt_create_iv on Windows. (Pierre)
|
||||
- Fixed a possible crash because of recursive GC invocation. (Dmitry)
|
||||
- Fixed a possible resource destruction issues in shm_put_var().
|
||||
Reported by Stefan Esser. (Dmitry)
|
||||
- Fixed a possible information leak because of interruption of XOR operator.
|
||||
Reported by Stefan Esser. (Dmitry)
|
||||
- Fixed a possible memory corruption because of unexpected call-time pass by
|
||||
refernce and following memory clobbering through callbacks.
|
||||
Reported by Stefan Esser. (Dmitry)
|
||||
- Fixed a possible memory corruption in ArrayObject::uasort(). Reported by
|
||||
Stefan Esser. (Dmitry)
|
||||
- Fixed a possible memory corruption in parse_str(). Reported by Stefan Esser.
|
||||
(Dmitry)
|
||||
- Fixed a possible memory corruption in pack(). Reported by Stefan Esser.
|
||||
(Dmitry)
|
||||
- Fixed a possible memory corruption in substr_replace(). Reported by Stefan
|
||||
Esser. (Dmitry)
|
||||
- Fixed a possible memory corruption in addcslashes(). Reported by Stefan
|
||||
Esser. (Dmitry)
|
||||
- Fixed a possible stack exhaustion inside fnmatch(). Reported by Stefan
|
||||
Esser. (Ilia)
|
||||
- Fixed a possible dechunking filter buffer overflow. Reported by Stefan Esser.
|
||||
(Pierre)
|
||||
- Fixed a possible arbitrary memory access inside sqlite extension. Reported
|
||||
by Mateusz Kocielski. (Ilia)
|
||||
- Fixed string format validation inside phar extension. Reported by Stefan
|
||||
Esser. (Ilia)
|
||||
- Fixed handling of session variable serialization on certain prefix
|
||||
characters. Reported by Stefan Esser. (Ilia)
|
||||
- Fixed a NULL pointer dereference when processing invalid XML-RPC
|
||||
requests (Fixes CVE-2010-0397, bug #51288). (Raphael Geissert)
|
||||
- Fixed 64-bit integer overflow in mhash_keygen_s2k(). (Clément LECIGNE, Stas)
|
||||
- Fixed SplObjectStorage unserialization problems (CVE-2010-2225). (Stas)
|
||||
- Fixed the mail.log ini setting when no filename was given. (Johannes)
|
||||
|
||||
- Fixed bug #52317 (Segmentation fault when using mail() on a rhel 4.x (only 64
|
||||
bit)). (Adam)
|
||||
- Fixed bug #52262 (json_decode() shows no errors on invalid UTF-8).
|
||||
(Scott)
|
||||
- Fixed bug #52240 (hash_copy() does not copy the HMAC key, causes wrong
|
||||
results and PHP crashes). (Felipe)
|
||||
- Fixed bug #52238 (Crash when an Exception occured in iterator_to_array).
|
||||
(Johannes)
|
||||
- Fixed bug #52193 (converting closure to array yields empty array). (Felipe)
|
||||
- Fixed bug #52183 (Reflectionfunction reports invalid number of arguments for
|
||||
function aliases). (Felipe)
|
||||
- Fixed bug #52162 (custom request header variables with numbers are removed).
|
||||
(Sriram Natarajan)
|
||||
- Fixed bug #52160 (Invalid E_STRICT redefined constructor error). (Felipe)
|
||||
- Fixed bug #52138 (Constants are parsed into the ini file for section names).
|
||||
(Felipe)
|
||||
- Fixed bug #52115 (mysqli_result::fetch_all returns null, not an empty array).
|
||||
(Andrey)
|
||||
- Fixed bug #52101 (dns_get_record() garbage in 'ipv6' field on Windows).
|
||||
(Pierre)
|
||||
- Fixed bug #52082 (character_set_client & character_set_connection reset after
|
||||
mysqli_change_user()). (Andrey)
|
||||
- Fixed bug #52043 (GD doesn't recognize latest libJPEG versions).
|
||||
(php at group dot apple dot com, Pierre)
|
||||
- Fixed bug #52041 (Memory leak when writing on uninitialized variable returned
|
||||
from function). (Dmitry)
|
||||
- Fixed bug #52060 (Memory leak when passing a closure to method_exists()).
|
||||
(Felipe)
|
||||
- Fixed bug #52057 (ReflectionClass fails on Closure class). (Felipe)
|
||||
- Fixed bug #52051 (handling of case sensitivity of old-style constructors
|
||||
changed in 5.3+). (Felipe)
|
||||
- Fixed bug #52037 (Concurrent builds fail in install-programs). (seanius at
|
||||
debian dot org, Kalle)
|
||||
- Fixed bug #52019 (make lcov doesn't support TESTS variable anymore). (Patrick)
|
||||
- Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
|
||||
(Ilia)
|
||||
- Fixed bug #52001 (Memory allocation problems after using variable variables).
|
||||
(Dmitry)
|
||||
- Fixed bug #51991 (spl_autoload and *nix support with namespace). (Felipe)
|
||||
- Fixed bug #51943 (AIX: Several files are out of ANSI spec). (Kalle,
|
||||
coreystup at gmail dot com)
|
||||
- Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with
|
||||
constant array). (Felipe)
|
||||
- Fixed bug #51905 (ReflectionParameter fails if default value is an array
|
||||
with an access to self::). (Felipe)
|
||||
- Fixed bug #51899 (Parse error in parse_ini_file() function when empy value
|
||||
followed by no newline). (Felipe)
|
||||
- Fixed bug #51844 (checkdnsrr does not support types other than MX). (Pierre)
|
||||
- Fixed bug #51827 (Bad warning when register_shutdown_function called with
|
||||
wrong num of parameters). (Felipe)
|
||||
- Fixed bug #51822 (Segfault with strange __destruct() for static class
|
||||
variables). (Dmitry)
|
||||
- Fixed bug #51791 (constant() aborts execution when fail to check undefined
|
||||
constant). (Felipe)
|
||||
- Fixed bug #51732 (Fileinfo __construct or open does not work with NULL).
|
||||
(Pierre)
|
||||
- Fixed bug #51725 (xmlrpc_get_type() returns true on invalid dates). (Mike)
|
||||
- Fixed bug #51723 (Content-length header is limited to 32bit integer with
|
||||
Apache2 on Windows). (Pierre)
|
||||
- Fixed bug #51721 (mark DOMNodeList and DOMNamedNodeMap as Traversable).
|
||||
(David Zuelke)
|
||||
- Fixed bug #51712 (Test mysql_mysqlnd_read_timeout_long must fail on MySQL4).
|
||||
(Andrey)
|
||||
- Fixed bug #51697 (Unsafe operations in free_storage of SPL iterators,
|
||||
causes crash during shutdown). (Etienne)
|
||||
- Fixed bug #51690 (Phar::setStub looks for case-sensitive
|
||||
__HALT_COMPILER()). (Ilia)
|
||||
- Fixed bug #51688 (ini per dir crashes when invalid document root are given).
|
||||
(Pierre)
|
||||
- Fixed bug #51671 (imagefill does not work correctly for small images).
|
||||
(Pierre)
|
||||
- Fixed bug #51670 (getColumnMeta causes segfault when re-executing query
|
||||
after calling nextRowset). (Pierrick)
|
||||
- Fixed bug #51647 Certificate file without private key (pk in another file)
|
||||
doesn't work. (Andrey)
|
||||
- Fixed bug #51629 (CURLOPT_FOLLOWLOCATION error message is misleading).
|
||||
(Pierre)
|
||||
- Fixed bug #51627 (script path not correctly evaluated).
|
||||
(russell dot tempero at rightnow dot com)
|
||||
- Fixed bug #51624 (Crash when calling mysqli_options()). (Felipe)
|
||||
- Fixed bug #51615 (PHP crash with wrong HTML in SimpleXML). (Felipe)
|
||||
- Fixed bug #51609 (pg_copy_to: Invalid results when using fourth parameter).
|
||||
(Felipe)
|
||||
- Fixed bug #51608 (pg_copy_to: WARNING: nonstandard use of \\ in a string
|
||||
literal). (cbandy at jbandy dot com)
|
||||
- Fixed bug #51607 (pg_copy_from does not allow schema in the tablename
|
||||
argument). (cbandy at jbandy dot com)
|
||||
- Fixed bug #51605 (Mysqli - zombie links). (Andrey)
|
||||
- Fixed bug #51604 (newline in end of header is shown in start of message).
|
||||
(Daniel Egeberg)
|
||||
- Fixed bug #51590 (JSON_ERROR_UTF8 is undefined). (Felipe)
|
||||
- Fixed bug #51583 (Bus error due to wrong alignment in mysqlnd). (Rainer Jung)
|
||||
- Fixed bug #51582 (Don't assume UINT64_C it's ever available).
|
||||
(reidrac at usebox dot net, Pierre)
|
||||
- Fixed bug #51577 (Uninitialized memory reference with oci_bind_array_by_name)
|
||||
(Oracle Corp.)
|
||||
- Fixed bug #51562 (query timeout in mssql can not be changed per query).
|
||||
(ejsmont dot artur at gmail dot com)
|
||||
- Fixed bug #51552 (debug_backtrace() causes segmentation fault and/or memory
|
||||
issues). (Dmitry)
|
||||
- Fixed bug #51445 (var_dump() invalid/slow *RECURSION* detection). (Felipe)
|
||||
- Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile
|
||||
errors). (Felipe)
|
||||
- Fixed bug #51424 (crypt() function hangs after 3rd call). (Pierre, Sriram)
|
||||
- Fixed bug #51394 (Error line reported incorrectly if error handler throws an
|
||||
exception). (Stas)
|
||||
- Fixed bug #51393 (DateTime::createFromFormat() fails if format string contains
|
||||
timezone). (Adam)
|
||||
- Fixed bug #51347 (mysqli_close / connection memory leak). (Andrey, Johannes)
|
||||
- Fixed bug #51338 (URL-Rewriter is still enabled if use_only_cookies is
|
||||
on). (Ilia, j dot jeising at gmail dot com)
|
||||
- Fixed bug #51291 (oci_error doesn't report last error when called two times)
|
||||
(Oracle Corp.)
|
||||
- Fixed bug #51276 (php_load_extension() is missing when HAVE_LIBDL is
|
||||
undefined). (Tony)
|
||||
- Fixed bug #51273 (Faultstring property does not exist when the faultstring is
|
||||
empty) (Ilia, dennis at transip dot nl)
|
||||
- Fixed bug #51269 (zlib.output_compression Overwrites Vary Header). (Adam)
|
||||
- Fixed bug #51257 (CURL_VERSION_LARGEFILE incorrectly used after libcurl
|
||||
version 7.10.1). (aron dot ujvari at microsec dot hu)
|
||||
@@ -112,39 +562,95 @@ PHP NEWS
|
||||
alexr at oplot dot com)
|
||||
- Fixed bug #51190 (ftp_put() returns false when transfer was successful).
|
||||
(Ilia)
|
||||
- Fixed bug #51183 (ext/date/php_date.c fails to compile with Sun Studio).
|
||||
(Sriram Natarajan)
|
||||
- Fixed bug #51176 (Static calling in non-static method behaves like $this->).
|
||||
(Felipe)
|
||||
- Fixed bug #51171 (curl_setopt() doesn't output any errors or warnings when
|
||||
an invalid option is provided). (Ilia)
|
||||
- Fixed bug #51128 (imagefill() doesn't work with large images). (Pierre)
|
||||
- Fixed bug #51096 ('last day' and 'first day' are handled incorrectly when
|
||||
parsing date strings). (Derick)
|
||||
- Fixed bug #51086 (DBA DB4 doesn't work with Berkeley DB 4.8). (Chris Jones)
|
||||
- Fixed bug #51062 (DBA DB4 uses mismatched headers and libraries). (Chris Jones)
|
||||
- Fixed bug #51062 (DBA DB4 uses mismatched headers and libraries). (Chris
|
||||
Jones)
|
||||
- Fixed bug #51026 (mysqli_ssl_set not working). (Andrey)
|
||||
- Fixed bug #51023 (filter doesn't detect int overflows with GCC 4.4).
|
||||
(Raphael Geissert)
|
||||
- Fixed bug #50999 (unaligned memory access in dba_fetch()). (Felipe)
|
||||
- Fixed bug #50976 (Soap headers Authorization not allowed).
|
||||
(Brain France, Dmitry)
|
||||
- Fixed bug #50828 (DOMNotation is not subclass of DOMNode). (Rob)
|
||||
- Fixed bug #50810 (property_exists does not work for private). (Felipe)
|
||||
- Fixed bug #50762 (in WSDL mode Soap Header handler function only being called
|
||||
if defined in WSDL). (mephius at gmail dot com)
|
||||
- Fixed bug #50731 (Inconsistent namespaces sent to functions registered with
|
||||
spl_autoload_register). (Felipe)
|
||||
- Fixed bug #50555 (DateTime::sub() allows 'relative' time modifications). (Derick)
|
||||
- Fixed bug #50563 (removing E_WARNING from parse_url). (ralph at smashlabs dot
|
||||
com, Pierre)
|
||||
- Fixed bug #50578 (incorrect shebang in phar.phar). (Fedora at FamilleCollet
|
||||
dot com)
|
||||
- Fixed bug #50392 (date_create_from_format enforces 6 digits for 'u' format
|
||||
character). (Derick)
|
||||
- Fixed bug #50383 (Exceptions thrown in __call / __callStatic do not include
|
||||
file and line in trace). (Felipe)
|
||||
- Fixed bug #50358 (Compile failure compiling ext/phar/util.lo). (Felipe)
|
||||
- Fixed bug #50101 (name clash between global and local variable).
|
||||
(patch by yoarvi at gmail dot com)
|
||||
- Fixed bug #50055 (DateTime::sub() allows 'relative' time modifications).
|
||||
(Derick)
|
||||
- Fixed bug #51002 (fix possible memory corruption with very long names).
|
||||
(Pierre)
|
||||
- Fixed bug #49893 (Crash while creating an instance of Zend_Mail_Storage_Pop3).
|
||||
(Dmitry)
|
||||
- Fixed bug #49819 (STDOUT losing data with posix_isatty()). (Mike)
|
||||
- Fixed bug #49778 (DateInterval::format("%a") is always zero when an interval
|
||||
is created from an ISO string). (Derick)
|
||||
- Fixed bug #49700 (memory leaks in php_date.c if garbage collector is
|
||||
enabled). (Dmitry)
|
||||
- Fixed bug #49576 (FILTER_VALIDATE_EMAIL filter needs updating) (Rasmus)
|
||||
- Fixed bug #49490 (XPath namespace prefix conflict). (Rob)
|
||||
- Fixed bug #49429 (odbc_autocommit doesn't work). (Felipe)
|
||||
- Fixed bug #49320 (PDO returns null when SQLite connection fails). (Felipe)
|
||||
- Fixed bug #49234 (mysqli_ssl_set not found). (Andrey)
|
||||
- Fixed bug #49216 (Reflection doesn't seem to work properly on MySqli).
|
||||
(Andrey)
|
||||
- Fixed bug #49192 (PHP crashes when GC invoked on COM object). (Stas)
|
||||
- Fixed bug #49081 (DateTime::diff() mistake if start in January and interval >
|
||||
28 days). (Derick)
|
||||
- Fixed bug #49059 (DateTime::diff() repeats previous sub() operation).
|
||||
(yoarvi@gmail.com, Derick)
|
||||
- Fixed bug #48983 (DomDocument : saveHTMLFile wrong charset). (Rob)
|
||||
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3). (Felipe)
|
||||
- Fixed bug #48902 (Timezone database fallback map is outdated). (Derick)
|
||||
- Fixed bug #48781 (Cyclical garbage collector memory leak). (Dmitry)
|
||||
- Fixed bug #48601 (xpath() returns FALSE for legitimate query). (Rob)
|
||||
- Fixed bug #48361 (SplFileInfo::getPathInfo should return the
|
||||
parent dir). (Etienne)
|
||||
- Fixed bug #48289 (iconv_mime_encode() quoted-printable scheme is broken).
|
||||
(Adam, patch from hiroaki dot kawai at gmail dot com).
|
||||
- Fixed bug #47842 (sscanf() does not support 64-bit values). (Mike)
|
||||
- Fixed bug #46111 (Some timezone identifiers can not be parsed). (Derick)
|
||||
- Fixed bug #45808 (stream_socket_enable_crypto() blocks and eats CPU).
|
||||
(vincent at optilian dot com)
|
||||
- Fixed bug #43233 (sasl support for ldap on Windows). (Pierre)
|
||||
- Fixed bug #35673 (formatOutput does not work with saveHTML). (Rob)
|
||||
- Fixed bug #33210 (getimagesize() fails to detect width/height on certain
|
||||
JPEGs). (Ilia)
|
||||
|
||||
04 Mar 2010, PHP 5.3.2
|
||||
|
||||
?? ??? 20??, PHP 5.3.2
|
||||
- Upgraded bundled sqlite to version 3.6.22. (Ilia)
|
||||
- Upgraded bundled libmagic to version 5.03. (Mikko)
|
||||
- Upgraded bundled PCRE to version 8.00. (Scott)
|
||||
- Updated timezone database to version 2010.3. (Derick)
|
||||
|
||||
- Improved LCG entropy. (Rasmus, Samy Kamkar)
|
||||
- Improved crypt support for edge cases (UFC compatibility). (Solar Designer,
|
||||
Joey, Pierre)
|
||||
|
||||
- Reverted fix for bug #49521 (PDO fetchObject sets values before calling
|
||||
constructor). (Pierrick, Johannes)
|
||||
|
||||
- Changed gmp_strval() to use full range from 2 to 62, and -2 to -36. FR #50283
|
||||
(David Soria Parra)
|
||||
@@ -176,12 +682,8 @@ PHP NEWS
|
||||
(Linus Nielsen Feltzing <linus@haxx.se>)
|
||||
- Added client-side server name indication support in openssl. (Arnaud)
|
||||
|
||||
- Improved crypt support for edge cases (UFC compatibility). (Solar Designer,
|
||||
Joey, Pierre)
|
||||
- Improved fix for bug #50006 (Segfault caused by uksort()). (Stas)
|
||||
|
||||
- Fixed crypt's blowfish sanity check of the "setting" string, to reject iteration
|
||||
counts encoded as 36 through 39. (Solar Designer, Joey, Pierre)
|
||||
- Fixed mysqlnd hang when queries exactly 16777214 bytes long are sent. (Andrey)
|
||||
- Fixed incorrect decoding of 5-byte BIT sequences in mysqlnd. (Andrey)
|
||||
- Fixed error_log() to be binary safe when using message_type 3. (Jani)
|
||||
@@ -202,6 +704,8 @@ PHP NEWS
|
||||
- Fixed memory leaks in the ACL function on Windows. (Pierre)
|
||||
- Fixed memory leak in the realpath cache on Windows. (Pierre)
|
||||
- Fixed memory leak in zip_close. (Pierre)
|
||||
- Fixed crypt's blowfish sanity check of the "setting" string, to reject
|
||||
iteration counts encoded as 36 through 39. (Solar Designer, Joey, Pierre)
|
||||
|
||||
- Fixed bug #51059 (crypt crashes when invalid salt are given). (Pierre)
|
||||
- Fixed bug #50952 (allow underscore _ in constants parsed in php.ini files).
|
||||
@@ -240,25 +744,6 @@ PHP NEWS
|
||||
- Fixed bug #50632 (filter_input() does not return default value if the
|
||||
variable does not exist). (Ilia)
|
||||
- Fixed bug #50576 (XML_OPTION_SKIP_TAGSTART option has no effect). (Pierrick)
|
||||
- Fixed bug #50416 (PROCEDURE db.myproc can't return a result set in the given
|
||||
context). (Andrey)
|
||||
- Fixed bug #49600 (imageTTFText text shifted right). (Takeshi Abe)
|
||||
- Fixed bug #49585 (date_format buffer not long enough for >4 digit years).
|
||||
(Derick, Adam)
|
||||
- Fixed bug #49560 (oci8: using LOBs causes slow PHP shutdown). (Oracle Corp.)
|
||||
- Fixed bug #49463 (setAttributeNS fails setting default namespace). (Rob)
|
||||
- Fixed bug #48811 (Directives in PATH section do not get applied to
|
||||
subdirectories). (Patch by: ct at swin dot edu dot au)
|
||||
- Fixed bug #48590 (SoapClient does not honor max_redirects). (Sriram)
|
||||
- Fixed bug #48190 (Content-type parameter "boundary" is not case-insensitive
|
||||
in HTTP uploads). (Ilia)
|
||||
- Fixed bug #47409 (extract() problem with array containing word "this").
|
||||
(Ilia, chrisstocktonaz at gmail dot com)
|
||||
- Fixed bug #47281 ($php_errormsg is limited in size of characters)
|
||||
(Oracle Corp.)
|
||||
- Fixed bug #44827 (define() allows :: in constant names). (Ilia)
|
||||
- Fixed bug #44098 (imap_utf8() returns only capital letters).
|
||||
(steffen at dislabs dot de, Pierre)
|
||||
- Fixed bug #50558 (Broken object model when extending tidy). (Pierrick)
|
||||
- Fixed bug #50540 (Crash while running ldap_next_reference test cases).
|
||||
(Sriram)
|
||||
@@ -273,6 +758,8 @@ PHP NEWS
|
||||
- Fixed bug #50458 (PDO::FETCH_FUNC fails with Closures). (Felipe, Pierrick)
|
||||
- Fixed bug #50445 (PDO-ODBC stored procedure call from Solaris 64-bit causes
|
||||
seg fault). (davbrown4 at yahoo dot com, Felipe)
|
||||
- Fixed bug #50416 (PROCEDURE db.myproc can't return a result set in the given
|
||||
context). (Andrey)
|
||||
- Fixed bug #50394 (Reference argument converted to value in __call). (Stas)
|
||||
- Fixed bug #50351 (performance regression handling objects, ten times slower
|
||||
in 5.3 than in 5.2). (Dmitry)
|
||||
@@ -353,26 +840,41 @@ PHP NEWS
|
||||
- Fixed bug #49660 (libxml 2.7.3+ limits text nodes to 10MB). (Felipe)
|
||||
- Fixed bug #49647 (DOMUserData does not exist). (Rob)
|
||||
- Fixed bug #49600 (imageTTFText text shifted right). (Takeshi Abe)
|
||||
- Fixed bug #49585 (date_format buffer not long enough for >4 digit years).
|
||||
(Derick, Adam)
|
||||
- Fixed bug #49560 (oci8: using LOBs causes slow PHP shutdown). (Oracle Corp.)
|
||||
- Fixed bug #49521 (PDO fetchObject sets values before calling constructor).
|
||||
(Pierrick)
|
||||
- Fixed bug #49472 (Constants defined in Interfaces can be overridden).
|
||||
(Felipe)
|
||||
- Fixed bug #49463 (setAttributeNS fails setting default namespace). (Rob)
|
||||
- Fixed bug #49244 (Floating point NaN cause garbage characters). (Sjoerd)
|
||||
- Fixed bug #49224 (Compile error due to old DNS functions on AIX systems).
|
||||
(Scott)
|
||||
- Fixed bug #49174 (crash when extending PDOStatement and trying to set
|
||||
queryString property). (Felipe)
|
||||
- Fixed bug #48811 (Directives in PATH section do not get applied to
|
||||
subdirectories). (Patch by: ct at swin dot edu dot au)
|
||||
- Fixed bug #48590 (SoapClient does not honor max_redirects). (Sriram)
|
||||
- Fixed bug #48190 (Content-type parameter "boundary" is not case-insensitive
|
||||
in HTTP uploads). (Ilia)
|
||||
- Fixed bug #47848 (importNode doesn't preserve attribute namespaces). (Rob)
|
||||
- Fixed bug #47409 (extract() problem with array containing word "this").
|
||||
(Ilia, chrisstocktonaz at gmail dot com)
|
||||
- Fixed bug #47281 ($php_errormsg is limited in size of characters)
|
||||
(Oracle Corp.)
|
||||
- Fixed bug #46478 (htmlentities() uses obsolete mapping table for character
|
||||
entity references). (Moriyoshi)
|
||||
- Fixed bug #45599 (strip_tags() truncates rest of string with invalid
|
||||
attribute). (Ilia, hradtke)
|
||||
- Fixed bug #45120 (PDOStatement->execute() returns true then false for same
|
||||
statement). (Pierrick)
|
||||
- Fixed bug #44827 (define() allows :: in constant names). (Ilia)
|
||||
- Fixed bug #44098 (imap_utf8() returns only capital letters).
|
||||
(steffen at dislabs dot de, Pierre)
|
||||
- Fixed bug #34852 (Failure in odbc_exec() using oracle-supplied odbc
|
||||
driver). (tim dot tassonis at trivadis dot com)
|
||||
|
||||
|
||||
19 Nov 2009, PHP 5.3.1
|
||||
- Upgraded bundled sqlite to version 3.6.19. (Scott)
|
||||
- Updated timezone database to version 2009.17 (2009q). (Derick)
|
||||
|
||||
@@ -1,142 +0,0 @@
|
||||
$Id: README.NEW-OUTPUT-API 219039 2006-08-30 07:39:09Z mike $
|
||||
|
||||
|
||||
API adjustment to the old output control code:
|
||||
|
||||
Everything now resides beneath the php_output namespace,
|
||||
and there's an API call for every output handler op.
|
||||
|
||||
Checking output control layers status:
|
||||
// Using OG()
|
||||
php_output_get_status(TSRMLS_C);
|
||||
|
||||
Starting the default output handler:
|
||||
// php_start_ob_buffer(NULL, 0, 1 TSRMLS_CC);
|
||||
php_output_start_default(TSRMLS_C);
|
||||
|
||||
Starting an user handler by zval:
|
||||
// php_start_ob_buffer(zhandler, chunk_size, erase TSRMLS_CC);
|
||||
php_output_start_user(zhandler, chunk_size, flags TSRMLS_CC);
|
||||
|
||||
Starting an internal handler whithout context:
|
||||
// php_ob_set_internal_handler(my_php_output_handler_func_t, buffer_size, "output handler name", erase TSRMLS_CC);
|
||||
php_output_start_internal(handler_name, handler_name_len, my_php_output_handler_func_t, chunk_size, flags TSRMLS_CC);
|
||||
|
||||
Starting an internal handler with context:
|
||||
// not possible with old API
|
||||
php_output_handler *h;
|
||||
h = php_output_handler_create_internal(handler_name, handler_name_len, my_php_output_handler_context_func_t, chunk_size, flags TSRMLS_CC);
|
||||
php_output_handler_set_context(h, my_context, my_context_dtor);
|
||||
php_output_handler_start(h TSRMLS_CC);
|
||||
|
||||
Testing whether a certain output handler has already been started:
|
||||
// php_ob_handler_used("output handler name" TSRMLS_CC);
|
||||
php_output_handler_started(handler_name, handler_name_len TSRMLS_CC);
|
||||
|
||||
Flushing one output buffer:
|
||||
// php_ob_end_buffer(1, 1 TSRMLS_CC);
|
||||
php_output_flush(TSRMLS_C);
|
||||
|
||||
Flushing all output buffers:
|
||||
// not possible with old API
|
||||
php_output_flush_all(TSRMLS_C);
|
||||
|
||||
Cleaning one output buffer:
|
||||
// php_ob_end_buffer(0, 1 TSRMLS_CC);
|
||||
php_output_clean(TSRMLS_C);
|
||||
|
||||
Cleaning all output buffers:
|
||||
// not possible with old API
|
||||
php_output_clean_all(TSRMLS_C);
|
||||
|
||||
Discarding one output buffer:
|
||||
// php_ob_end_buffer(0, 0 TSRMLS_CC);
|
||||
php_output_discard(TSRMLS_C);
|
||||
|
||||
Discarding all output buffers:
|
||||
// php_ob_end_buffers(0 TSRMLS_CC);
|
||||
php_output_discard_all(TSRMLS_C);
|
||||
|
||||
Stopping (and dropping) one output buffer:
|
||||
// php_ob_end_buffer(1, 0 TSRMLS_CC)
|
||||
php_output_end(TSRMLS_C);
|
||||
|
||||
Stopping (and dropping) all output buffers:
|
||||
// php_ob_end_buffers(1, 0 TSRMLS_CC);
|
||||
php_output_end_all(TSRMLS_C);
|
||||
|
||||
Retrieving output buffers contents:
|
||||
// php_ob_get_buffer(zstring TSRMLS_CC);
|
||||
php_output_get_contents(zstring TSRMLS_CC);
|
||||
|
||||
Retrieving output buffers length:
|
||||
// php_ob_get_length(zlength TSRMLS_CC);
|
||||
php_output_get_length(zlength TSRMLS_CC);
|
||||
|
||||
Retrieving output buffering level:
|
||||
// OG(nesting_level);
|
||||
php_output_get_level(TSRMLS_C);
|
||||
|
||||
Issue a warning because of an output handler conflict:
|
||||
// php_ob_init_conflict("to be started handler name", "to be tested if already started handler name" TSRMLS_CC);
|
||||
php_output_handler_conflict(new_handler_name, new_handler_name_len, set_handler_name, set_handler_name_len TSRMLS_CC);
|
||||
|
||||
Registering a conflict checking function, which will be checked prior starting the handler:
|
||||
// not possible with old API, unless hardcoding into output.c
|
||||
php_output_handler_conflict_register(handler_name, handler_name_len, my_php_output_handler_conflict_check_t TSRMLS_CC);
|
||||
|
||||
Registering a reverse conflict checking function, which will be checked prior starting the specified foreign handler:
|
||||
// not possible with old API
|
||||
php_output_handler_reverse_conflict_register(foreign_handler_name, foreign_handler_name_len, my_php_output_handler_conflict_check_t TSRMLS_CC);
|
||||
|
||||
Facilitating a context from within an output handler callable with ob_start():
|
||||
// not possible with old API
|
||||
php_output_handler_hook(PHP_OUTPUT_HANDLER_HOOK_GET_OPAQ, (void *) &custom_ctx_ptr_ptr TSRMLS_CC);
|
||||
|
||||
Disabling of the output handler by itself:
|
||||
//not possible with old API
|
||||
php_output_handler_hook(PHP_OUTPUT_HANDLER_HOOK_DISABLE, NULL TSRMLS_CC);
|
||||
|
||||
Marking an output handler immutable by itself because of irreversibility of its operation:
|
||||
// not possible with old API
|
||||
php_output_handler_hook(PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE, NULL TSRMLS_CC);
|
||||
|
||||
Restarting the output handler because of a CLEAN operation:
|
||||
// not possible with old API
|
||||
if (flags & PHP_OUTPUT_HANDLER_CLEAN) { ... }
|
||||
|
||||
Recognizing by the output handler itself if it gets discarded:
|
||||
// not possible with old API
|
||||
if ((flags & PHP_OUTPUT_HANDLER_CLEAN) && (flags & PHP_OUTPUT_HANDLER_FINAL)) { ... }
|
||||
|
||||
|
||||
Output handler hooks
|
||||
|
||||
The output handler can change its abilities at runtime. Eg. the gz handler can
|
||||
remove the CLEANABLE and REMOVABLE bits when the first output has passed through it;
|
||||
or handlers implemented in C to be used with ob_start() can contain a non-global
|
||||
context:
|
||||
PHP_OUTPUT_HANDLER_HOOK_GET_OPAQ
|
||||
pass a void*** pointer as second arg to receive the address of a pointer
|
||||
pointer to the opaque field of the output handler context
|
||||
PHP_OUTPUT_HANDLER_HOOK_GET_FLAGS
|
||||
pass a int* pointer as second arg to receive the flags set for the output handler
|
||||
PHP_OUTPUT_HANDLER_HOOK_GET_LEVEL
|
||||
pass a int* pointer as second arg to receive the level of this output handler
|
||||
(starts with 0)
|
||||
PHP_OUTPUT_HANDLER_HOOK_IMMUTABLE
|
||||
the second arg is ignored; marks the output handler to be neither cleanable
|
||||
nor removable
|
||||
PHP_OUTPUT_HANDLER_HOOK_DISABLE
|
||||
the second arg is ignored; marks the output handler as disabled
|
||||
|
||||
|
||||
Open questions
|
||||
|
||||
Should the userland API be adjusted and unified?
|
||||
|
||||
Many bits of the manual (and very first implementation) do not comply
|
||||
with the behaviour of the current (to be obsoleted) code, thus should
|
||||
the manual or the behaviour be adjusted?
|
||||
|
||||
END
|
||||
+17
-5
@@ -19,7 +19,9 @@ A simple implementation might look like the following. This stores the
|
||||
original raw user data and adds a my_get_raw() function while the normal
|
||||
$_POST, $_GET and $_COOKIE arrays are only populated with stripped
|
||||
data. In this simple example all I am doing is calling strip_tags() on
|
||||
the data.
|
||||
the data. If register_globals is turned on, the default globals that
|
||||
are created will be stripped ($foo) while a $RAW_foo is created with the
|
||||
original user input.
|
||||
|
||||
ZEND_BEGIN_MODULE_GLOBALS(my_input_filter)
|
||||
zval *post_array;
|
||||
@@ -153,6 +155,8 @@ PHP_FUNCTION(my_get_raw)
|
||||
int var_len;
|
||||
zval **tmp;
|
||||
zval *array_ptr = NULL;
|
||||
HashTable *hash_ptr;
|
||||
char *raw_var;
|
||||
|
||||
if(zend_parse_parameters(2 TSRMLS_CC, "ls", &arg, &var, &var_len) == FAILURE) {
|
||||
return;
|
||||
@@ -170,15 +174,23 @@ PHP_FUNCTION(my_get_raw)
|
||||
break;
|
||||
}
|
||||
|
||||
if(!array_ptr) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
if(!array_ptr) RETURN_FALSE;
|
||||
|
||||
if(zend_hash_find(HASH_OF(array_ptr), var, var_len+5, (void **)&tmp) == SUCCESS) {
|
||||
/*
|
||||
* I'm changing the variable name here because when running with register_globals on,
|
||||
* the variable will end up in the global symbol table
|
||||
*/
|
||||
raw_var = emalloc(var_len+5); /* RAW_ and a \0 */
|
||||
strcpy(raw_var, "RAW_");
|
||||
strlcat(raw_var,var,var_len+5);
|
||||
hash_ptr = HASH_OF(array_ptr);
|
||||
|
||||
if(zend_hash_find(hash_ptr, raw_var, var_len+5, (void **)&tmp) == SUCCESS) {
|
||||
*return_value = **tmp;
|
||||
zval_copy_ctor(return_value);
|
||||
} else {
|
||||
RETVAL_FALSE;
|
||||
}
|
||||
efree(raw_var);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
Things to do or at least think about doing in the future. Name in
|
||||
parenthesis means that person has taken on this project.
|
||||
|
||||
Zend
|
||||
----
|
||||
* Allow foreach ($array as $k => list($a, $b)) syntax for multi
|
||||
dimensional arrays.
|
||||
* Look at replacing c-lib call tolower().
|
||||
* Make hash API functions work with HASH_OF() to save time.
|
||||
* Native large number support (probably with GNU GMP)
|
||||
* Const'ify APIs. Right now, many functions leave parameters untouched,
|
||||
but don't declare those as const. This makes interaction with other
|
||||
interfaces difficult which pass const parameters to us.
|
||||
|
||||
|
||||
global
|
||||
------
|
||||
* Make sure that all ZTS globals get destructed. Most ts_allocate_id()
|
||||
calls should have a dtor entry.
|
||||
* on some platforms unimplemented function will just do nothing
|
||||
(e.g. symlink) they should print a warning or not even be defined!
|
||||
(DONE ?)
|
||||
* --enable-all in configure. (--enable-shared=max ...)
|
||||
* make configure print out a summary when it's done (like XEmacs)
|
||||
* replace standard functions which work on static data with
|
||||
reentrancy-safe functions (DONE?).
|
||||
* make SAPI conform to CGI/1.1. Currently, all SAPI modules
|
||||
define REMOTE_ADDR etc. themselves and reach only various level
|
||||
of compliance.
|
||||
* see what functions might need to be changed to use HashPosition, so
|
||||
that the internal array pointer is not affected.
|
||||
* Move most extensions and PEAR packages out of the PHP CVS tree,
|
||||
include them again during release packaging.
|
||||
|
||||
Other
|
||||
* use thread-safe resolver functions (either require BIND 8 or adns).
|
||||
* implement javadoc based function docs template system.
|
||||
* provide optional IPv6 support (seems to be done?).
|
||||
* find a better way to implement script timeouts. SIGVTALRM is used
|
||||
by some POSIX threads implementations (i.e. OpenBSD) and is not
|
||||
available in ZTS mode.
|
||||
* Implement flush feature suitable for nested output buffers.
|
||||
|
||||
Streams
|
||||
-------
|
||||
* Route filestat.c through the wrapper layer; isolate the statcache code
|
||||
so that it is independent of php functions and can be applied to any
|
||||
stream/path.
|
||||
* Implement generalized connection pool for stated protocols such as
|
||||
ftp and http/1.1 (using keep-alive) to avoid having to negotiate
|
||||
new command/request stream for each subsequent call; Possibly store
|
||||
resources in contexts (creating a default context if necessary) to
|
||||
allow segmentation of connection pools.
|
||||
* Add a method to take ownership of the memory buffer in memory streams so
|
||||
that generating string values for zvals doesn't require an estrdup.
|
||||
* bundle and use curl lib for fopen wrapper.
|
||||
|
||||
documentation
|
||||
-------------
|
||||
* Add remarks in the documentation which functions are not implemented
|
||||
on win32.
|
||||
* Add remarks in the documentation which functions are not binary-safe.
|
||||
* Update curl documentation (DONE?)
|
||||
* Add developer documentation.
|
||||
* Add detailed documentation for Java extension.
|
||||
|
||||
ext/curl
|
||||
--------
|
||||
* Have a warning scheme for when people use unsupported features.
|
||||
|
||||
ext/oci8
|
||||
--------
|
||||
* All OCIFetch*() functions should return 0 for no more data and false on
|
||||
error.
|
||||
* Have a flag that trims trailing spaces from CHAR fields on retrieval.
|
||||
* Make allow_call_time_pass_reference=Off working.
|
||||
* For additional todo information, see oci8.c, in ext/oci8
|
||||
|
||||
ext/odbc
|
||||
--------
|
||||
For PHP 4.3.0:
|
||||
* update all php_error calls to php_error_docref where valid
|
||||
* integrate EXPERIMENTAL ODBC update for use in PHP 5.0, use for
|
||||
testing purposes only.
|
||||
|
||||
For PHP 5.0.0
|
||||
* Activate EXPERIMENTAL ODBC codebase update
|
||||
|
||||
ext/pcre
|
||||
--------
|
||||
* Allow user to set PCRE_NOTEMPTY, PCRE_ANCHORED at execution time, maybe
|
||||
|
||||
ext/pcntl
|
||||
---------
|
||||
* Change internal callback handler to use TICKS
|
||||
* Remove all zend_extension code
|
||||
* Add object callback support to pcntl_signal()
|
||||
|
||||
ext/session
|
||||
-----------
|
||||
For PHP 4.3.0:
|
||||
* session_abort() to abort session. ie: Do not save session data.
|
||||
* Allow unset($_SESSION) or unset($HTTP_SESSION_VARS) to unset
|
||||
session vars regardless of register_globals setting.
|
||||
|
||||
Other:
|
||||
* Maybe implement finer-grained session variables that could be
|
||||
locked individually.
|
||||
* Write a network-transparent storage back-end with fallover
|
||||
facilities
|
||||
* Provide a callback facility which is executed upon encountering
|
||||
an unknown class name during deserialization
|
||||
|
||||
ext/standard
|
||||
------------
|
||||
* Add a version number to data serialized via serialize().
|
||||
* Possibly modify parsing of GPC data to automatically create arrays if
|
||||
variable name is seen more than once.
|
||||
* Implement regex-cache for url-functions.
|
||||
* Move socket related functions to fsock.c.
|
||||
|
||||
ext/wddx
|
||||
--------
|
||||
* See if we can support the remaining data types:
|
||||
binary
|
||||
|
||||
http://www.wddx.org/WDDX_SDK_10a/7__References/WDDX_DTD.htm
|
||||
(Andrei)
|
||||
|
||||
* implement wddx_packet_as_javascript(). (Andrei)
|
||||
|
||||
other cool stuff
|
||||
----------------
|
||||
* PVM extension
|
||||
|
||||
vim:et:sw=4:ts=4
|
||||
@@ -0,0 +1,4 @@
|
||||
Zend Engine
|
||||
-----------
|
||||
- Look at making zend_constant value member be a zval* instead of zval. (Andi)
|
||||
- Implement inheritance rules for type hints. (Marcus)
|
||||
@@ -0,0 +1,89 @@
|
||||
Component: Zend Engine 2
|
||||
|
||||
Important stuff to finish: PPP members/PPP methods,
|
||||
support of overloaded extensions, possibly differentiate
|
||||
between class and namespace as discussed with Stig in
|
||||
Germany.
|
||||
Responsibility: Zeev, Andi, Stas
|
||||
Time frame: Couple of months for first part and extensions will be
|
||||
ongoing while PHP is being fixed.
|
||||
Things to leave for later versions: Native aggregation
|
||||
support, accessing static members via object and not class.
|
||||
|
||||
|
||||
Component: Aggregation
|
||||
Responsibility: Andi, Stig?
|
||||
Time frame: ?
|
||||
|
||||
|
||||
Component: Redesign of API Versioning
|
||||
Responsibility: ?
|
||||
Time frame: 1 month
|
||||
|
||||
|
||||
Component: Thread Safety
|
||||
Identify the extensions that are not thread safe by design
|
||||
or due to dependant libraries and identify them as such.
|
||||
If possible try to resolve thread safety issue via code
|
||||
improvements (if php code or patches will be accepted by
|
||||
library maintainers). For situations where thread safety
|
||||
cannot easily be acheived a flag in the extension API is
|
||||
set so PHP can identify non-thread safe extensions. These
|
||||
extensions will not be loaded in a ZTS compiled binary
|
||||
(unless it is cli/cgi).
|
||||
|
||||
Responsibility: ?
|
||||
Time frame: ?
|
||||
|
||||
|
||||
Component: SAPI
|
||||
Environment variables defined in the CGI spec need to be
|
||||
verified in each SAPI module that they conform to the CGI
|
||||
spec correctly. If they do not, the SAPI module needs to
|
||||
fix the variable prior to script execution. Having this
|
||||
conformity will aid in having PHP scripts run correctly
|
||||
under different sapi modules.
|
||||
|
||||
Responsibility: Shane Caraveo & each sapi module owner
|
||||
Timeframe: ? (but shouldn't be much effort, most modules are probably ok)
|
||||
|
||||
|
||||
Component: RPC Abstraction Layer
|
||||
Porting java, com, dotnet, xmlrpc, corba, soap and python, srm
|
||||
(are there more ?) to work with the new oo api and preferably
|
||||
by using ext/rpc.
|
||||
Responsibility: Harald
|
||||
Time frame: 2 months (but i have to wait for a few engine features first)
|
||||
|
||||
|
||||
Component: OO Extensions
|
||||
Each OO extension has to be revised and rewritten to fit into
|
||||
the new OO model. We should decide which extensions are a must
|
||||
to have for the release and which can be ported by the maintainer
|
||||
later as a separate pecl release.
|
||||
A list of extensions to be extended that have to be investigated:
|
||||
* browscap
|
||||
* aggregate
|
||||
* all *sql extensions (*_fetch_object)
|
||||
* domxml (seems like christian is rewriting it anyways)
|
||||
* ming
|
||||
Responsibility: Harald (, extension maintainers)
|
||||
|
||||
|
||||
Component: Abstract Data Types (ADT)
|
||||
Responsibility: Sterling, Harald
|
||||
Time frame: ?
|
||||
|
||||
|
||||
Component: Test Suite
|
||||
Extending the test suite with atleast a test for every
|
||||
function in an extension that doesn't require external
|
||||
resources. Also developing an automated test thing which
|
||||
cvs ups's, compiles and tests the build on a daily base on
|
||||
as much platforms/extensions as possible.
|
||||
|
||||
The test suite will also be extended to support threaded
|
||||
testing and testing for differing sapi modules (via http
|
||||
calls or other methods).
|
||||
Reponsibility: Derick (, extension maintainers)
|
||||
Time frame: 3 months
|
||||
+213
-86
@@ -14,6 +14,7 @@
|
||||
+----------------------------------------------------------------------+
|
||||
| Authors: Andi Gutmans <andi@zend.com> |
|
||||
| Sascha Schumann <sascha@schumann.cx> |
|
||||
| Pierre Joye <pierre@php.net> |
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -38,6 +39,18 @@
|
||||
# ifndef IO_REPARSE_TAG_SYMLINK
|
||||
# define IO_REPARSE_TAG_SYMLINK 0xA000000C
|
||||
# endif
|
||||
|
||||
# ifndef VOLUME_NAME_NT
|
||||
# define VOLUME_NAME_NT 0x2
|
||||
# endif
|
||||
|
||||
# ifndef VOLUME_NAME_DOS
|
||||
# define VOLUME_NAME_DOS 0x0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef S_IFLNK
|
||||
# define S_IFLNK 0120000
|
||||
#endif
|
||||
|
||||
#ifdef NETWARE
|
||||
@@ -83,14 +96,14 @@ cwd_state main_cwd_state; /* True global */
|
||||
#include <tchar.h>
|
||||
#define tsrm_strtok_r(a,b,c) _tcstok((a),(b))
|
||||
#define TOKENIZER_STRING "/\\"
|
||||
|
||||
static int php_check_dots(const char *element, int n)
|
||||
|
||||
static int php_check_dots(const char *element, int n)
|
||||
{
|
||||
while (n-- > 0) if (element[n] != '.') break;
|
||||
|
||||
return (n != -1);
|
||||
}
|
||||
|
||||
|
||||
#define IS_DIRECTORY_UP(element, len) \
|
||||
(len >= 2 && !php_check_dots(element, len))
|
||||
|
||||
@@ -124,7 +137,7 @@ static int php_check_dots(const char *element, int n)
|
||||
|
||||
/* define this to check semantics */
|
||||
#define IS_DIR_OK(s) (1)
|
||||
|
||||
|
||||
#ifndef IS_DIR_OK
|
||||
#define IS_DIR_OK(state) (php_is_dir_ok(state) == 0)
|
||||
#endif
|
||||
@@ -137,7 +150,7 @@ static int php_check_dots(const char *element, int n)
|
||||
|
||||
#define CWD_STATE_FREE(s) \
|
||||
free((s)->cwd);
|
||||
|
||||
|
||||
#ifdef TSRM_WIN32
|
||||
|
||||
#ifdef CTL_CODE
|
||||
@@ -202,21 +215,98 @@ static inline time_t FileTimeToUnixTime(const FILETIME FileTime)
|
||||
return (time_t)UnixTime;
|
||||
}
|
||||
|
||||
CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len){ /* {{{ */
|
||||
HINSTANCE kernel32;
|
||||
HANDLE hFile;
|
||||
DWORD dwRet;
|
||||
|
||||
typedef BOOL (WINAPI *gfpnh_func)(HANDLE, LPTSTR, DWORD, DWORD);
|
||||
gfpnh_func pGetFinalPathNameByHandle;
|
||||
|
||||
kernel32 = LoadLibrary("kernel32.dll");
|
||||
|
||||
if (kernel32) {
|
||||
pGetFinalPathNameByHandle = (gfpnh_func)GetProcAddress(kernel32, "GetFinalPathNameByHandleA");
|
||||
if (pGetFinalPathNameByHandle == NULL) {
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
||||
hFile = CreateFile(link, // file to open
|
||||
GENERIC_READ, // open for reading
|
||||
FILE_SHARE_READ, // share for reading
|
||||
NULL, // default security
|
||||
OPEN_EXISTING, // existing file only
|
||||
FILE_FLAG_BACKUP_SEMANTICS, // normal file
|
||||
NULL); // no attr. template
|
||||
|
||||
if( hFile == INVALID_HANDLE_VALUE) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
dwRet = pGetFinalPathNameByHandle(hFile, target, MAXPATHLEN, VOLUME_NAME_DOS);
|
||||
if(dwRet >= MAXPATHLEN) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
CloseHandle(hFile);
|
||||
|
||||
if(dwRet > 4) {
|
||||
/* Skip first 4 characters if they are "\??\" */
|
||||
if(target[0] == '\\' && target[1] == '\\' && target[2] == '?' && target[3] == '\\') {
|
||||
char tmp[MAXPATHLEN];
|
||||
unsigned int offset = 4;
|
||||
dwRet -= 4;
|
||||
|
||||
/* \??\UNC\ */
|
||||
if (dwRet > 7 && target[4] == 'U' && target[5] == 'N' && target[6] == 'C') {
|
||||
offset += 2;
|
||||
dwRet -= 2;
|
||||
target[offset] = '\\';
|
||||
}
|
||||
|
||||
memcpy(tmp, target + offset, dwRet);
|
||||
memcpy(target, tmp, dwRet);
|
||||
}
|
||||
}
|
||||
|
||||
target[dwRet] = '\0';
|
||||
return dwRet;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
|
||||
{
|
||||
return php_sys_stat_ex(path, buf, 0);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
CWD_API int php_sys_lstat(const char *path, struct stat *buf) /* {{{ */
|
||||
{
|
||||
return php_sys_stat_ex(path, buf, 1);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat) /* {{{ */
|
||||
{
|
||||
WIN32_FILE_ATTRIBUTE_DATA data;
|
||||
__int64 t;
|
||||
const size_t path_len = strlen(path);
|
||||
|
||||
if (!GetFileAttributesEx(path, GetFileExInfoStandard, &data)) {
|
||||
return stat(path, buf);
|
||||
}
|
||||
|
||||
if (path[1] == ':') {
|
||||
if (path_len >= 1 && path[1] == ':') {
|
||||
if (path[0] >= 'A' && path[0] <= 'Z') {
|
||||
buf->st_dev = buf->st_rdev = path[0] - 'A';
|
||||
} else {
|
||||
buf->st_dev = buf->st_rdev = path[0] - 'a';
|
||||
}
|
||||
} else if (IS_UNC_PATH(path, path_len)) {
|
||||
buf->st_dev = buf->st_rdev = 0;
|
||||
} else {
|
||||
char cur_path[MAXPATHLEN+1];
|
||||
DWORD len = sizeof(cur_path);
|
||||
@@ -245,19 +335,56 @@ CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
|
||||
}
|
||||
if (tmp != cur_path) {
|
||||
free(tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buf->st_uid = buf->st_gid = buf->st_ino = 0;
|
||||
buf->st_mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? (S_IFDIR|S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)) : S_IFREG;
|
||||
buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6));
|
||||
|
||||
if (lstat && data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) {
|
||||
/* File is a reparse point. Get the target */
|
||||
HANDLE hLink = NULL;
|
||||
REPARSE_DATA_BUFFER * pbuffer;
|
||||
unsigned int retlength = 0;
|
||||
TSRM_ALLOCA_FLAG(use_heap_large);
|
||||
|
||||
hLink = CreateFile(path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS, NULL);
|
||||
if(hLink == INVALID_HANDLE_VALUE) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
pbuffer = (REPARSE_DATA_BUFFER *)tsrm_do_alloca(MAXIMUM_REPARSE_DATA_BUFFER_SIZE, use_heap_large);
|
||||
if(!DeviceIoControl(hLink, FSCTL_GET_REPARSE_POINT, NULL, 0, pbuffer, MAXIMUM_REPARSE_DATA_BUFFER_SIZE, &retlength, NULL)) {
|
||||
tsrm_free_alloca(pbuffer, use_heap_large);
|
||||
CloseHandle(hLink);
|
||||
return -1;
|
||||
}
|
||||
|
||||
CloseHandle(hLink);
|
||||
|
||||
if(pbuffer->ReparseTag == IO_REPARSE_TAG_SYMLINK) {
|
||||
buf->st_mode = S_IFLNK;
|
||||
buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6));
|
||||
}
|
||||
|
||||
#if 0 /* Not used yet */
|
||||
else if(pbuffer->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT) {
|
||||
buf->st_mode |=;
|
||||
}
|
||||
#endif
|
||||
tsrm_free_alloca(pbuffer, use_heap_large);
|
||||
} else {
|
||||
buf->st_mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? (S_IFDIR|S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)) : S_IFREG;
|
||||
buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6));
|
||||
}
|
||||
|
||||
if ((data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) {
|
||||
int len = strlen(path);
|
||||
|
||||
if (path[len-4] == '.') {
|
||||
if (_memicmp(path+len-3, "exe", 3) == 0 ||
|
||||
_memicmp(path+len-3, "com", 3) == 0 ||
|
||||
_memicmp(path+len-3, "bat", 3) == 0 ||
|
||||
_memicmp(path+len-3, "cmd", 3) == 0) {
|
||||
_memicmp(path+len-3, "com", 3) == 0 ||
|
||||
_memicmp(path+len-3, "bat", 3) == 0 ||
|
||||
_memicmp(path+len-3, "cmd", 3) == 0) {
|
||||
buf->st_mode |= (S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6));
|
||||
}
|
||||
}
|
||||
@@ -332,7 +459,7 @@ CWD_API void virtual_cwd_startup(void) /* {{{ */
|
||||
}
|
||||
}
|
||||
#else
|
||||
result = getcwd(cwd, sizeof(cwd));
|
||||
result = getcwd(cwd, sizeof(cwd));
|
||||
#endif
|
||||
if (!result) {
|
||||
cwd[0] = '\0';
|
||||
@@ -383,7 +510,7 @@ CWD_API char *virtual_getcwd_ex(size_t *length TSRMLS_DC) /* {{{ */
|
||||
*length = 1;
|
||||
retval = (char *) malloc(2);
|
||||
retval[0] = DEFAULT_SLASH;
|
||||
retval[1] = '\0';
|
||||
retval[1] = '\0';
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -493,7 +620,7 @@ CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{
|
||||
|
||||
while (*bucket != NULL) {
|
||||
if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
|
||||
memcmp(path, (*bucket)->path, path_len) == 0) {
|
||||
memcmp(path, (*bucket)->path, path_len) == 0) {
|
||||
realpath_cache_bucket *r = *bucket;
|
||||
*bucket = (*bucket)->next;
|
||||
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
|
||||
@@ -510,9 +637,9 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
|
||||
{
|
||||
long size = sizeof(realpath_cache_bucket) + path_len + 1;
|
||||
int same = 1;
|
||||
|
||||
|
||||
if (realpath_len != path_len ||
|
||||
memcmp(path, realpath, path_len) != 0) {
|
||||
memcmp(path, realpath, path_len) != 0) {
|
||||
size += realpath_len + 1;
|
||||
same = 0;
|
||||
}
|
||||
@@ -570,7 +697,7 @@ static inline realpath_cache_bucket* realpath_cache_find(const char *path, int p
|
||||
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
|
||||
free(r);
|
||||
} else if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
|
||||
memcmp(path, (*bucket)->path, path_len) == 0) {
|
||||
memcmp(path, (*bucket)->path, path_len) == 0) {
|
||||
return *bucket;
|
||||
} else {
|
||||
bucket = &(*bucket)->next;
|
||||
@@ -582,21 +709,21 @@ static inline realpath_cache_bucket* realpath_cache_find(const char *path, int p
|
||||
|
||||
CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
return realpath_cache_find(path, path_len, t TSRMLS_CC);
|
||||
return realpath_cache_find(path, path_len, t TSRMLS_CC);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
CWD_API int realpath_cache_size(TSRMLS_D)
|
||||
CWD_API int realpath_cache_size(TSRMLS_D)
|
||||
{
|
||||
return CWDG(realpath_cache_size);
|
||||
}
|
||||
|
||||
CWD_API int realpath_cache_max_buckets(TSRMLS_D)
|
||||
CWD_API int realpath_cache_max_buckets(TSRMLS_D)
|
||||
{
|
||||
return (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
|
||||
}
|
||||
|
||||
CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D)
|
||||
CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D)
|
||||
{
|
||||
return CWDG(realpath_cache);
|
||||
}
|
||||
@@ -650,14 +777,14 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
if (!start) {
|
||||
/* leading '..' must not be removed in case of relative path */
|
||||
if (j == 0 && path[0] == '.' && path[1] == '.' &&
|
||||
IS_SLASH(path[2])) {
|
||||
IS_SLASH(path[2])) {
|
||||
path[3] = '.';
|
||||
path[4] = '.';
|
||||
path[5] = DEFAULT_SLASH;
|
||||
j = 5;
|
||||
} else if (j > 0 &&
|
||||
path[j+1] == '.' && path[j+2] == '.' &&
|
||||
IS_SLASH(path[j+3])) {
|
||||
} else if (j > 0 &&
|
||||
path[j+1] == '.' && path[j+2] == '.' &&
|
||||
IS_SLASH(path[j+3])) {
|
||||
j += 4;
|
||||
path[j++] = '.';
|
||||
path[j++] = '.';
|
||||
@@ -673,7 +800,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
}
|
||||
return j;
|
||||
}
|
||||
|
||||
|
||||
path[len] = 0;
|
||||
|
||||
save = (use_realpath != CWD_EXPAND);
|
||||
@@ -683,18 +810,18 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
if (!*t) {
|
||||
*t = time(0);
|
||||
}
|
||||
if ((bucket = realpath_cache_find(path, len, *t TSRMLS_CC)) != NULL) {
|
||||
if (is_dir && !bucket->is_dir) {
|
||||
if ((bucket = realpath_cache_find(path, len, *t TSRMLS_CC)) != NULL) {
|
||||
if (is_dir && !bucket->is_dir) {
|
||||
/* not a directory */
|
||||
return -1;
|
||||
} else {
|
||||
if (link_is_dir) {
|
||||
*link_is_dir = bucket->is_dir;
|
||||
}
|
||||
} else {
|
||||
if (link_is_dir) {
|
||||
*link_is_dir = bucket->is_dir;
|
||||
}
|
||||
memcpy(path, bucket->realpath, bucket->realpath_len + 1);
|
||||
return bucket->realpath_len;
|
||||
return bucket->realpath_len;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TSRM_WIN32
|
||||
@@ -706,7 +833,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
/* continue resolution anyway but don't save result in the cache */
|
||||
save = 0;
|
||||
}
|
||||
|
||||
|
||||
if (save) {
|
||||
FindClose(hFind);
|
||||
}
|
||||
@@ -714,9 +841,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
tmp = tsrm_do_alloca(len+1, use_heap);
|
||||
memcpy(tmp, path, len+1);
|
||||
|
||||
if(save &&
|
||||
!(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') &&
|
||||
(data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) {
|
||||
if(save &&
|
||||
!(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') &&
|
||||
(data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) {
|
||||
/* File is a reparse point. Get the target */
|
||||
HANDLE hLink = NULL;
|
||||
REPARSE_DATA_BUFFER * pbuffer;
|
||||
@@ -751,7 +878,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
reparsetarget = pbuffer->SymbolicLinkReparseBuffer.ReparseTarget;
|
||||
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
|
||||
isabsolute = (pbuffer->SymbolicLinkReparseBuffer.Flags == 0) ? 1 : 0;
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR),
|
||||
printname_len + 1,
|
||||
printname, MAX_PATH, NULL, NULL
|
||||
@@ -763,7 +890,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
printname[printname_len] = 0;
|
||||
|
||||
substitutename_len = pbuffer->MountPointReparseBuffer.SubstituteNameLength / sizeof(WCHAR);
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
|
||||
substitutename_len + 1,
|
||||
substitutename, MAX_PATH, NULL, NULL
|
||||
@@ -777,7 +904,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
isabsolute = 1;
|
||||
reparsetarget = pbuffer->MountPointReparseBuffer.ReparseTarget;
|
||||
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR),
|
||||
printname_len + 1,
|
||||
printname, MAX_PATH, NULL, NULL
|
||||
@@ -788,7 +915,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
printname[pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR)] = 0;
|
||||
|
||||
substitutename_len = pbuffer->MountPointReparseBuffer.SubstituteNameLength / sizeof(WCHAR);
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
|
||||
reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
|
||||
substitutename_len + 1,
|
||||
substitutename, MAX_PATH, NULL, NULL
|
||||
@@ -803,20 +930,22 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
}
|
||||
|
||||
if(isabsolute && substitutename_len > 4) {
|
||||
/* Do not resolve volumes (for now). A mounted point can
|
||||
/* Do not resolve volumes (for now). A mounted point can
|
||||
target a volume without a drive, it is not certain that
|
||||
all IO functions we use in php and its deps support
|
||||
all IO functions we use in php and its deps support
|
||||
path with volume GUID instead of the DOS way, like:
|
||||
d:\test\mnt\foo
|
||||
\\?\Volume{62d1c3f8-83b9-11de-b108-806e6f6e6963}\foo
|
||||
*/
|
||||
if (strncmp(substitutename, "\\??\\Volume{",11) == 0
|
||||
|| strncmp(substitutename, "\\\\?\\Volume{",11) == 0) {
|
||||
isVolume = TRUE;
|
||||
if (strncmp(substitutename, "\\??\\Volume{",11) == 0
|
||||
|| strncmp(substitutename, "\\\\?\\Volume{",11) == 0
|
||||
|| strncmp(substitutename, "\\??\\UNC\\", 8) == 0
|
||||
) {
|
||||
isVolume = TRUE;
|
||||
substitutename_off = 0;
|
||||
} else
|
||||
/* do not use the \??\ and \\?\ prefix*/
|
||||
if (strncmp(substitutename, "\\??\\", 4) == 0
|
||||
if (strncmp(substitutename, "\\??\\", 4) == 0
|
||||
|| strncmp(substitutename, "\\\\?\\", 4) == 0) {
|
||||
substitutename_off = 4;
|
||||
}
|
||||
@@ -887,7 +1016,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
tmp = tsrm_do_alloca(len+1, use_heap);
|
||||
memcpy(tmp, path, len+1);
|
||||
#else
|
||||
if (save && lstat(path, &st) < 0) {
|
||||
if (save && php_sys_lstat(path, &st) < 0) {
|
||||
if (use_realpath == CWD_REALPATH) {
|
||||
/* file not found */
|
||||
return -1;
|
||||
@@ -900,8 +1029,8 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
memcpy(tmp, path, len+1);
|
||||
|
||||
if (save && S_ISLNK(st.st_mode)) {
|
||||
if (++(*ll) > LINK_MAX || (j = readlink(tmp, path, MAXPATHLEN)) < 0) {
|
||||
/* too many links or broken symlinks */
|
||||
if (++(*ll) > LINK_MAX || (j = php_sys_readlink(tmp, path, MAXPATHLEN)) < 0) {
|
||||
/* too many links or broken symlinks */
|
||||
tsrm_free_alloca(tmp, use_heap);
|
||||
return -1;
|
||||
}
|
||||
@@ -913,10 +1042,10 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
if (i + j >= MAXPATHLEN-1) {
|
||||
if (i + j >= MAXPATHLEN-1) {
|
||||
tsrm_free_alloca(tmp, use_heap);
|
||||
return -1; /* buffer overflow */
|
||||
}
|
||||
}
|
||||
memmove(path+i, path, j+1);
|
||||
memcpy(path, tmp, i-1);
|
||||
path[i-1] = DEFAULT_SLASH;
|
||||
@@ -1038,18 +1167,18 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
|
||||
state_cwd_length = 2;
|
||||
while (IS_SLASH(state->cwd[state_cwd_length])) {
|
||||
state_cwd_length++;
|
||||
}
|
||||
}
|
||||
while (state->cwd[state_cwd_length] &&
|
||||
!IS_SLASH(state->cwd[state_cwd_length])) {
|
||||
!IS_SLASH(state->cwd[state_cwd_length])) {
|
||||
state_cwd_length++;
|
||||
}
|
||||
}
|
||||
while (IS_SLASH(state->cwd[state_cwd_length])) {
|
||||
state_cwd_length++;
|
||||
}
|
||||
}
|
||||
while (state->cwd[state_cwd_length] &&
|
||||
!IS_SLASH(state->cwd[state_cwd_length])) {
|
||||
!IS_SLASH(state->cwd[state_cwd_length])) {
|
||||
state_cwd_length++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1061,7 +1190,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
|
||||
memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1);
|
||||
path_length += state_cwd_length + 1;
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
#ifdef TSRM_WIN32
|
||||
if (path_length > 2 && path[1] == ':' && !IS_SLASH(path[2])) {
|
||||
resolved_path[0] = path[0];
|
||||
@@ -1072,11 +1201,11 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
|
||||
} else
|
||||
#endif
|
||||
memcpy(resolved_path, path, path_length + 1);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TSRM_WIN32
|
||||
if (memchr(resolved_path, '*', path_length) ||
|
||||
memchr(resolved_path, '?', path_length)) {
|
||||
memchr(resolved_path, '?', path_length)) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
@@ -1126,12 +1255,12 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
|
||||
add_slash = (use_realpath != CWD_REALPATH) && path_length > 0 && IS_SLASH(resolved_path[path_length-1]);
|
||||
t = CWDG(realpath_cache_ttl) ? 0 : -1;
|
||||
path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL TSRMLS_CC);
|
||||
|
||||
|
||||
if (path_length < 0) {
|
||||
errno = ENOENT;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (!start && !path_length) {
|
||||
resolved_path[path_length++] = '.';
|
||||
}
|
||||
@@ -1184,7 +1313,7 @@ verify:
|
||||
memcpy(state->cwd, resolved_path, state->cwd_length+1);
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
|
||||
#if VIRTUAL_CWD_DEBUG
|
||||
fprintf (stderr, "virtual_file_ex() = %s\n",state->cwd);
|
||||
#endif
|
||||
@@ -1207,7 +1336,7 @@ CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path
|
||||
|
||||
if (length == 0) {
|
||||
return 1; /* Can't cd to empty string */
|
||||
}
|
||||
}
|
||||
while(--length >= 0 && !IS_SLASH(path[length])) {
|
||||
}
|
||||
|
||||
@@ -1242,16 +1371,16 @@ CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC) /* {
|
||||
if (!*path) {
|
||||
new_state.cwd = (char*)malloc(1);
|
||||
new_state.cwd[0] = '\0';
|
||||
new_state.cwd_length = 0;
|
||||
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
|
||||
path = cwd;
|
||||
new_state.cwd_length = 0;
|
||||
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
|
||||
path = cwd;
|
||||
}
|
||||
} else if (!IS_ABSOLUTE_PATH(path, strlen(path))) {
|
||||
CWD_STATE_COPY(&new_state, &CWDG(cwd));
|
||||
} else {
|
||||
new_state.cwd = (char*)malloc(1);
|
||||
new_state.cwd[0] = '\0';
|
||||
new_state.cwd_length = 0;
|
||||
new_state.cwd_length = 0;
|
||||
}
|
||||
|
||||
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)==0) {
|
||||
@@ -1317,7 +1446,7 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
cwd_state new_state;
|
||||
int ret;
|
||||
|
||||
|
||||
CWD_STATE_COPY(&new_state, &CWDG(cwd));
|
||||
if (virtual_file_ex(&new_state, pathname, NULL, CWD_REALPATH)) {
|
||||
CWD_STATE_FREE(&new_state);
|
||||
@@ -1329,9 +1458,9 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC) /* {{{ */
|
||||
#else
|
||||
ret = access(new_state.cwd, mode);
|
||||
#endif
|
||||
|
||||
|
||||
CWD_STATE_FREE(&new_state);
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
/* }}} */
|
||||
@@ -1352,12 +1481,12 @@ static void UnixTimeToFileTime(time_t t, LPFILETIME pft) /* {{{ */
|
||||
TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */
|
||||
{
|
||||
FILETIME mtime, atime;
|
||||
HANDLE hFile;
|
||||
HANDLE hFile;
|
||||
|
||||
hFile = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_WRITE|FILE_SHARE_READ, NULL,
|
||||
OPEN_ALWAYS, FILE_FLAG_BACKUP_SEMANTICS, NULL);
|
||||
|
||||
/* OPEN_ALWAYS mode sets the last error to ERROR_ALREADY_EXISTS but
|
||||
/* OPEN_ALWAYS mode sets the last error to ERROR_ALREADY_EXISTS but
|
||||
the CreateFile operation succeeds */
|
||||
if (GetLastError() == ERROR_ALREADY_EXISTS) {
|
||||
SetLastError(0);
|
||||
@@ -1477,7 +1606,7 @@ CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...) /* {{{ */
|
||||
f = open(new_state.cwd, flags, mode);
|
||||
} else {
|
||||
f = open(new_state.cwd, flags);
|
||||
}
|
||||
}
|
||||
CWD_STATE_FREE(&new_state);
|
||||
return f;
|
||||
}
|
||||
@@ -1556,7 +1685,6 @@ CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC) /* {{{ */
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#if !defined(TSRM_WIN32)
|
||||
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
cwd_state new_state;
|
||||
@@ -1568,13 +1696,12 @@ CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC) /* {{{ *
|
||||
return -1;
|
||||
}
|
||||
|
||||
retval = lstat(new_state.cwd, buf);
|
||||
retval = php_sys_lstat(new_state.cwd, buf);
|
||||
|
||||
CWD_STATE_FREE(&new_state);
|
||||
return retval;
|
||||
}
|
||||
/* }}} */
|
||||
#endif
|
||||
|
||||
CWD_API int virtual_unlink(const char *path TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
@@ -1738,7 +1865,7 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) /*
|
||||
}
|
||||
*ptr++ = '\'';
|
||||
}
|
||||
|
||||
|
||||
*ptr++ = ' ';
|
||||
*ptr++ = ';';
|
||||
*ptr++ = ' ';
|
||||
@@ -1761,18 +1888,18 @@ CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{
|
||||
if (!*path) {
|
||||
new_state.cwd = (char*)malloc(1);
|
||||
new_state.cwd[0] = '\0';
|
||||
new_state.cwd_length = 0;
|
||||
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
|
||||
path = cwd;
|
||||
new_state.cwd_length = 0;
|
||||
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
|
||||
path = cwd;
|
||||
}
|
||||
} else if (!IS_ABSOLUTE_PATH(path, strlen(path)) &&
|
||||
VCWD_GETCWD(cwd, MAXPATHLEN)) {
|
||||
VCWD_GETCWD(cwd, MAXPATHLEN)) {
|
||||
new_state.cwd = strdup(cwd);
|
||||
new_state.cwd_length = strlen(cwd);
|
||||
} else {
|
||||
new_state.cwd = (char*)malloc(1);
|
||||
new_state.cwd[0] = '\0';
|
||||
new_state.cwd_length = 0;
|
||||
new_state.cwd_length = 0;
|
||||
}
|
||||
|
||||
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
|
||||
|
||||
+13
-9
@@ -14,6 +14,7 @@
|
||||
+----------------------------------------------------------------------+
|
||||
| Authors: Andi Gutmans <andi@zend.com> |
|
||||
| Sascha Schumann <sascha@schumann.cx> |
|
||||
| Pierre Joye <pierre@php.net> |
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -107,7 +108,7 @@ typedef unsigned short mode_t;
|
||||
#define COPY_WHEN_ABSOLUTE(path) 0
|
||||
#endif
|
||||
|
||||
#ifndef IS_ABSOLUTE_PATH
|
||||
#ifndef IS_ABSOLUTE_PATH
|
||||
#define IS_ABSOLUTE_PATH(path, len) \
|
||||
(IS_SLASH(path[0]))
|
||||
#endif
|
||||
@@ -129,9 +130,16 @@ typedef unsigned short mode_t;
|
||||
#endif
|
||||
|
||||
#ifdef TSRM_WIN32
|
||||
CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
|
||||
CWD_API int php_sys_stat(const char *path, struct stat *buf);
|
||||
CWD_API int php_sys_lstat(const char *path, struct stat *buf);
|
||||
CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len);
|
||||
#else
|
||||
# define php_sys_stat stat
|
||||
# define php_sys_lstat lstat
|
||||
# ifdef HAVE_SYMLINK
|
||||
# define php_sys_readlink(link, target, target_len) readlink(link, target, target_len)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef struct _cwd_state {
|
||||
@@ -155,9 +163,7 @@ CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...);
|
||||
CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC);
|
||||
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC);
|
||||
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC);
|
||||
#if !defined(TSRM_WIN32)
|
||||
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC);
|
||||
#endif
|
||||
CWD_API int virtual_unlink(const char *path TSRMLS_DC);
|
||||
CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC);
|
||||
CWD_API int virtual_rmdir(const char *pathname TSRMLS_DC);
|
||||
@@ -188,7 +194,7 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC);
|
||||
CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link TSRMLS_DC);
|
||||
#endif
|
||||
|
||||
/* One of the following constants must be used as the last argument
|
||||
/* One of the following constants must be used as the last argument
|
||||
in virtual_file_ex() call. */
|
||||
|
||||
#define CWD_EXPAND 0 /* expand "." and ".." but dont resolve symlinks */
|
||||
@@ -216,7 +222,7 @@ typedef struct _realpath_cache_bucket {
|
||||
unsigned char is_wvalid;
|
||||
unsigned char is_writable;
|
||||
#endif
|
||||
struct _realpath_cache_bucket *next;
|
||||
struct _realpath_cache_bucket *next;
|
||||
} realpath_cache_bucket;
|
||||
|
||||
typedef struct _virtual_cwd_globals {
|
||||
@@ -244,7 +250,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
|
||||
|
||||
/* The actual macros to be used in programs using TSRM
|
||||
* If the program defines VIRTUAL_DIR it will use the
|
||||
* virtual_* functions
|
||||
* virtual_* functions
|
||||
*/
|
||||
|
||||
#ifdef VIRTUAL_DIR
|
||||
@@ -261,9 +267,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
|
||||
#define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path TSRMLS_CC)
|
||||
#define VCWD_RENAME(oldname, newname) virtual_rename(oldname, newname TSRMLS_CC)
|
||||
#define VCWD_STAT(path, buff) virtual_stat(path, buff TSRMLS_CC)
|
||||
#if !defined(TSRM_WIN32)
|
||||
# define VCWD_LSTAT(path, buff) virtual_lstat(path, buff TSRMLS_CC)
|
||||
#endif
|
||||
#define VCWD_LSTAT(path, buff) virtual_lstat(path, buff TSRMLS_CC)
|
||||
#define VCWD_UNLINK(path) virtual_unlink(path TSRMLS_CC)
|
||||
#define VCWD_MKDIR(pathname, mode) virtual_mkdir(pathname, mode TSRMLS_CC)
|
||||
#define VCWD_RMDIR(pathname) virtual_rmdir(pathname TSRMLS_CC)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
$Id$
|
||||
|
||||
UPGRADE NOTES - PHP X.Y
|
||||
UPGRADE NOTES - PHP 5.3
|
||||
|
||||
1. Changes made to default configuration
|
||||
2. Reserved words and classes
|
||||
3. Changes made to existing functions
|
||||
4. Changes made to existing methods
|
||||
5. Changes made to existing classes
|
||||
6. Deprecated
|
||||
1. Reserved words and classes
|
||||
2. Changes made to existing functions
|
||||
3. Changes made to existing methods
|
||||
4. Changes made to existing classes
|
||||
5. Deprecated
|
||||
6. Undeprecated
|
||||
7. Extensions:
|
||||
a. moved out to PECL and actively maintained there
|
||||
b. no longer maintained
|
||||
@@ -17,7 +17,7 @@ UPGRADE NOTES - PHP X.Y
|
||||
9. Changes in INI directives
|
||||
10. Syntax additions
|
||||
11. Windows support
|
||||
12. New in PHP X.Y:
|
||||
12. New in PHP 5.3:
|
||||
a. New libraries
|
||||
b. New extensions
|
||||
c. New stream wrappers
|
||||
@@ -27,223 +27,655 @@ UPGRADE NOTES - PHP X.Y
|
||||
g. New classes
|
||||
h. New methods
|
||||
i. New class constants
|
||||
j. New hash algorithms
|
||||
|
||||
|
||||
========================================
|
||||
1. Changes made to default configuration
|
||||
========================================
|
||||
|
||||
- The default_charset setting now defaults to UTF-8.
|
||||
It was ISO-88590-1 before, so if you were relying
|
||||
on the default, you will need to add:
|
||||
|
||||
default_charset = iso-8859-1
|
||||
|
||||
to your php.ini to preserve pre-PHPX.Y behavior.
|
||||
|
||||
- We now check at compile time if /dev/urandom or /dev/arandom
|
||||
are present to provide non-blocking entropy to session id
|
||||
generation. If either is present, session.entropy_file
|
||||
now defaults to that file and session.entropy_length defaults
|
||||
to 32. If you do not want extra entropy for your session ids
|
||||
for some reason, add:
|
||||
|
||||
session.entropy_file=
|
||||
session.entropy_length=0
|
||||
|
||||
to your php.ini to preserve pre-PHPX.Y behavior.
|
||||
|
||||
- Deprecated ini directives will now throw an E_CORE_WARNING's
|
||||
instead of the previous E_WARNING's.
|
||||
|
||||
The following directives are marked as deprecated:
|
||||
- magic_quotes_gpc
|
||||
- magic_quotes_runtime
|
||||
- magic_quotes_sybase
|
||||
|
||||
- The following directives, which indicates a removed feature
|
||||
in PHP will now throw an E_CORE_ERROR upon startup like the
|
||||
deprecation warnings.
|
||||
|
||||
The following directives are no longer available:
|
||||
- allow_call_time_pass_reference
|
||||
- define_syslog_variables
|
||||
- highlight.bg
|
||||
- register_globals
|
||||
- register_long_arrays
|
||||
- safe_mode
|
||||
- safe_mode_gid
|
||||
- safe_mode_include_dir
|
||||
- safe_mode_exec_dir
|
||||
- safe_mode_allowed_env_vars
|
||||
- safe_mode_protected_env_vars
|
||||
- zend.ze1_compatibility_mode
|
||||
|
||||
=============================
|
||||
2. Reserved words and classes
|
||||
1. Reserved words and classes
|
||||
=============================
|
||||
|
||||
-
|
||||
- **namespace** and **goto** are now reserved keywords.
|
||||
|
||||
- **Closure** is now a reserved class. (Used by lambda and closure.)
|
||||
|
||||
=====================================
|
||||
3. Changes made to existing functions
|
||||
2. Changes made to existing functions
|
||||
=====================================
|
||||
|
||||
-
|
||||
- Paths containing NULL (like /some/path\0foo.txt) are now considered invalid.
|
||||
See http://news.php.net/php.internals/50191
|
||||
|
||||
- The HTTP stream wrapper now considers all status codes from 200 to 399 to be
|
||||
successful.
|
||||
|
||||
- The array functions natsort(), natcasesort(), usort(), uasort(), uksort(),
|
||||
array_flip(), and array_unique() no longer accept objects passed as arguments.
|
||||
If you need to use them to access an object's properties, you must cast the
|
||||
object to an array first.
|
||||
|
||||
- var_dump() output now includes private object members.
|
||||
|
||||
- session_start() now returns FALSE when the session startup fails.
|
||||
|
||||
- property_exists() now checks the existence of a property independent of
|
||||
accessibility (like method_exists()).
|
||||
|
||||
- The $initial parameter for array_reduce can now be of any type.
|
||||
|
||||
- clearstatcache() no longer clears the realpath cache by default.
|
||||
|
||||
- realpath() is no longer system-dependent and works identically on all
|
||||
platforms.
|
||||
|
||||
- call_user_func() now propagates $this even if the callee is the parent class.
|
||||
|
||||
- The filesystem functions opendir(), scandir(), and dir() now use the default
|
||||
context if no context argument is passed.
|
||||
|
||||
- The behaviour of functions with by-reference parameters called by value has
|
||||
changed. Where previously the function would accept the by-value argument, a
|
||||
warning is now emitted and all by-ref parameters are set to NULL.
|
||||
|
||||
- There is now native support for the following math functions: asinh(),
|
||||
acosh(), atanh(), log1p(), and expm1().
|
||||
|
||||
- In the GD extension, there is now pixelation support available through
|
||||
the imagefilter() function.
|
||||
|
||||
- crypt() now has Blowfish and extended DES support, and crypt() features are
|
||||
now 100% portable. PHP has its own internal crypt implementation which drops
|
||||
into place when system support for crypt or crypt_r() is not found.
|
||||
|
||||
- get_cfg_var() is now able to return "array" INI options.
|
||||
|
||||
- Stream wrappers can now be used by the include_path INI directive.
|
||||
|
||||
- These functions now take new parameters:
|
||||
clearstatcache(): $clear_realpath_cache and $filename.
|
||||
copy(): $context
|
||||
fgetcsv(): $escape
|
||||
ini_get_all(): $details
|
||||
json_encode(): $options
|
||||
json_decode(): $depth
|
||||
nl2br(): $is_xhtml
|
||||
parse_ini_file(): $scanner_mode
|
||||
round(): $mode
|
||||
stream_context_create(): $params
|
||||
strstr(), stristr(): $before_needle
|
||||
sybase_connect(): $new
|
||||
|
||||
- And new mode option for fopen: 'n' (O_NONBLOCK)
|
||||
|
||||
- The new mysqlnd library necessitates using MySQL's newer 41-byte password
|
||||
format. Continued use of the old 16 byte passwords will cause mysql_connect()
|
||||
and other related functions to produce the following error message:
|
||||
"mysqlnd cannot connect to MySQL 4.1+ using old authentication"
|
||||
|
||||
- The dl() function is now disabled by default, and only available under the
|
||||
cli, cgi, and embed SAPIs.
|
||||
|
||||
- mail() now supports the logging of sent mail.
|
||||
|
||||
- stream_select(), stream_set_blocking(), stream_set_timeout(), and
|
||||
stream_set_write_buffer() now work with user-space stream wrappers.
|
||||
|
||||
- getopt() accepts "long options" now on all platforms.
|
||||
Optional values and using = as a separator for short options are now
|
||||
supported.
|
||||
|
||||
|
||||
===================================
|
||||
4. Changes made to existing methods
|
||||
3. Changes made to existing methods
|
||||
===================================
|
||||
|
||||
-
|
||||
- The magic methods __get(), __set(), __isset(), __unset(), and __call() should
|
||||
always be public and can no longer be static. Method signatures are enforced.
|
||||
|
||||
- The __call() magic method is now invoked on access to private and protected
|
||||
methods.
|
||||
|
||||
- The __toString() magic method can no longer accept arguments.
|
||||
|
||||
- There is a new magic method, __callStatic().
|
||||
|
||||
- Internal count() vs. count_elements() handler resolution rules have changed.
|
||||
(This could potentially break custom PHP extensions.)
|
||||
|
||||
- The trailing / has been removed from SplFileInfo and other related directory
|
||||
classes.
|
||||
|
||||
- SplFileInfo::getpathinfo() now returns information about the path name.
|
||||
|
||||
- There are new parameters in:
|
||||
Exception::__construct(): $previous
|
||||
|
||||
===================================
|
||||
5. Changes made to existing classes
|
||||
4. Changes made to existing classes
|
||||
===================================
|
||||
|
||||
-
|
||||
- SplObjectStorage now has ArrayAccess support. It is also now possible to
|
||||
store associative information with objects in SplObjectStorage.
|
||||
|
||||
=============
|
||||
6. Deprecated
|
||||
5. Deprecated
|
||||
=============
|
||||
|
||||
-
|
||||
- define_syslog_variables() is deprecated.
|
||||
|
||||
==========
|
||||
7. Removed
|
||||
==========
|
||||
- set_socket_blocking() is deprecated.
|
||||
|
||||
a. removed features
|
||||
- call_user_method() and call_user_method_array() are now deprecated. Use
|
||||
call_user_func() and call_user_func_array() instead.
|
||||
|
||||
- register_globals
|
||||
- register_long_arrays
|
||||
- Safe mode
|
||||
- Session extension bug compatibility mode
|
||||
- y2k_compliance mode
|
||||
- dl() is deprecated.
|
||||
|
||||
b. removed ini directives
|
||||
- The set_magic_quotes_runtime() function is now deprecated.
|
||||
|
||||
- define_syslog_variables
|
||||
- register_globals
|
||||
- register_long_arrays
|
||||
- safe_mode
|
||||
- safe_mode_gid
|
||||
- safe_mode_include_dir
|
||||
- safe_mode_exec_dir
|
||||
- safe_mode_allowed_env_vars
|
||||
- safe_mode_protected_env_vars
|
||||
- session.bug_compat42
|
||||
- session.bug_compat_warn
|
||||
- y2k_compliance
|
||||
- mysql_listtables(), mysql_dropdb(), mysql_createdb(), mysql_list_tables(),
|
||||
mysql_drop_db(), and mysql_create_db() are now deprecated.
|
||||
|
||||
c. removed functions
|
||||
- All ereg functions are now deprecated and emit E_DEPRECATED errors:
|
||||
sql_regcase(), spliti(), split(), ereg_replace(), eregi(),
|
||||
ereg_replace(), and ereg().
|
||||
Use the PCRE family of functions (preg_*()) instead.
|
||||
|
||||
- define_syslog_variables()
|
||||
- import_request_variables()
|
||||
- session_is_registered()
|
||||
- session_register()
|
||||
- session_unregister()
|
||||
- mcrypt_generic_end() is deprecated.
|
||||
|
||||
=============
|
||||
8. Extensions
|
||||
=============
|
||||
- mysql_db_query() is deprecated.
|
||||
|
||||
- mysql_escape_string() is deprecated.
|
||||
|
||||
- session_register(), session_unregister(), and session_is_registered() are now
|
||||
deprecated. Use the $_SESSION superglobal array instead.
|
||||
|
||||
- Comments starting with '#' are now deprecated in .INI files.
|
||||
|
||||
- The following INI directives will now emit an E_DEPRECATED warning
|
||||
upon startup if they are activated:
|
||||
|
||||
- define_syslog_variables
|
||||
- register_globals
|
||||
- register_long_arrays
|
||||
- safe_mode
|
||||
- magic_quotes_gpc
|
||||
- magic_quotes_runtime
|
||||
- magic_quotes_sybase
|
||||
|
||||
- The is_dst parameter to mktime() is deprecated.
|
||||
|
||||
- Assigning the return value of "new" by reference is deprecated
|
||||
|
||||
- Call-time pass-by-reference has been deprecated
|
||||
|
||||
- Usage of {} to access string offsets is deprecated
|
||||
|
||||
- Passing locale category name as string to setlocale() is deprecated.
|
||||
|
||||
===============
|
||||
6. Undeprecated
|
||||
===============
|
||||
|
||||
- By popular request, is_a() is no longer deprecated.
|
||||
|
||||
==============
|
||||
7. Extensions:
|
||||
==============
|
||||
|
||||
a. moved out to PECL and actively maintained there
|
||||
|
||||
-
|
||||
- fdf
|
||||
- ming
|
||||
- ncurses
|
||||
|
||||
b. no longer maintained
|
||||
|
||||
-
|
||||
- dbase
|
||||
- fbsql
|
||||
- msql
|
||||
- sybase (use sybase_ct, which is still in PHP core)
|
||||
- mhash (hash has full BC layer)
|
||||
- mime_magic (use fileinfo, has full BC layer)
|
||||
|
||||
c. with changed behaviour
|
||||
|
||||
- The session extension now can hook into the file upload feature
|
||||
in order to provide upload progress information through session
|
||||
variables.
|
||||
- dns: dns_check_record() will now return an extra "entries" index,
|
||||
containing the TXT elements.
|
||||
|
||||
- datetime: date/time functions will no longer use the TZ environment
|
||||
variable to guess which timezone should be used.
|
||||
|
||||
- cURL now supports SSH
|
||||
|
||||
- hash: The SHA-224 and salsa hash algorithms are now supported.
|
||||
|
||||
- mbstring: Now supports CP850 encoding.
|
||||
|
||||
- oci8: Database Resident Connection Pooling (DRCP) and Fast Application
|
||||
Notification (FAN) are now supported.
|
||||
|
||||
Oracle External Authentication is now supported (except on Windows).
|
||||
|
||||
The oci8 function oci_bind_by_name() now supports SQLT_AFC (aka the
|
||||
CHAR datatype).
|
||||
|
||||
Calling oci_close() on a persistent connection, or when the variable
|
||||
that references a persistent connection goes out of scope, will now
|
||||
trigger a roll back of an uncommitted transaction. To avoid unexpected
|
||||
behavior explicitly issue a commit or roll back as needed. The old
|
||||
behavior can be enabled with the INI directive
|
||||
oci8.old_oci_close_semantics.
|
||||
|
||||
- openssl: OpenSSL digest and cipher functions are now supported.
|
||||
It is also now possible to access the internal values of DSA, RSA and
|
||||
DH keys.
|
||||
|
||||
- session: Sessions will no longer store session-files in "/tmp" when
|
||||
open_basedir restrictions apply, unless "/tmp" is explicitly added to
|
||||
the list of allowed paths.
|
||||
|
||||
- SOAP: Now supports sending user-supplied HTTP headers.
|
||||
|
||||
- MySQLi: Now supports persistent connections by prepending the hostname
|
||||
with "p:".
|
||||
|
||||
- imagepstext now rejects invalid antialiasing steps and raises a warning.
|
||||
|
||||
d. no longer possible to disable
|
||||
|
||||
-
|
||||
- PCRE
|
||||
- Reflection
|
||||
- SPL
|
||||
|
||||
==========================
|
||||
9. Changes in SAPI support
|
||||
8. Changes in SAPI support
|
||||
==========================
|
||||
|
||||
-
|
||||
- A new "litespeed" SAPI is now available.
|
||||
|
||||
=============================
|
||||
10. Changes in INI directives
|
||||
=============================
|
||||
- FastCGI is now always enabled and can not be disabled. See sapi/cgi/CHANGES
|
||||
for more details.
|
||||
|
||||
- A new CGI SAPI option, -T, can be used to measure execution time of a script
|
||||
repeated several times.
|
||||
|
||||
- CGI/FastCGI now has support for .htaccess style user-defined php.ini files.
|
||||
See the new user_ini.filename and user_ini.cache_ttl INI directives.
|
||||
|
||||
============================
|
||||
9. Changes in INI directives
|
||||
============================
|
||||
|
||||
- zend_extension_debug and zend_extension_ts have been removed. Always use the
|
||||
zend_extension directive to load Zend Extensions.
|
||||
|
||||
- zend.ze1_compatibility_mode has been removed. If this INI directive is set to
|
||||
on, then an E_ERROR is emitted at startup.
|
||||
|
||||
- There is now support for special sections: [PATH=/opt/httpd/www.example.com/]
|
||||
and [HOST=www.example.com]. Directives set in these sections cannot be
|
||||
overridden by user-defined INI files or at runtime.
|
||||
|
||||
- Added mbstring.http_output_conv_mimetype. This directive specifies the
|
||||
regex pattern of content types for which mb_output_handler() is activated.
|
||||
|
||||
- It is now possible to use the full path to load modules using the "extension"
|
||||
directive.
|
||||
|
||||
- "INI variables" can now be used almost anywhere in a php.ini file.
|
||||
|
||||
- It is now possible to use alphanumeric or variable indices in INI option
|
||||
arrays.
|
||||
|
||||
- open_basedir is now PHP_INI_ALL
|
||||
|
||||
- Runtime tightening of open_basedir restrictions is now possible.
|
||||
|
||||
- The default value of session.use_only_cookies has changed to "1".
|
||||
|
||||
- The default value of oci8.default_prefetch has been changed from 10 to 100.
|
||||
|
||||
- A new directive, request_order, controls the behavior of $_REQUEST
|
||||
independently of variables_order.
|
||||
|
||||
- New INI directives:
|
||||
- mail.add_x_header
|
||||
- user_ini.filename
|
||||
- user_ini.cache_ttl
|
||||
- exit_on_timeout
|
||||
- mysqli.allow_persistent
|
||||
- mysqli.default_host
|
||||
- mysqli.default_socket
|
||||
- mysqli.allow_local_infile
|
||||
- mysqli.cache_size
|
||||
- oci8.connection_class
|
||||
- oci8.events
|
||||
- pdo_mysql.default_socket
|
||||
- pdo_mysql.cache_size
|
||||
- sqlite3.extension_dir
|
||||
- mysql.default_socket
|
||||
- mysql.allow_local_infile
|
||||
- mysql.cache_size
|
||||
- mysqlnd.collect_statistics
|
||||
- mysqlnd.collect_memory_statistics
|
||||
- mysqlnd.net_cmd_buffer_size
|
||||
- mysqlnd.net_read_buffer_size
|
||||
- mysqlnd.log_mask
|
||||
|
||||
- Added session.upload_progress.enabled, session.upload_progress.cleanup,
|
||||
session.upload_progress.prefix, session.upload_progress.name,
|
||||
session.upload_progress.freq, session.upload_progress.min_freq.
|
||||
|
||||
====================
|
||||
11. Syntax additions
|
||||
10. Syntax additions
|
||||
====================
|
||||
|
||||
- Array dereferencing.
|
||||
e.g.
|
||||
foo()[0]
|
||||
$foo->bar()[0]
|
||||
- NOWDOC: Similar to HEREDOC, but with single quotes:
|
||||
|
||||
<<<'LABEL' ...
|
||||
|
||||
Static HEREDOCs can be used to initialize static variables and class members
|
||||
or constants:
|
||||
|
||||
static $foo = <<<LABEL
|
||||
No variables here...
|
||||
LABEL;
|
||||
|
||||
- HEREDOC now supports wrapping the identifier with double-quotes, to complement
|
||||
the NOWDOC syntax:
|
||||
|
||||
<<<"LABEL" ...
|
||||
|
||||
- The ?: operator has been introduced:
|
||||
|
||||
var_dump(0 ?: 'Hello!');
|
||||
|
||||
- Namespaces were added:
|
||||
|
||||
namespace my\name;
|
||||
$obj = new \my\name\MyClass;
|
||||
|
||||
- Dynamic access to static methods is now possible:
|
||||
|
||||
$foo::myFunc();
|
||||
|
||||
- Exceptions can now be nested:
|
||||
|
||||
class MyCustomException extends Exception {}
|
||||
try {
|
||||
throw new MyCustomException("Something happend", 112);
|
||||
} catch(Exception $e) {
|
||||
throw new InvalidArgumentException("You are doing it wrong!", 911, $e);
|
||||
}
|
||||
|
||||
- Exceptions can now be handled in destructors.
|
||||
|
||||
- A garbage collector has been added and is enabled by default.
|
||||
|
||||
===================
|
||||
12. Windows support
|
||||
11. Windows support
|
||||
===================
|
||||
|
||||
-
|
||||
- The minimum Windows version is now Windows 2000. (Windows 98, ME and NT4 are
|
||||
no longer supported).
|
||||
|
||||
- PHP Windows binaries target i586 or later. i386 and i486 are not supported.
|
||||
|
||||
- Support for the IIS SAPI has been dropped. Use the FastCGI SAPI instead
|
||||
(available for IIS5 and later)). FastCGI is the recommended way to use PHP
|
||||
with IIS (see http://php.iis.net/).
|
||||
|
||||
- A new build is available based on the latest Visual C++ Compiler (VC9).
|
||||
Its use is recommended with FastCGI or CLI. Apache's Windows binaries are not
|
||||
compatible with VC9; however, you can use Apache Lounge's build
|
||||
(http://apachelounge.com).
|
||||
|
||||
- The x64 binaries are for experimental usage only. They are not meant to be
|
||||
used in production.
|
||||
|
||||
- A new site is available to download Windows releases as well as Windows-only
|
||||
releases: http://windows.php.net. Windows-specific releases will be made to
|
||||
fix security issues in the bundled libraries (libpng, openssl, etc.). Please
|
||||
note that this site does not replace the main PHP site as a source of PHP
|
||||
news, resources, or documentation.
|
||||
|
||||
- Windows support has been added for the following functions: getopt(),
|
||||
imagecolorclosesthwb(), mcrypt_create_iv(), inet_ntop(), inet_pton(),
|
||||
getmxrr(), checkdnsrr(), dns_get_record(), linkinfo(), readlink(),
|
||||
symlink(), link(), fnmatch(), stream_socket_pair(), time_nanosleep(),
|
||||
time_sleep_until(), and socket_create_pair().
|
||||
|
||||
- Crypt supports now all available algorithms on Windows (blowfish included).
|
||||
|
||||
- Improved portability of stat(), touch(), filemtime(), filesize() and related
|
||||
functions (100% portable for the available data).
|
||||
|
||||
- It is now possible to create hard links on Windows using the link() function,
|
||||
and symbolic links using the symlink() function. Hard links are available
|
||||
as of Windows 2000 and symbolic links as of Windows Vista.
|
||||
|
||||
- The PDO_OCI php_pdo_oci8.dll library (for use with Oracle version 8 client
|
||||
libraries) is no longer being built. Instead, use php_pdo_oci.dll (note no
|
||||
'8') with Oracle 10 or 11 client libraries. Connection to other database
|
||||
versions is still supported.
|
||||
|
||||
- For the OCI8 extension, a new library php_oci8_11g.dll is available in
|
||||
addition to php_oci8.dll. Only one can be enabled at any time. Use
|
||||
php_oci8.dll with Oracle 10.2 client libraries. Use php_oci8_11g.dll with
|
||||
Oracle 11 client libraries. Connection to other database versions is still
|
||||
supported.
|
||||
|
||||
- Firebird and SNMP support are no longer available on Windows. Firebird support
|
||||
may be reintroduced in the future.
|
||||
|
||||
=====================
|
||||
11.1 New in PHP 5.3.4
|
||||
=====================
|
||||
|
||||
- open_basedir supports now symbolic links (checks the target).
|
||||
- is_link and SplFileInfo symbolic links related method are now fully supported
|
||||
(on Windows Vista or later).
|
||||
|
||||
===================
|
||||
13. New in PHP X.Y:
|
||||
12. New in PHP 5.3:
|
||||
===================
|
||||
|
||||
a. New libraries
|
||||
|
||||
-
|
||||
- mysqlnd is a new core library shipped with PHP. It is a PHP-specific
|
||||
replacement for libmysql and is recommended for all installations for
|
||||
increased performance.
|
||||
|
||||
b. New extensions
|
||||
|
||||
-
|
||||
- enchant
|
||||
- fileinfo (replaces mime_magic)
|
||||
- intl
|
||||
- Phar
|
||||
- SQLite3
|
||||
|
||||
c. New stream wrappers
|
||||
|
||||
-
|
||||
- glob:// stream wrapper
|
||||
- phar:// stream wrapper for accessing phar archives
|
||||
|
||||
d. New stream filters
|
||||
|
||||
-
|
||||
- "dechunk" (HTTP/1.1 chunked transfer encoding)
|
||||
- The bz2.decompress filter now supports concatenation
|
||||
|
||||
e. New functions
|
||||
|
||||
- Core:
|
||||
- Core: gc_collect_cycles()
|
||||
gc_enabled()
|
||||
gc_enable()
|
||||
gc_disable()
|
||||
class_alias()
|
||||
get_called_class()
|
||||
forward_static_call()
|
||||
forward_static_call_array()
|
||||
str_getcsv()
|
||||
quoted_printable_encode()
|
||||
lcfirst()
|
||||
- Array: array_replace()
|
||||
array_replace_recursive()
|
||||
- Date: date_add()
|
||||
date_sub()
|
||||
date_diff()
|
||||
date_parse_from_format()
|
||||
date_create_from_format()
|
||||
date_get_last_errors()
|
||||
timezone_version_get()
|
||||
- INI: parse_ini_string()
|
||||
- GMP: gmp_testbit()
|
||||
- Hash: hash_copy()
|
||||
- IMAP: imap_gc()
|
||||
imap_utf8_to_mutf7()
|
||||
imap_mutf7_to_utf8()
|
||||
- JSON: json_last_error()
|
||||
- libxml: libxml_disable_entity_loader
|
||||
- MySQLi: mysqli_fetch_all()
|
||||
mysqli_get_connection_stats()
|
||||
mysqli_poll()
|
||||
mysqli_reap_async_query()
|
||||
- Network: gethostname()
|
||||
header_remove()
|
||||
- OpenSSL: openssl_random_pseudo_bytes()
|
||||
- PCNTL: pcntl_signal_dispatch()
|
||||
pcntl_sigprocmask()
|
||||
pcntl_sigwaitinfo()
|
||||
pcntl_sigtimedwait()
|
||||
- PCRE: preg_filter()
|
||||
- SHM: msg_queue_exists()
|
||||
shm_has_var()
|
||||
- Streams: stream_supports_lock()
|
||||
stream_context_set_default()
|
||||
stream_context_get_params()
|
||||
- Userspace stream wrappers:
|
||||
stream_cast()
|
||||
stream_set_options()
|
||||
|
||||
f. New global constants
|
||||
|
||||
- Core:
|
||||
- get_declared_traits()
|
||||
- Core: E_DEPRECATED
|
||||
E_USER_DEPRECATED
|
||||
__DIR__
|
||||
__NAMESPACE__
|
||||
PHP_MAXPATHLEN
|
||||
PHP_WINDOWS_VERSION_MAJOR
|
||||
PHP_WINDOWS_VERSION_MINOR
|
||||
PHP_WINDOWS_VERSION_BUILD
|
||||
PHP_WINDOWS_VERSION_PLATFORM
|
||||
PHP_WINDOWS_VERSION_SP_MAJOR
|
||||
PHP_WINDOWS_VERSION_SP_MINOR
|
||||
PHP_WINDOWS_VERSION_SUITEMASK
|
||||
PHP_WINDOWS_VERSION_PRODUCTTYPE
|
||||
PHP_WINDOWS_NT_DOMAIN_CONTROLLER
|
||||
PHP_WINDOWS_NT_SERVER
|
||||
PHP_WINDOWS_NT_WORKSTATION
|
||||
- INI: INI_SCANNER_NORMAL
|
||||
INI_SCANNER_RAW
|
||||
- cURL CURLOPT_PROGRESSFUNCTION
|
||||
- GD: IMG_FILTER_PIXELATE
|
||||
- JSON: JSON_ERROR_NONE
|
||||
JSON_ERROR_DEPTH
|
||||
JSON_ERROR_STATE_MISMATCH
|
||||
JSON_ERROR_CTRL_CHAR
|
||||
JSON_ERROR_SYNTAX
|
||||
JSON_FORCE_OBJECT
|
||||
JSON_HEX_TAG
|
||||
JSON_HEX_AMP
|
||||
JSON_HEX_APOS
|
||||
JSON_HEX_QUOT
|
||||
- LDAP: LDAP_OPT_NETWORK_TIMEOUT
|
||||
- libxml: LIBXML_LOADED_VERSION
|
||||
- PCRE: PREG_BAD_UTF8_OFFSET_ERROR
|
||||
- PCNTL: SIG_BLOCK
|
||||
SIG_UNBLOCK
|
||||
SIG_SETMASK
|
||||
SI_USER
|
||||
SI_NOINFO
|
||||
SI_KERNEL
|
||||
SI_QUEUE
|
||||
SI_TIMER
|
||||
SI_MESGQ
|
||||
SI_ASYNCIO
|
||||
SI_SIGIO
|
||||
SI_TKILL
|
||||
CLD_EXITED
|
||||
CLD_KILLED
|
||||
CLD_DUMPED
|
||||
CLD_TRAPPED
|
||||
CLD_STOPPED
|
||||
CLD_CONTINUED
|
||||
TRAP_BRKPT
|
||||
TRAP_TRACE
|
||||
POLL_IN
|
||||
POLL_OUT
|
||||
POLL_MSG
|
||||
POLL_ERR
|
||||
POLL_PRI
|
||||
POLL_HUP
|
||||
ILL_ILLOPC
|
||||
ILL_ILLOPN
|
||||
ILL_ILLADR
|
||||
ILL_ILLTRP
|
||||
ILL_PRVOPC
|
||||
ILL_PRVREG
|
||||
ILL_COPROC
|
||||
ILL_BADSTK
|
||||
FPE_INTDIV
|
||||
FPE_INTOVF
|
||||
FPE_FLTDIV
|
||||
FPE_FLTOVF
|
||||
FPE_FLTUND
|
||||
FPE_FLTRES
|
||||
FPE_FLTINV
|
||||
FPE_FLTSUB
|
||||
SEGV_MAPERR
|
||||
SEGV_ACCERR
|
||||
BUS_ADRALN
|
||||
BUS_ADRERR
|
||||
BUS_OBJERR
|
||||
|
||||
g. New classes
|
||||
|
||||
- Reflection:
|
||||
- ReflectionZendExtension
|
||||
- Date: DateInterval
|
||||
DatePeriod
|
||||
- Phar: Phar
|
||||
PharData
|
||||
PharFileInfo
|
||||
PharException
|
||||
- SPL SplDoublyLinkedList
|
||||
SplStack
|
||||
SplQueue
|
||||
SplHeap
|
||||
SplMinHeap
|
||||
SplMaxHeap
|
||||
SplPriorityQueue
|
||||
SplFixedArray
|
||||
FilesystemIterator
|
||||
GlobIterator
|
||||
RecursiveTreeIterator
|
||||
MultipleIterator
|
||||
|
||||
h. New methods
|
||||
|
||||
- Reflection:
|
||||
- ReflectionClass::isCloneable()
|
||||
- ReflectionClass::getTraits()
|
||||
- ReflectionClass::getTraitNames()
|
||||
- ReflectionClass::getTraitAliases()
|
||||
- Date: DateTime::diff()
|
||||
DateTime::add()
|
||||
DateTime::sub()
|
||||
DateTime::createFromFormat()
|
||||
DateTime::getLastErrors()
|
||||
- DOM: DOMNode::getLineNo()
|
||||
- Exception: Exception::getPrevious()
|
||||
- PDO_Firebird: PDO::setAttribute()
|
||||
- Reflection: ReflectionProperty::setAccessible()
|
||||
ReflectionFunction::inNamespace()
|
||||
ReflectionFunction::getNamespaceName()
|
||||
ReflectionFunction::getShortName()
|
||||
ReflectionClass::inNamespace()
|
||||
ReflectionClass::getNamespaceName()
|
||||
ReflectionClass::getShortName()
|
||||
- SPL SplObjectStorage::addAll()
|
||||
SplObjectStorage::removeAll()
|
||||
- XSL: XSLTProcessor::setProfiling()
|
||||
|
||||
i. New class constants
|
||||
|
||||
-
|
||||
|
||||
j. New Hash algorithms
|
||||
|
||||
- fnv132
|
||||
- fnv164
|
||||
- joaat
|
||||
- PDO_Firebird: PDO::FB_ATTR_DATE_FORMAT
|
||||
PDO::FB_ATTR_TIME_FORMAT
|
||||
PDO::FB_ATTR_TIMESTAMP_FORMAT
|
||||
@@ -0,0 +1,23 @@
|
||||
$Id$
|
||||
|
||||
UPGRADE NOTES - PHP 5.3.4
|
||||
|
||||
1. Internal API changes
|
||||
|
||||
========================
|
||||
1. Internal API changes
|
||||
========================
|
||||
|
||||
a. stat/lstat support
|
||||
|
||||
lstat is now available on all platforms. On unix-like platform
|
||||
php_sys_lstat is an alias to lstat (when avaible). On Windows it is now
|
||||
available using php_sys_lstat. php_sys_stat and php_sys_lstat usage is recommended
|
||||
instead of calling lstat directly, to ensure portability.
|
||||
|
||||
b. readlink support
|
||||
|
||||
readlink is now available on all platforms. On unix-like platform
|
||||
php_sys_readlink is an alias to readlink (when avaible). On Windows it is now
|
||||
available using php_sys_readlink. php_sys_readlink usage is recommended
|
||||
instead of calling readlink directly, to ensure portability.
|
||||
+5
-6
@@ -17,7 +17,7 @@ libZend_la_SOURCES=\
|
||||
zend_objects_API.c zend_ts_hash.c zend_stream.c \
|
||||
zend_default_classes.c \
|
||||
zend_iterators.c zend_interfaces.c zend_exceptions.c \
|
||||
zend_strtod.c zend_closures.c zend_float.c zend_string.c
|
||||
zend_strtod.c zend_closures.c zend_float.c
|
||||
|
||||
libZend_la_LDFLAGS =
|
||||
libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
|
||||
@@ -31,20 +31,19 @@ zend_ini_scanner.lo: zend_ini_parser.h
|
||||
# Language parser/scanner rules
|
||||
|
||||
zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
|
||||
$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_language_scanner_defs.h -o$@ $(srcdir)/zend_language_scanner.l
|
||||
$(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt $(srcdir)/zend_language_scanner_defs.h -o$@ $(srcdir)/zend_language_scanner.l
|
||||
|
||||
zend_language_parser.h: zend_language_parser.c
|
||||
zend_language_parser.c: $(srcdir)/zend_language_parser.y
|
||||
$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_language_parser.y || test $$? -eq 2
|
||||
|
||||
$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o zend_language_parser.c
|
||||
|
||||
# INI parser/scanner rules
|
||||
|
||||
zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
|
||||
$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_ini_parser.y
|
||||
$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o zend_ini_parser.c
|
||||
|
||||
zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
|
||||
$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_ini_scanner_defs.h -o$@ $(srcdir)/zend_ini_scanner.l
|
||||
$(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt $(srcdir)/zend_ini_scanner_defs.h -o$@ $(srcdir)/zend_ini_scanner.l
|
||||
|
||||
zend_ini_parser.h: zend_ini_parser.c
|
||||
|
||||
|
||||
@@ -243,10 +243,6 @@ SOURCE=.\zend_stream.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_string.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_strtod.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
@@ -415,10 +411,6 @@ SOURCE=.\zend_stream.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_string.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_strtod.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
@@ -419,11 +419,4 @@ if test -r "/dev/urandom" && test -c "/dev/urandom"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_CHECKING(whether /dev/arandom exists)
|
||||
if test -r "/dev/arandom" && test -c "/dev/arandom"; then
|
||||
AC_DEFINE([HAVE_DEV_ARANDOM], 1, [Define if the target system has /dev/arandom device])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
fi
|
||||
@@ -273,10 +273,6 @@ SOURCE=.\zend_stream.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_string.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_strtod.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
@@ -449,10 +445,6 @@ SOURCE=.\zend_stream.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_string.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\zend_strtod.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
@@ -2,6 +2,39 @@ dnl $Id$
|
||||
dnl
|
||||
dnl This file contains local autoconf functions.
|
||||
|
||||
AC_DEFUN([LIBZEND_BISON_CHECK],[
|
||||
# we only support certain bison versions
|
||||
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3"
|
||||
|
||||
# for standalone build of Zend Engine
|
||||
test -z "$SED" && SED=sed
|
||||
|
||||
bison_version=none
|
||||
if test "$YACC"; then
|
||||
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
|
||||
bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
|
||||
php_cv_bison_version=invalid
|
||||
if test -n "$bison_version_vars"; then
|
||||
set $bison_version_vars
|
||||
bison_version="${1}.${2}"
|
||||
for bison_check_version in $bison_version_list; do
|
||||
if test "$bison_version" = "$bison_check_version"; then
|
||||
php_cv_bison_version="$bison_check_version (ok)"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
])
|
||||
fi
|
||||
case $php_cv_bison_version in
|
||||
""|invalid[)]
|
||||
bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
|
||||
AC_MSG_WARN([$bison_msg])
|
||||
YACC="exit 0;"
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
AC_DEFUN([ZEND_FP_EXCEPT],[
|
||||
AC_CACHE_CHECK(whether fp_except is defined, ac_cv_type_fp_except,[
|
||||
AC_TRY_COMPILE([
|
||||
|
||||
@@ -3,6 +3,7 @@ if (function_exists("date_default_timezone_set")) {
|
||||
date_default_timezone_set("UTC");
|
||||
}
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
function simple() {
|
||||
$a = 0;
|
||||
for ($i = 0; $i < 1000000; $i++)
|
||||
|
||||
@@ -1,285 +0,0 @@
|
||||
<?php
|
||||
|
||||
function hallo() {
|
||||
}
|
||||
|
||||
function simpleucall($n) {
|
||||
for ($i = 0; $i < $n; $i++)
|
||||
hallo();
|
||||
}
|
||||
|
||||
function simpleudcall($n) {
|
||||
for ($i = 0; $i < $n; $i++)
|
||||
hallo2();
|
||||
}
|
||||
|
||||
function hallo2() {
|
||||
}
|
||||
|
||||
function simpleicall($n) {
|
||||
for ($i = 0; $i < $n; $i++)
|
||||
func_num_args();
|
||||
}
|
||||
|
||||
class Foo {
|
||||
static $a = 0;
|
||||
public $b = 0;
|
||||
const TEST = 0;
|
||||
|
||||
static function read_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = self::$a;
|
||||
}
|
||||
}
|
||||
|
||||
static function write_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
self::$a = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static function isset_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = isset(self::$a);
|
||||
}
|
||||
}
|
||||
|
||||
static function empty_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = empty(self::$a);
|
||||
}
|
||||
}
|
||||
|
||||
static function f() {
|
||||
}
|
||||
|
||||
static function call_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
self::f();
|
||||
}
|
||||
}
|
||||
|
||||
function read_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = $this->b;
|
||||
}
|
||||
}
|
||||
|
||||
function write_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$this->b = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function assign_add_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$this->b += 2;
|
||||
}
|
||||
}
|
||||
|
||||
function pre_inc_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
++$this->b;
|
||||
}
|
||||
}
|
||||
|
||||
function pre_dec_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
--$this->b;
|
||||
}
|
||||
}
|
||||
|
||||
function post_inc_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$this->b++;
|
||||
}
|
||||
}
|
||||
|
||||
function post_dec_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$this->b--;
|
||||
}
|
||||
}
|
||||
|
||||
function isset_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = isset($this->b);
|
||||
}
|
||||
}
|
||||
|
||||
function empty_prop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = empty($this->b);
|
||||
}
|
||||
}
|
||||
|
||||
function g() {
|
||||
}
|
||||
|
||||
function call($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$this->g();
|
||||
}
|
||||
}
|
||||
|
||||
function read_const($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = $this::TEST;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function read_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = Foo::$a;
|
||||
}
|
||||
}
|
||||
|
||||
function write_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
Foo::$a = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function isset_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = isset(Foo::$a);
|
||||
}
|
||||
}
|
||||
|
||||
function empty_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = empty(Foo::$a);
|
||||
}
|
||||
}
|
||||
|
||||
function call_static($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
Foo::f();
|
||||
}
|
||||
}
|
||||
|
||||
function create_object($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = new Foo();
|
||||
}
|
||||
}
|
||||
|
||||
define('TEST', null);
|
||||
|
||||
function read_const($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
$x = TEST;
|
||||
}
|
||||
}
|
||||
|
||||
/*****/
|
||||
|
||||
function empty_loop($n) {
|
||||
for ($i = 0; $i < $n; ++$i) {
|
||||
}
|
||||
}
|
||||
|
||||
function getmicrotime()
|
||||
{
|
||||
$t = gettimeofday();
|
||||
return ($t['sec'] + $t['usec'] / 1000000);
|
||||
}
|
||||
|
||||
function start_test()
|
||||
{
|
||||
ob_start();
|
||||
return getmicrotime();
|
||||
}
|
||||
|
||||
function end_test($start, $name, $overhead = null)
|
||||
{
|
||||
global $total;
|
||||
global $last_time;
|
||||
$end = getmicrotime();
|
||||
ob_end_clean();
|
||||
$last_time = $end-$start;
|
||||
$total += $last_time;
|
||||
$num = number_format($last_time,3);
|
||||
$pad = str_repeat(" ", 24-strlen($name)-strlen($num));
|
||||
if (is_null($overhead)) {
|
||||
echo $name.$pad.$num."\n";
|
||||
} else {
|
||||
$num2 = number_format($last_time - $overhead,3);
|
||||
echo $name.$pad.$num." ".$num2."\n";
|
||||
}
|
||||
ob_start();
|
||||
return getmicrotime();
|
||||
}
|
||||
|
||||
function total()
|
||||
{
|
||||
global $total;
|
||||
$pad = str_repeat("-", 24);
|
||||
echo $pad."\n";
|
||||
$num = number_format($total,3);
|
||||
$pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
|
||||
echo "Total".$pad.$num."\n";
|
||||
}
|
||||
|
||||
const N = 5000000;
|
||||
|
||||
$t0 = $t = start_test();
|
||||
empty_loop(N);
|
||||
$t = end_test($t, 'empty_loop');
|
||||
$overhead = $last_time;
|
||||
simpleucall(N);
|
||||
$t = end_test($t, 'func()', $overhead);
|
||||
simpleudcall(N);
|
||||
$t = end_test($t, 'undef_func()', $overhead);
|
||||
simpleicall(N);
|
||||
$t = end_test($t, 'int_func()', $overhead);
|
||||
Foo::read_static(N);
|
||||
$t = end_test($t, '$x = self::$x', $overhead);
|
||||
Foo::write_static(N);
|
||||
$t = end_test($t, 'self::$x = 0', $overhead);
|
||||
Foo::isset_static(N);
|
||||
$t = end_test($t, 'isset(self::$x)', $overhead);
|
||||
Foo::empty_static(N);
|
||||
$t = end_test($t, 'empty(self::$x)', $overhead);
|
||||
read_static(N);
|
||||
$t = end_test($t, '$x = Foo::$x', $overhead);
|
||||
write_static(N);
|
||||
$t = end_test($t, 'Foo::$x = 0', $overhead);
|
||||
isset_static(N);
|
||||
$t = end_test($t, 'isset(Foo::$x)', $overhead);
|
||||
empty_static(N);
|
||||
$t = end_test($t, 'empty(Foo::$x)', $overhead);
|
||||
Foo::call_static(N);
|
||||
$t = end_test($t, 'self::f()', $overhead);
|
||||
call_static(N);
|
||||
$t = end_test($t, 'Foo::f()', $overhead);
|
||||
$x = new Foo();
|
||||
$x->read_prop(N);
|
||||
$t = end_test($t, '$x = $this->x', $overhead);
|
||||
$x->write_prop(N);
|
||||
$t = end_test($t, '$this->x = 0', $overhead);
|
||||
$x->assign_add_prop(N);
|
||||
$t = end_test($t, '$this->x += 2', $overhead);
|
||||
$x->pre_inc_prop(N);
|
||||
$t = end_test($t, '++$this->x', $overhead);
|
||||
$x->pre_dec_prop(N);
|
||||
$t = end_test($t, '--$this->x', $overhead);
|
||||
$x->post_inc_prop(N);
|
||||
$t = end_test($t, '$this->x++', $overhead);
|
||||
$x->post_dec_prop(N);
|
||||
$t = end_test($t, '$this->x--', $overhead);
|
||||
$x->isset_prop(N);
|
||||
$t = end_test($t, 'isset($this->x)', $overhead);
|
||||
$x->empty_prop(N);
|
||||
$t = end_test($t, 'empty($this->x)', $overhead);
|
||||
$x->call(N);
|
||||
$t = end_test($t, '$this->f()', $overhead);
|
||||
$x->read_const(N);
|
||||
$t = end_test($t, '$x = Foo::TEST', $overhead);
|
||||
create_object(N);
|
||||
$t = end_test($t, 'new Foo()', $overhead);
|
||||
read_const(N);
|
||||
$t = end_test($t, '$x = TEST', $overhead);
|
||||
total($t0, "Total");
|
||||
@@ -12,4 +12,4 @@ foo(123);
|
||||
--EXPECTF--
|
||||
3
|
||||
|
||||
Catchable fatal error: Argument 1 passed to foo() must be of the type array, integer given, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2
|
||||
Catchable fatal error: Argument 1 passed to foo() must be an array, integer given, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2
|
||||
@@ -4,6 +4,7 @@ Bug #35655 (whitespace following end of heredoc is lost)
|
||||
highlight.string = #DD0000
|
||||
highlight.comment = #FF8000
|
||||
highlight.keyword = #007700
|
||||
highlight.bg = #FFFFFF
|
||||
highlight.default = #0000BB
|
||||
highlight.html = #000000
|
||||
--FILE--
|
||||
|
||||
@@ -4,6 +4,7 @@ Bug #42767 (highlight_string() truncates trailing comments)
|
||||
highlight.string = #DD0000
|
||||
highlight.comment = #FF8000
|
||||
highlight.keyword = #007700
|
||||
highlight.bg = #FFFFFF
|
||||
highlight.default = #0000BB
|
||||
highlight.html = #000000
|
||||
--FILE--
|
||||
|
||||
@@ -43,11 +43,11 @@ __call:
|
||||
string(3) "ABC"
|
||||
__call:
|
||||
string(3) "ABC"
|
||||
__callstatic:
|
||||
__call:
|
||||
string(3) "XYZ"
|
||||
__callstatic:
|
||||
__call:
|
||||
string(3) "WWW"
|
||||
__callstatic:
|
||||
__call:
|
||||
string(3) "ABC"
|
||||
__callstatic:
|
||||
string(1) "A"
|
||||
@@ -58,4 +58,4 @@ string(1) "C"
|
||||
__callstatic:
|
||||
string(3) "FOO"
|
||||
__callstatic:
|
||||
string(3) "FOO"
|
||||
string(3) "FOO"
|
||||
@@ -35,17 +35,17 @@ call_user_func('self::y');
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
__callstatic:
|
||||
__call:
|
||||
string(3) "ABC"
|
||||
__callstatic:
|
||||
__call:
|
||||
string(3) "ABC"
|
||||
__call:
|
||||
string(3) "xyz"
|
||||
__callstatic:
|
||||
__call:
|
||||
string(3) "www"
|
||||
__call:
|
||||
string(1) "y"
|
||||
__callstatic:
|
||||
__call:
|
||||
string(1) "y"
|
||||
ok
|
||||
__callstatic:
|
||||
|
||||
@@ -27,6 +27,6 @@ $foo->start();
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
static
|
||||
static
|
||||
static
|
||||
instance
|
||||
instance
|
||||
instance
|
||||
@@ -1,18 +0,0 @@
|
||||
--TEST--
|
||||
Bug #51421 (Abstract __construct constructor argument list not enforced)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class ExampleClass {}
|
||||
|
||||
abstract class TestInterface {
|
||||
abstract public function __construct(ExampleClass $var);
|
||||
}
|
||||
|
||||
class Test extends TestInterface {
|
||||
public function __construct() {}
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Declaration of Test::__construct() must be compatible with that of TestInterface::__construct() in %s on line %d
|
||||
@@ -13,13 +13,12 @@ foo()->a->b++;
|
||||
foo()->a += 2;
|
||||
foo()->a->b += 2;
|
||||
|
||||
foo()[0] = 1;
|
||||
foo()[0][0] = 2;
|
||||
foo()[0]++;
|
||||
foo()[0][0]++;
|
||||
foo()[0] += 2;
|
||||
foo()[0][0] += 2;
|
||||
|
||||
//foo()[0] = 1;
|
||||
//foo()[0][0] = 2;
|
||||
//foo()[0]++;
|
||||
//foo()[0][0]++;
|
||||
//foo()[0] += 2;
|
||||
//foo()[0][0] += 2;
|
||||
var_dump(foo());
|
||||
?>
|
||||
--EXPECTF--
|
||||
@@ -47,29 +46,5 @@ Notice: Undefined variable: x in %sbug52041.php on line 3
|
||||
|
||||
Strict Standards: Creating default object from empty value in %sbug52041.php on line 11
|
||||
|
||||
Notice: Undefined variable: x in %sbug52041.php on line 3
|
||||
|
||||
Notice: Undefined variable: x in %sbug52041.php on line 3
|
||||
|
||||
Notice: Undefined variable: x in %stests/bug52041.php on line 3
|
||||
|
||||
Notice: Undefined offset: 0 in %sbug52041.php on line 15
|
||||
|
||||
Notice: Undefined variable: x in %sbug52041.php on line 3
|
||||
|
||||
Notice: Undefined offset: 0 in %sbug52041.php on line 16
|
||||
|
||||
Notice: Undefined offset: 0 in %sbug52041.php on line 16
|
||||
|
||||
Notice: Undefined variable: x in %sbug52041.php on line 3
|
||||
|
||||
Notice: Undefined offset: 0 in %sbug52041.php on line 17
|
||||
|
||||
Notice: Undefined variable: x in %sbug52041.php on line 3
|
||||
|
||||
Notice: Undefined offset: 0 in %sbug52041.php on line 18
|
||||
|
||||
Notice: Undefined offset: 0 in %sbug52041.php on line 18
|
||||
|
||||
Notice: Undefined variable: x in %sbug52041.php on line 3
|
||||
NULL
|
||||
@@ -7,6 +7,5 @@ preg_match('//', '', $data->info);
|
||||
var_dump($data);
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
||||
Warning: Attempt to modify property of non-object in %sbug52237.php on line 3
|
||||
string(4) "test"
|
||||
@@ -0,0 +1,35 @@
|
||||
--TEST--
|
||||
Bug #52361 (Throwing an exception in a destructor causes invalid catching)
|
||||
--FILE--
|
||||
<?php
|
||||
class aaa {
|
||||
public function __destruct() {
|
||||
try {
|
||||
throw new Exception(__CLASS__);
|
||||
} catch(Exception $ex) {
|
||||
echo "1. $ex\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
function bbb() {
|
||||
$a = new aaa();
|
||||
throw new Exception(__FUNCTION__);
|
||||
}
|
||||
try {
|
||||
bbb();
|
||||
echo "must be skipped !!!";
|
||||
} catch(Exception $ex) {
|
||||
echo "2. $ex\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
1. exception 'Exception' with message 'aaa' in %sbug52361.php:5
|
||||
Stack trace:
|
||||
#0 %sbug52361.php(16): aaa->__destruct()
|
||||
#1 %sbug52361.php(16): bbb()
|
||||
#2 {main}
|
||||
2. exception 'Exception' with message 'bbb' in %sbug52361.php:13
|
||||
Stack trace:
|
||||
#0 %sbug52361.php(16): bbb()
|
||||
#1 {main}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
Bug #52484 (__set() ignores setting properties with empty names)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class A {
|
||||
function __unset($prop) {
|
||||
unset($this->$prop);
|
||||
}
|
||||
}
|
||||
|
||||
$a = new A();
|
||||
$prop = null;
|
||||
|
||||
unset($a->$prop);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Cannot access empty property in %s on line %d
|
||||
@@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
Bug #52484.2 (__set() ignores setting properties with empty names)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class A {
|
||||
function __set($prop, $val) {
|
||||
$this->$prop = $val;
|
||||
}
|
||||
}
|
||||
|
||||
$a = new A();
|
||||
$prop = null;
|
||||
|
||||
$a->$prop = 2;
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Cannot access empty property in %s on line %d
|
||||
@@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
Bug #52484.3 (__set() ignores setting properties with empty names)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class A {
|
||||
function __get($prop) {
|
||||
var_dump($this->$prop);
|
||||
}
|
||||
}
|
||||
|
||||
$a = new A();
|
||||
$prop = null;
|
||||
|
||||
var_dump($a->$prop);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Cannot access empty property in %s on line %d
|
||||
@@ -0,0 +1,20 @@
|
||||
--TEST--
|
||||
Bug #52508 (newline problem with parse_ini_file+INI_SCANNER_RAW)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$file = dirname(__FILE__) .'/bug52508.ini';
|
||||
|
||||
file_put_contents($file, "a = 1");
|
||||
|
||||
$ini_array = parse_ini_file($file, true, INI_SCANNER_RAW);
|
||||
var_dump($ini_array);
|
||||
|
||||
unlink($file);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
array(1) {
|
||||
["a"]=>
|
||||
string(1) "1"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
--TEST--
|
||||
Bug #52879 (Objects unreferenced in __get, __set, __isset or __unset can be freed too early)
|
||||
--FILE--
|
||||
<?php
|
||||
class MyClass {
|
||||
public $myRef;
|
||||
public function __set($property,$value) {
|
||||
$this->myRef = $value;
|
||||
}
|
||||
}
|
||||
$myGlobal=new MyClass($myGlobal);
|
||||
$myGlobal->myRef=&$myGlobal;
|
||||
$myGlobal->myNonExistentProperty="ok\n";
|
||||
echo $myGlobal;
|
||||
--EXPECT--
|
||||
ok
|
||||
@@ -0,0 +1,40 @@
|
||||
--TEST--
|
||||
Bug #52939 (zend_call_function_array does not respect ZEND_SEND_PREFER_REF)
|
||||
--FILE--
|
||||
<?php
|
||||
$ar1 = array("row1" => 2, "row2" => 1);
|
||||
var_dump(array_multisort($ar1));
|
||||
var_dump($ar1);
|
||||
|
||||
$ar1 = array("row1" => 2, "row2" => 1);
|
||||
$args = array(&$ar1);
|
||||
var_dump(call_user_func_array("array_multisort", $args));
|
||||
var_dump($ar1);
|
||||
|
||||
$ar1 = array("row1" => 2, "row2" => 1);
|
||||
$args = array($ar1);
|
||||
var_dump(call_user_func_array("array_multisort", $args));
|
||||
var_dump($ar1);
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
array(2) {
|
||||
["row2"]=>
|
||||
int(1)
|
||||
["row1"]=>
|
||||
int(2)
|
||||
}
|
||||
bool(true)
|
||||
array(2) {
|
||||
["row2"]=>
|
||||
int(1)
|
||||
["row1"]=>
|
||||
int(2)
|
||||
}
|
||||
bool(true)
|
||||
array(2) {
|
||||
["row1"]=>
|
||||
int(2)
|
||||
["row2"]=>
|
||||
int(1)
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
Bug #53305 (E_NOTICE when defining a constant starts with __COMPILER_HALT_OFFSET__)
|
||||
--FILE--
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
|
||||
define('__COMPILER_HALT_OFFSET__1', 1);
|
||||
define('__COMPILER_HALT_OFFSET__2', 2);
|
||||
define('__COMPILER_HALT_OFFSET__', 3);
|
||||
define('__COMPILER_HALT_OFFSET__1'.chr(0), 4);
|
||||
|
||||
var_dump(__COMPILER_HALT_OFFSET__1);
|
||||
var_dump(constant('__COMPILER_HALT_OFFSET__1'.chr(0)));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Notice: Constant __COMPILER_HALT_OFFSET__ already defined in %s on line %d
|
||||
int(1)
|
||||
int(4)
|
||||
@@ -0,0 +1,10 @@
|
||||
--TEST--
|
||||
zend_strtod() hangs with 2.2250738585072011e-308
|
||||
--FILE--
|
||||
<?php
|
||||
$d = 2.2250738585072011e-308;
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Done
|
||||
@@ -28,9 +28,9 @@ foo::BAZ();
|
||||
--EXPECT--
|
||||
nonstatic
|
||||
string(6) "fOoBaR"
|
||||
static
|
||||
nonstatic
|
||||
string(6) "foOBAr"
|
||||
static
|
||||
nonstatic
|
||||
string(6) "fOOBAr"
|
||||
static
|
||||
string(3) "bAr"
|
||||
|
||||
@@ -30,5 +30,5 @@ a::Foo();
|
||||
--EXPECT--
|
||||
__callstatic: Test
|
||||
__call: Test
|
||||
__callstatic: Bar
|
||||
__call: Bar
|
||||
__callstatic: Foo
|
||||
@@ -1,74 +0,0 @@
|
||||
--TEST--
|
||||
Closure 005: Lambda inside class, lifetime of $this
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class A {
|
||||
private $x;
|
||||
|
||||
function __construct($x) {
|
||||
$this->x = $x;
|
||||
}
|
||||
|
||||
function __destruct() {
|
||||
echo "Destroyed\n";
|
||||
}
|
||||
|
||||
function getIncer($val) {
|
||||
return function() use ($val) {
|
||||
$this->x += $val;
|
||||
};
|
||||
}
|
||||
|
||||
function getPrinter() {
|
||||
return function() {
|
||||
echo $this->x."\n";
|
||||
};
|
||||
}
|
||||
|
||||
function getError() {
|
||||
return static function() {
|
||||
echo $this->x."\n";
|
||||
};
|
||||
}
|
||||
|
||||
function printX() {
|
||||
echo $this->x."\n";
|
||||
}
|
||||
}
|
||||
|
||||
$a = new A(3);
|
||||
$incer = $a->getIncer(2);
|
||||
$printer = $a->getPrinter();
|
||||
$error = $a->getError();
|
||||
|
||||
$a->printX();
|
||||
$printer();
|
||||
$incer();
|
||||
$a->printX();
|
||||
$printer();
|
||||
|
||||
unset($a);
|
||||
|
||||
$incer();
|
||||
$printer();
|
||||
|
||||
unset($incer);
|
||||
$printer();
|
||||
|
||||
unset($printer);
|
||||
|
||||
$error();
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
3
|
||||
3
|
||||
5
|
||||
5
|
||||
7
|
||||
7
|
||||
Destroyed
|
||||
|
||||
Fatal error: Using $this when not in object context in %sclosure_005.php on line 28
|
||||
@@ -1,38 +0,0 @@
|
||||
--TEST--
|
||||
Closure 007: Nested lambdas in classes
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class A {
|
||||
private $x = 0;
|
||||
|
||||
function getClosureGetter () {
|
||||
return function () {
|
||||
return function () {
|
||||
$this->x++;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
function printX () {
|
||||
echo $this->x."\n";
|
||||
}
|
||||
}
|
||||
|
||||
$a = new A;
|
||||
$a->printX();
|
||||
$getClosure = $a->getClosureGetter();
|
||||
$a->printX();
|
||||
$closure = $getClosure();
|
||||
$a->printX();
|
||||
$closure();
|
||||
$a->printX();
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
0
|
||||
0
|
||||
0
|
||||
1
|
||||
Done
|
||||
@@ -23,18 +23,16 @@ var_dump($y()->test);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(foo)#%d (2) {
|
||||
object(foo)#%d (%d) {
|
||||
["test":"foo":private]=>
|
||||
int(3)
|
||||
["a"]=>
|
||||
object(Closure)#%d (2) {
|
||||
object(Closure)#%d (1) {
|
||||
["static"]=>
|
||||
array(1) {
|
||||
["a"]=>
|
||||
*RECURSION*
|
||||
}
|
||||
["this"]=>
|
||||
*RECURSION*
|
||||
}
|
||||
}
|
||||
bool(true)
|
||||
|
||||
@@ -1,26 +1,16 @@
|
||||
--TEST--
|
||||
Closure 024: Clone the Closure object
|
||||
Closure 024: Trying to clone the Closure object
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$a = 1;
|
||||
$c = function($add) use(&$a) { return $a+$add; };
|
||||
$a = function () {
|
||||
return clone function () {
|
||||
return 1;
|
||||
};
|
||||
};
|
||||
|
||||
$cc = clone $c;
|
||||
$a();
|
||||
|
||||
echo $c(10)."\n";
|
||||
echo $cc(10)."\n";
|
||||
|
||||
$a++;
|
||||
|
||||
echo $c(10)."\n";
|
||||
echo $cc(10)."\n";
|
||||
|
||||
echo "Done.\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
11
|
||||
11
|
||||
12
|
||||
12
|
||||
Done.
|
||||
Fatal error: Trying to clone an uncloneable object of class Closure in %s on line %d
|
||||
@@ -32,9 +32,7 @@ object(foo)#%d (1) {
|
||||
["a"]=>
|
||||
array(1) {
|
||||
[0]=>
|
||||
object(Closure)#%d (1) {
|
||||
["this"]=>
|
||||
*RECURSION*
|
||||
object(Closure)#%d (0) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -43,12 +41,7 @@ int(1)
|
||||
string(1) "a"
|
||||
array(1) {
|
||||
[0]=>
|
||||
object(Closure)#%d (1) {
|
||||
["this"]=>
|
||||
object(foo)#%d (1) {
|
||||
["a"]=>
|
||||
*RECURSION*
|
||||
}
|
||||
object(Closure)#%d (0) {
|
||||
}
|
||||
}
|
||||
int(1)
|
||||
@@ -1,33 +0,0 @@
|
||||
--TEST--
|
||||
Closure 036: Rebinding closures
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class A {
|
||||
private $x;
|
||||
|
||||
public function __construct($v) {
|
||||
$this->x = $v;
|
||||
}
|
||||
|
||||
public function getIncrementor() {
|
||||
return function() { return ++$this->x; };
|
||||
}
|
||||
}
|
||||
|
||||
$a = new A(0);
|
||||
$b = new A(10);
|
||||
|
||||
$ca = $a->getIncrementor();
|
||||
$cb = $ca->bindTo($b);
|
||||
$cb2 = Closure::bind($b, $ca);
|
||||
|
||||
var_dump($ca());
|
||||
var_dump($cb());
|
||||
var_dump($cb2());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(1)
|
||||
int(11)
|
||||
int(12)
|
||||
@@ -1,47 +0,0 @@
|
||||
--TEST--
|
||||
Closure 037: self:: and static:: within closures
|
||||
--FILE--
|
||||
<?php
|
||||
class A {
|
||||
private $x = 0;
|
||||
|
||||
function getClosure () {
|
||||
return function () {
|
||||
$this->x++;
|
||||
self::printX();
|
||||
self::print42();
|
||||
static::print42();
|
||||
};
|
||||
}
|
||||
|
||||
function printX () {
|
||||
echo $this->x."\n";
|
||||
}
|
||||
|
||||
function print42() {
|
||||
echo "42\n";
|
||||
}
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
function print42() {
|
||||
echo "forty two\n";
|
||||
}
|
||||
}
|
||||
|
||||
$a = new A;
|
||||
$closure = $a->getClosure();
|
||||
$closure();
|
||||
$b = new B;
|
||||
$closure = $b->getClosure();
|
||||
$closure();
|
||||
?>
|
||||
Done.
|
||||
--EXPECTF--
|
||||
1
|
||||
42
|
||||
42
|
||||
1
|
||||
42
|
||||
forty two
|
||||
Done.
|
||||
@@ -1,5 +1,11 @@
|
||||
--TEST--
|
||||
Testing declare statement with several type values
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (in_array("detect_unicode", array_keys(ini_get_all()))) {
|
||||
die("skip");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference
|
||||
--FILE--
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
|
||||
function a() {
|
||||
return array(1,array(5));
|
||||
}
|
||||
var_dump(a()[1][0]); // int(5)
|
||||
|
||||
function b() {
|
||||
return array();
|
||||
}
|
||||
var_dump(b()[0]); // Notice: Undefined offset: 0
|
||||
|
||||
class foo {
|
||||
public $y = 1;
|
||||
|
||||
public function test() {
|
||||
return array(array(array('foobar')));
|
||||
}
|
||||
}
|
||||
|
||||
function c() {
|
||||
return array(new foo);
|
||||
}
|
||||
var_dump(c()[0]->y); // int(1)
|
||||
|
||||
function d() {
|
||||
$obj = new foo;
|
||||
return $obj->test();
|
||||
}
|
||||
var_dump(d()[0][0][0][3]); // string(1) "b"
|
||||
|
||||
function e() {
|
||||
$y = 'bar';
|
||||
$x = array('a' => 'foo', 'b' => $y);
|
||||
return $x;
|
||||
}
|
||||
var_dump(e()['b']); // string(3) "bar"
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(5)
|
||||
|
||||
Notice: Undefined offset: 0 in %s on line %d
|
||||
NULL
|
||||
int(1)
|
||||
string(1) "b"
|
||||
string(3) "bar"
|
||||
@@ -1,79 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference on method calls
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public function bar() {
|
||||
$x = array();
|
||||
$x[] = 3;
|
||||
$x[] = array(1, 5);
|
||||
$x[] = new foo;
|
||||
return $x;
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
|
||||
var_dump($x = $foo->bar()[1]);
|
||||
var_dump($foo->bar()[1][1]);
|
||||
var_dump($x[0]);
|
||||
var_dump($x = $foo->bar()[2]);
|
||||
var_dump($x->bar());
|
||||
var_dump($x->bar()[0]);
|
||||
|
||||
$x = array();
|
||||
$x[] = new foo;
|
||||
var_dump($x[0]->bar()[2]);
|
||||
var_dump($foo->bar()[2]->bar()[1]);
|
||||
var_dump($foo->bar()[2]->bar()[2]->bar()[1][0]);
|
||||
var_dump($foo->bar()[2]->bar()[2]->bar()[1][0][1]);
|
||||
var_dump($foo->bar()[2]->bar()[2]->bar()[4]);
|
||||
var_dump($foo->bar()[3]->bar());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
[1]=>
|
||||
int(5)
|
||||
}
|
||||
int(5)
|
||||
int(1)
|
||||
object(foo)#2 (0) {
|
||||
}
|
||||
array(3) {
|
||||
[0]=>
|
||||
int(3)
|
||||
[1]=>
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
[1]=>
|
||||
int(5)
|
||||
}
|
||||
[2]=>
|
||||
object(foo)#3 (0) {
|
||||
}
|
||||
}
|
||||
int(3)
|
||||
object(foo)#3 (0) {
|
||||
}
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
[1]=>
|
||||
int(5)
|
||||
}
|
||||
int(1)
|
||||
NULL
|
||||
|
||||
Notice: Undefined offset: 4 in %s on line %d
|
||||
NULL
|
||||
|
||||
Notice: Undefined offset: 3 in %s on line %d
|
||||
|
||||
Fatal error: Call to a member function bar() on a non-object in %s on line %d
|
||||
@@ -1,46 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference on method calls
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public $x = 2;
|
||||
public function a() {
|
||||
$x = array();
|
||||
$x[] = new foo;
|
||||
return $x;
|
||||
}
|
||||
public function b() {
|
||||
return array(1.2, array(new self));
|
||||
}
|
||||
public function c() {
|
||||
$a = array();
|
||||
$b = &$a;
|
||||
$b[] = true;
|
||||
return $a;
|
||||
}
|
||||
public function d() {
|
||||
return $this->b();
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
|
||||
var_dump($foo->a()[0]->x);
|
||||
var_dump($foo->a()[0]);
|
||||
var_dump($foo->b()[1][0]->a()[0]->x);
|
||||
var_dump($foo->c()[0]);
|
||||
var_dump($foo->d()[0]);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(2)
|
||||
object(foo)#%d (1) {
|
||||
["x"]=>
|
||||
int(2)
|
||||
}
|
||||
int(2)
|
||||
bool(true)
|
||||
float(1.2)
|
||||
@@ -1,27 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference on __invoke() result
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public $x = array();
|
||||
public function __construct() {
|
||||
$h = array();
|
||||
$h[] = new stdclass;
|
||||
$this->x = $h;
|
||||
}
|
||||
public function __invoke() {
|
||||
return $this->x;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$fo = new foo;
|
||||
var_dump($fo()[0]);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(stdClass)#%d (0) {
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference on object that implements ArrayAccess
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class obj implements arrayaccess {
|
||||
private $container = array();
|
||||
public function __construct() {
|
||||
$this->container = array(
|
||||
"one" => 1,
|
||||
"two" => 2,
|
||||
"three" => 3,
|
||||
);
|
||||
}
|
||||
public function offsetSet($offset, $value) {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
public function offsetExists($offset) {
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
public function offsetUnset($offset) {
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
public function offsetGet($offset) {
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
}
|
||||
|
||||
function x() {
|
||||
return new obj;
|
||||
}
|
||||
var_dump(x()['two']);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
int(2)
|
||||
@@ -1,30 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference and references
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
function &foo(&$foo) {
|
||||
return $foo;
|
||||
}
|
||||
|
||||
$a = array(1);
|
||||
foo($a)[0] = 2;
|
||||
var_dump($a);
|
||||
|
||||
foo($a)[] = 3;
|
||||
var_dump($a);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
array(1) {
|
||||
[0]=>
|
||||
int(2)
|
||||
}
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(2)
|
||||
[1]=>
|
||||
int(3)
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
--TEST--
|
||||
Trying to write on method return
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public $x = array();
|
||||
|
||||
public function b() {
|
||||
return $this->x;
|
||||
}
|
||||
|
||||
public function c() {
|
||||
return $x;
|
||||
}
|
||||
|
||||
static public function d() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
|
||||
$foo->b()[0] = 1;
|
||||
|
||||
$foo->c()[100] = 2;
|
||||
|
||||
foo::d()[] = 3;
|
||||
|
||||
print "ok\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Notice: Undefined variable: x in %s on line %d
|
||||
ok
|
||||
@@ -1,33 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference with dynamic method name and references
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public $x = array(1);
|
||||
|
||||
public function &b() {
|
||||
return $this->x;
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
|
||||
$a = 'b';
|
||||
var_dump($foo->$a()[0]);
|
||||
|
||||
$h = &$foo->$a();
|
||||
$h[] = 2;
|
||||
var_dump($foo->$a());
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
[1]=>
|
||||
int(2)
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference with references
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
$a = array();
|
||||
|
||||
function &a() {
|
||||
return $GLOBALS['a'];
|
||||
}
|
||||
|
||||
var_dump($h =& a());
|
||||
$h[] = 1;
|
||||
var_dump(a()[0]);
|
||||
|
||||
$h[] = array($h);
|
||||
var_dump(a()[1][0][0]);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
array(0) {
|
||||
}
|
||||
int(1)
|
||||
int(1)
|
||||
@@ -1,27 +0,0 @@
|
||||
--TEST--
|
||||
Testing dereference in non-array values
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
function a() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
$a = 1;
|
||||
var_dump($a[1]);
|
||||
var_dump(a()[1]);
|
||||
|
||||
function b() {
|
||||
return new stdClass;
|
||||
}
|
||||
|
||||
var_dump(b()[1]);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
NULL
|
||||
NULL
|
||||
|
||||
Fatal error: Cannot use object of type stdClass as array in %s on line %d
|
||||
@@ -1,45 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereference with chaining
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public $arr;
|
||||
|
||||
public function &a() {
|
||||
return $this->arr;
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
|
||||
$h = &$foo->a();
|
||||
$h[] = 1;
|
||||
$h[] = $foo;
|
||||
var_dump($foo->a()[1]->arr[1]->a()[1]->arr[1]->arr[0]);
|
||||
var_dump($foo->a()[1]);
|
||||
var_dump($foo->a()[1]->arr[1]);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(1)
|
||||
object(foo)#%d (1) {
|
||||
["arr"]=>
|
||||
&array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
[1]=>
|
||||
*RECURSION*
|
||||
}
|
||||
}
|
||||
object(foo)#%d (1) {
|
||||
["arr"]=>
|
||||
&array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
[1]=>
|
||||
*RECURSION*
|
||||
}
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereferencing on return of a method with and without reference
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class foo {
|
||||
static $x = array();
|
||||
|
||||
public function &a() {
|
||||
self::$x = array(1, 2, 3);
|
||||
return self::$x;
|
||||
}
|
||||
|
||||
public function b() {
|
||||
$x = array(1);
|
||||
$x[] = 2;
|
||||
return $x;
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
|
||||
// Changing the static variable
|
||||
$foo->a()[0] = 2;
|
||||
var_dump($foo::$x);
|
||||
|
||||
$foo->b()[] = new stdClass;
|
||||
|
||||
$h = $foo->b();
|
||||
var_dump($h);
|
||||
|
||||
$h[0] = 3;
|
||||
var_dump($h);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
array(3) {
|
||||
[0]=>
|
||||
int(2)
|
||||
[1]=>
|
||||
int(2)
|
||||
[2]=>
|
||||
int(3)
|
||||
}
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
[1]=>
|
||||
int(2)
|
||||
}
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(3)
|
||||
[1]=>
|
||||
int(2)
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
--TEST--
|
||||
Testing array dereferencing on array returned from __call method
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public $x = array(2);
|
||||
|
||||
public function __call($x, $y) {
|
||||
if (count($this->x) == 1) {
|
||||
$this->x[] = $y[0];
|
||||
}
|
||||
return $this->x;
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
|
||||
$x = array(1);
|
||||
|
||||
$foo->b($x)[1] = 3;
|
||||
|
||||
var_dump($foo->b()[0]);
|
||||
var_dump($foo->b()[1]);
|
||||
var_dump($foo->b()[2]);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(2)
|
||||
array(1) {
|
||||
[0]=>
|
||||
int(1)
|
||||
}
|
||||
|
||||
Notice: Undefined offset: %d in %s on line %d
|
||||
NULL
|
||||
@@ -1,34 +0,0 @@
|
||||
--TEST--
|
||||
Trying to create an object from dereferencing uninitialized variable
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
class foo {
|
||||
public $x;
|
||||
static public $y;
|
||||
|
||||
public function a() {
|
||||
return $this->x;
|
||||
}
|
||||
|
||||
static public function b() {
|
||||
return self::$y;
|
||||
}
|
||||
}
|
||||
|
||||
$foo = new foo;
|
||||
$h = $foo->a()[0]->a;
|
||||
var_dump($h);
|
||||
|
||||
$h = foo::b()[1]->b;
|
||||
var_dump($h);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Notice: Trying to get property of non-object in %s on line %d
|
||||
NULL
|
||||
|
||||
Notice: Trying to get property of non-object in %s on line %d
|
||||
NULL
|
||||
@@ -7,7 +7,7 @@ zend.enable_gc=1
|
||||
<?php
|
||||
$a = array(array());
|
||||
$a[0][0] =& $a[0];
|
||||
$s = array(1) + unserialize(serialize($a[0]));
|
||||
$s = array(1) + unserialize(serialize(&$a[0]));
|
||||
var_dump(gc_collect_cycles());
|
||||
echo "ok\n"
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
--TEST--
|
||||
GC 032: Crash in GC because of invalid reference counting
|
||||
--FILE--
|
||||
<?php
|
||||
$a = array();
|
||||
$b =& $a;
|
||||
$a[0] = $a;
|
||||
debug_zval_dump($a);
|
||||
$a = array(array());
|
||||
$b =& $a;
|
||||
$a[0][0] = $a;
|
||||
debug_zval_dump($a);
|
||||
?>
|
||||
--EXPECT--
|
||||
array(1) refcount(1){
|
||||
[0]=>
|
||||
array(1) refcount(3){
|
||||
[0]=>
|
||||
array(1) refcount(3){
|
||||
[0]=>
|
||||
*RECURSION*
|
||||
}
|
||||
}
|
||||
}
|
||||
array(1) refcount(1){
|
||||
[0]=>
|
||||
array(1) refcount(3){
|
||||
[0]=>
|
||||
array(1) refcount(1){
|
||||
[0]=>
|
||||
array(1) refcount(3){
|
||||
[0]=>
|
||||
array(1) refcount(1){
|
||||
[0]=>
|
||||
*RECURSION*
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing integer hint
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test_int($x, int $a = 1) {
|
||||
}
|
||||
|
||||
test_int(1);
|
||||
print "Ok\n";
|
||||
|
||||
test_int('1211');
|
||||
print "Ok\n";
|
||||
|
||||
test_int(null);
|
||||
print "Ok\n";
|
||||
|
||||
test_int(1, 1);
|
||||
print "Ok\n";
|
||||
|
||||
test_int(null, '1211');
|
||||
print "Ok\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Ok
|
||||
Ok
|
||||
Ok
|
||||
Ok
|
||||
|
||||
Catchable fatal error: Argument 2 passed to test_int() must be of the type integer, string given, called in %s on line %d and defined in %s on line %d
|
||||
--UEXPECTF--
|
||||
Ok
|
||||
Ok
|
||||
Ok
|
||||
Ok
|
||||
|
||||
Catchable fatal error: Argument 2 passed to test_int() must be of the type integer, Unicode string given, called in %s on line %d and defined in %s on line %d
|
||||
@@ -1,97 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Reflection
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(int $a, double $b, string $c, boolean $d = true, resource $e, array $f = array(), object $g) {
|
||||
}
|
||||
|
||||
$func = new ReflectionFunction('test');
|
||||
Reflection::Export($func);
|
||||
|
||||
foreach ($func->getParameters() as $i => $param) {
|
||||
printf(
|
||||
"-- Parameter #%d: %s {\n".
|
||||
" Allows NULL: %s\n".
|
||||
" Hint Type: %s\n".
|
||||
" Passed to by reference: %s\n".
|
||||
" Is optional?: %s\n",
|
||||
$i,
|
||||
$param->getName(),
|
||||
var_export($param->getClass(), 1),
|
||||
$param->getTypeHint(),
|
||||
var_export($param->allowsNull(), 1),
|
||||
var_export($param->isPassedByReference(), 1),
|
||||
$param->isOptional() ? 'yes' : 'no'
|
||||
);
|
||||
printf(" Int: %d | Double: %d | Bool: %d | String: %d | Resource: %d | Array: %d | Object: %d\n",
|
||||
$param->isInt(), $param->isDouble(), $param->isBool(), $param->isString(),
|
||||
$param->isResource(), $param->isArray(), $param->isObject());
|
||||
print "}\n";
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Function [ <user> function test ] {
|
||||
@@ %s 3 - 4
|
||||
|
||||
- Parameters [7] {
|
||||
Parameter #0 [ <required> integer $a ]
|
||||
Parameter #1 [ <required> double $b ]
|
||||
Parameter #2 [ <required> string $c ]
|
||||
Parameter #3 [ <required> boolean $d ]
|
||||
Parameter #4 [ <required> resource $e ]
|
||||
Parameter #5 [ <required> array $f ]
|
||||
Parameter #6 [ <required> object $g ]
|
||||
}
|
||||
}
|
||||
|
||||
-- Parameter #0: a {
|
||||
Allows NULL: NULL
|
||||
Hint Type: integer
|
||||
Passed to by reference: false
|
||||
Is optional?: false
|
||||
Int: 1 | Double: 0 | Bool: 0 | String: 0 | Resource: 0 | Array: 0 | Object: 0
|
||||
}
|
||||
-- Parameter #1: b {
|
||||
Allows NULL: NULL
|
||||
Hint Type: double
|
||||
Passed to by reference: false
|
||||
Is optional?: false
|
||||
Int: 0 | Double: 1 | Bool: 0 | String: 0 | Resource: 0 | Array: 0 | Object: 0
|
||||
}
|
||||
-- Parameter #2: c {
|
||||
Allows NULL: NULL
|
||||
Hint Type: string
|
||||
Passed to by reference: false
|
||||
Is optional?: false
|
||||
Int: 0 | Double: 0 | Bool: 0 | String: 1 | Resource: 0 | Array: 0 | Object: 0
|
||||
}
|
||||
-- Parameter #3: d {
|
||||
Allows NULL: NULL
|
||||
Hint Type: boolean
|
||||
Passed to by reference: false
|
||||
Is optional?: false
|
||||
Int: 0 | Double: 0 | Bool: 1 | String: 0 | Resource: 0 | Array: 0 | Object: 0
|
||||
}
|
||||
-- Parameter #4: e {
|
||||
Allows NULL: NULL
|
||||
Hint Type: resource
|
||||
Passed to by reference: false
|
||||
Is optional?: false
|
||||
Int: 0 | Double: 0 | Bool: 0 | String: 0 | Resource: 1 | Array: 0 | Object: 0
|
||||
}
|
||||
-- Parameter #5: f {
|
||||
Allows NULL: NULL
|
||||
Hint Type: array
|
||||
Passed to by reference: false
|
||||
Is optional?: false
|
||||
Int: 0 | Double: 0 | Bool: 0 | String: 0 | Resource: 0 | Array: 1 | Object: 0
|
||||
}
|
||||
-- Parameter #6: g {
|
||||
Allows NULL: NULL
|
||||
Hint Type: object
|
||||
Passed to by reference: false
|
||||
Is optional?: false
|
||||
Int: 0 | Double: 0 | Bool: 0 | String: 0 | Resource: 0 | Array: 0 | Object: 1
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Wrong parameter for integer
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test_int(int $a) {
|
||||
echo $a, "\n";
|
||||
}
|
||||
|
||||
test_int('+1');
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Catchable fatal error: Argument 1 passed to test_int() must be of the type integer, string given, called in %s on line %d and defined in %s on line %d
|
||||
--UEXPECTF--
|
||||
Catchable fatal error: Argument 1 passed to test_int() must be of the type integer, Unicode string given, called in %s on line %d and defined in %s on line %d
|
||||
@@ -1,16 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Wrong parameter for double
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test_double(real $a) {
|
||||
echo $a, "\n";
|
||||
}
|
||||
|
||||
test_double('+1.1');
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Catchable fatal error: Argument 1 passed to test_double() must be of the type double, string given, called in %s on line %d and defined in %s on line %d
|
||||
--UEXPECTF--
|
||||
Catchable fatal error: Argument 1 passed to test_double() must be of the type double, Unicode string given, called in %s on line %d and defined in %s on line %d
|
||||
@@ -1,23 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Wrong parameter for string
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test_str(string $a) {
|
||||
echo $a, "\n";
|
||||
}
|
||||
|
||||
test_str('+1.1');
|
||||
test_str('-.1');
|
||||
test_str('11213111112321312');
|
||||
test_str('');
|
||||
test_str(null);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
+1.1
|
||||
-.1
|
||||
11213111112321312
|
||||
|
||||
|
||||
Catchable fatal error: Argument 1 passed to test_str() must be of the type string, null given, called in %s on line %d and defined in %s on line %d
|
||||
@@ -1,22 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing NULL when allowed
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test_int(int $a = null) {
|
||||
}
|
||||
test_int(null);
|
||||
|
||||
function test_double(double $a = null) {
|
||||
}
|
||||
test_double(null);
|
||||
|
||||
function test_bool(bool $a = null) {
|
||||
}
|
||||
test_bool(null);
|
||||
|
||||
print "Done";
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
Done
|
||||
@@ -1,46 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing parameter with reference
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
/* string */
|
||||
function test_string(string &$a) {
|
||||
$a .= '!!!';
|
||||
}
|
||||
|
||||
$str = 'foo';
|
||||
test_string($str);
|
||||
var_dump($str);
|
||||
|
||||
/* integer */
|
||||
function test_int(int &$b) {
|
||||
$b += 2;
|
||||
}
|
||||
|
||||
$b = 2;
|
||||
test_int($b);
|
||||
var_dump($b);
|
||||
|
||||
/* object */
|
||||
function test_obj(object &$c) {
|
||||
$c->tested = 1;
|
||||
}
|
||||
$c = new stdclass;
|
||||
test_obj($c);
|
||||
var_dump($c);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
string(6) "foo!!!"
|
||||
int(4)
|
||||
object(stdClass)#1 (1) {
|
||||
["tested"]=>
|
||||
int(1)
|
||||
}
|
||||
--UEXPECT--
|
||||
unicode(6) "foo!!!"
|
||||
int(4)
|
||||
object(stdClass)#1 (1) {
|
||||
[u"tested"]=>
|
||||
int(1)
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing string type hint with reference
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(string &$a) {
|
||||
$a .= '!!!';
|
||||
}
|
||||
|
||||
$x = 'foo';
|
||||
|
||||
test($x);
|
||||
|
||||
var_dump($x);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
string(6) "foo!!!"
|
||||
--UEXPECT--
|
||||
unicode(6) "foo!!!"
|
||||
@@ -1,17 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing default parameter value
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(string &$a, integer $x = 1) {
|
||||
var_dump($x);
|
||||
}
|
||||
|
||||
$y = 'foo';
|
||||
test($y, 2);
|
||||
test($y);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
int(2)
|
||||
int(1)
|
||||
@@ -1,28 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing with heredoc
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(string $str) {
|
||||
}
|
||||
|
||||
test(<<<FOO
|
||||
test!
|
||||
FOO
|
||||
);
|
||||
|
||||
test(<<<'FOO'
|
||||
test!
|
||||
FOO
|
||||
);
|
||||
|
||||
test(<<<"FOO"
|
||||
test!
|
||||
FOO
|
||||
);
|
||||
|
||||
print "Ok!";
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
Ok!
|
||||
@@ -1,15 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing with undefined variable
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(string $a) {
|
||||
}
|
||||
|
||||
test($x);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Notice: Undefined variable: x in %s on line %d
|
||||
|
||||
Catchable fatal error: Argument 1 passed to test() must be of the type string, null given, called in %s on line %d and defined in %s on line %d
|
||||
@@ -1,18 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing with lambda function
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$test = create_function('integer $i', 'return $i + 1;');
|
||||
var_dump($test(1));
|
||||
var_dump($test('foo'));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(2)
|
||||
|
||||
Catchable fatal error: Argument 1 passed to __lambda_func() must be of the type integer, string given, called in %s on line %d and defined in %s(%d) : runtime-created function on line %d
|
||||
--UEXPECTF--
|
||||
int(2)
|
||||
|
||||
Catchable fatal error: Argument 1 passed to __lambda_func() must be of the type integer, Unicode string given, called in %s on line %d and defined in %s(%d) : runtime-created function on line %d
|
||||
@@ -1,16 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing with lambda function using 2 parameters
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$test = create_function('integer $i, string $j', 'return $i + $j;');
|
||||
var_dump($test(1, 'foo'));
|
||||
var_dump($test(1, '1'));
|
||||
var_dump($test(1, NULL));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(1)
|
||||
int(2)
|
||||
|
||||
Catchable fatal error: Argument 2 passed to __lambda_func() must be of the type string, null given, called in %s on line %d and defined in %s(%d) : runtime-created function on line %d
|
||||
@@ -1,16 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing in function inside function
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function a() {
|
||||
function b(real $c) {
|
||||
}
|
||||
return b(1);
|
||||
}
|
||||
|
||||
a();
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Catchable fatal error: Argument 1 passed to b() must be of the type double, integer given, called in %s on line %d and defined in %s on line %d
|
||||
@@ -1,19 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing with call_user_func()
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(bool $b) {
|
||||
print "ok\n";
|
||||
}
|
||||
|
||||
call_user_func('test', true);
|
||||
call_user_func('test', false);
|
||||
call_user_func('test', NULL);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
ok
|
||||
ok
|
||||
|
||||
Catchable fatal error: Argument 1 passed to test() must be of the type boolean, null given in %s on line %d
|
||||
@@ -1,22 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing default parameter values
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(string $a, bool $b = NULL, integer $c, double $d = NULL, $e) {
|
||||
print "ok\n";
|
||||
}
|
||||
|
||||
test('foo', NULL, 1, NULL, 'bar');
|
||||
test('foo', true, 0, -1., NULL);
|
||||
test('true', false, -1, 2.2222, 1.1);
|
||||
test('1.1', false, -1, 11111111111111111111111111, true);
|
||||
test('1', false, -1, NULL, new stdClass);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
ok
|
||||
ok
|
||||
ok
|
||||
ok
|
||||
ok
|
||||
@@ -1,14 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - Testing default parameter values as constants
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(int $foo = PHP_INT_MAX) {
|
||||
print "ok\n";
|
||||
}
|
||||
|
||||
test();
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
ok
|
||||
@@ -1,18 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - formatting
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test(int$foo) { print "ok\n";}
|
||||
test(1);
|
||||
|
||||
function test2(int
|
||||
|
||||
|
||||
$foo) { print "ok\n";}
|
||||
test2(1);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
ok
|
||||
ok
|
||||
@@ -1,37 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - scalar type hints
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function x($error, $msg) { var_dump($msg); }
|
||||
set_error_handler('x', E_RECOVERABLE_ERROR);
|
||||
|
||||
function foo(scalar $param) { var_dump($param); }
|
||||
|
||||
foo(1);
|
||||
foo(true);
|
||||
foo(NULL);
|
||||
foo(array(1));
|
||||
foo("foo");
|
||||
foo(111.222);
|
||||
foo(new Stdclass);
|
||||
foo(tmpfile());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(1)
|
||||
bool(true)
|
||||
string(%d) "Argument 1 passed to foo() must be of the type scalar, null given, called in %s on line %d and defined"
|
||||
NULL
|
||||
string(%d) "Argument 1 passed to foo() must be of the type scalar, array given, called in %s on line %d and defined"
|
||||
array(1) {
|
||||
[0]=>
|
||||
int(1)
|
||||
}
|
||||
string(3) "foo"
|
||||
float(111.222)
|
||||
string(%d) "Argument 1 passed to foo() must be of the type scalar, object given, called in %s on line %d and defined"
|
||||
object(stdClass)#1 (0) {
|
||||
}
|
||||
string(%d) "Argument 1 passed to foo() must be of the type scalar, resource given, called in %s on line %d and defined"
|
||||
resource(4) of type (stream)
|
||||
@@ -1,15 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - scalar type hints, default value
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function bar1(scalar $param = null) {}
|
||||
function bar2(scalar $param = 123) {}
|
||||
function bar3(scalar $param = false) {}
|
||||
function bar4(scalar $param = 988.99) {}
|
||||
function bar5(scalar $param = "1233") {}
|
||||
function bar6(scalar $param = array(1,2,3)) {}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Default value for parameters with scalar type hint can only be scalar or NULL in %s on line 8
|
||||
@@ -1,46 +0,0 @@
|
||||
--TEST--
|
||||
Parameter type hint - numeric type hints
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function x($error, $msg) { var_dump($msg); }
|
||||
set_error_handler('x', E_RECOVERABLE_ERROR);
|
||||
|
||||
function foo(numeric $param) { var_dump($param); }
|
||||
|
||||
foo(1);
|
||||
foo(true);
|
||||
foo(NULL);
|
||||
foo(array(1));
|
||||
foo("foo");
|
||||
foo("123.33");
|
||||
foo("123");
|
||||
foo("");
|
||||
foo(111.222);
|
||||
foo(new Stdclass);
|
||||
foo(tmpfile());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(1)
|
||||
string(%d) "Argument 1 passed to foo() must be of the type numeric, boolean given, called in %s on line %d and defined"
|
||||
bool(true)
|
||||
string(%d) "Argument 1 passed to foo() must be of the type numeric, null given, called in %s on line %d and defined"
|
||||
NULL
|
||||
string(%d) "Argument 1 passed to foo() must be of the type numeric, array given, called in %s on line %d and defined"
|
||||
array(1) {
|
||||
[0]=>
|
||||
int(1)
|
||||
}
|
||||
string(%d) "Argument 1 passed to foo() must be of the type numeric, string given, called in %s on line %d and defined"
|
||||
string(3) "foo"
|
||||
string(6) "123.33"
|
||||
string(3) "123"
|
||||
string(%d) "Argument 1 passed to foo() must be of the type numeric, string given, called in %s on line %d and defined"
|
||||
string(0) ""
|
||||
float(111.222)
|
||||
string(%d) "Argument 1 passed to foo() must be of the type numeric, object given, called in %s on line %d and defined"
|
||||
object(stdClass)#1 (0) {
|
||||
}
|
||||
string(%d) "Argument 1 passed to foo() must be of the type numeric, resource given, called in %s on line %d and defined"
|
||||
resource(4) of type (stream)
|
||||
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
Testing isset accessing undefined array itens and properties
|
||||
--SKIPIF--
|
||||
<?php if (version_compare(zend_version(), '2.4.0', '>=')) die('skip ZendEngine 2.3 or below needed'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
--TEST--
|
||||
Testing isset accessing undefined array itens and properties
|
||||
--SKIPIF--
|
||||
<?php if (version_compare(zend_version(), '2.4.0', '<')) die('skip ZendEngine 2.4 needed'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$a = 'foo';
|
||||
$b =& $a;
|
||||
|
||||
var_dump(isset($b));
|
||||
|
||||
var_dump(isset($a[0], $b[1]));
|
||||
|
||||
var_dump(isset($a[0]->a));
|
||||
|
||||
var_dump(isset($c[0][1][2]->a->b->c->d));
|
||||
|
||||
var_dump(isset(${$a}->{$b->$c[$d]}));
|
||||
|
||||
var_dump(isset($GLOBALS));
|
||||
|
||||
var_dump(isset($GLOBALS[1]));
|
||||
|
||||
var_dump(isset($GLOBALS[1]->$GLOBALS));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Notice: Undefined variable: c in %s on line %d
|
||||
|
||||
Notice: Undefined variable: d in %s on line %d
|
||||
|
||||
Notice: Trying to get property of non-object in %s on line %d
|
||||
bool(false)
|
||||
bool(true)
|
||||
bool(false)
|
||||
bool(false)
|
||||
@@ -0,0 +1,30 @@
|
||||
--TEST--
|
||||
passing arguments by ref to a method handled by __call()
|
||||
--INI--
|
||||
allow_call_time_pass_reference=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class Foo {
|
||||
function __call($method, $args)
|
||||
{
|
||||
print $args[0]."\n";
|
||||
$args[0] = 5;
|
||||
print $args[0]."\n";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
$v = 'str';
|
||||
$o = new Foo();
|
||||
$o->test(&$v);
|
||||
|
||||
var_dump($v);
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
str
|
||||
5
|
||||
int(5)
|
||||
Done
|
||||
Binary file not shown.
@@ -4,6 +4,7 @@ Test whitespace following end of nowdoc
|
||||
highlight.string = #DD0000
|
||||
highlight.comment = #FF8000
|
||||
highlight.keyword = #007700
|
||||
highlight.bg = #FFFFFF
|
||||
highlight.default = #0000BB
|
||||
highlight.html = #000000
|
||||
--FILE--
|
||||
|
||||
@@ -4,6 +4,7 @@ Highlighting empty nowdoc
|
||||
highlight.string = #DD0000
|
||||
highlight.comment = #FF8000
|
||||
highlight.keyword = #007700
|
||||
highlight.bg = #FFFFFF
|
||||
highlight.default = #0000BB
|
||||
highlight.html = #000000
|
||||
--FILE--
|
||||
|
||||
@@ -18,4 +18,4 @@ new bar(new \stdclass);
|
||||
--EXPECTF--
|
||||
NULL
|
||||
|
||||
Catchable fatal error: Argument 1 passed to foo\bar::__construct() must be of the type array, object given, called in %s on line %d and defined in %s on line %d
|
||||
Catchable fatal error: Argument 1 passed to foo\bar::__construct() must be an array, object given, called in %s on line %d and defined in %s on line %d
|
||||
Loaded 100 of 1133 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user