[PATCH] FILE UPLOAD HOOKs

php.internals

Stefan Esser

20 years ago
Hello, it was requested several times, that PHP allows FILE UPLOAD hooks. Attached is the URL to a patch against PHP_5_2 that I am going to commit in 3-4 days. If you see any problems in it, then speak up. I tried to combine the best ideas from the existing patches and combined it with what I need. Stefan PATCH URL: http://www.suspekt.org/patches/fileupload_hook.diff

Ilia A.

20 years ago
Looks fine to me. Ilia

Markus Fischer

20 years ago
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Are you also going to provide an extension for actually using it? I.e. prototype implementation or something similiar? thanks Stefan Esser wrote:
> Hello, > > it was requested several times, that PHP allows FILE UPLOAD hooks. > > Attached is the URL to a patch against PHP_5_2 that I am going to commit > in 3-4 days. If you see any problems in it, then speak up. > > I tried to combine the best ideas from the existing patches and combined > it with what I need. > > Stefan > > PATCH URL: http://www.suspekt.org/patches/fileupload_hook.diff >
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEqUr31nS0RcInK9ARApdDAKCflFvXJ+MyOlbIIjOSaXZ3cJk4WwCeKhF1 RDsvzYv/6IaRLgIPkJXZjA4= =uWxe -----END PGP SIGNATURE-----

Stefan Esser

20 years ago
Hi Markus, actually a reference implementation will be in the Hardening-Patch, but I invite everyone who wrote an extension, that uses another FileUpload Hook to contact me and I can help them adjusting their extension or I can fix it myself. Stefan

Andrei Zmievski

20 years ago
Are you going to adjust it for HEAD as well? -Andrei On Jul 3, 2006, at 5:39 AM, Stefan Esser wrote:

Stefan Esser

20 years ago
Hey,
> Are you going to adjust it for HEAD as well?
Yes, but I first put it into 5.2 and test it. Stefan