Uh oh!
There was an error while loading. Please reload this page.
Add suffix to tempnam() - #575
Conversation
Implementation of this RFC: https://wiki.php.net/rfc/tempnam-suffix
smalyshev
commented
Jan 27, 2014
This one fails to build with compile error in gd.c. |
neufeind
commented
Jan 30, 2014
Can't say why gd.c should be a problem here. Worked fine for me. I only had problems with the unittest but didn't find out which mismatch it has in actual/expected output. The output of the testscript itself looks fine to me. Would be great if somebody could pick this up. |
Tyrael
commented
Feb 17, 2014
travis still tells me that this PR breaks the build: |
Tyrael
commented
Feb 20, 2014
oh, right, you simply missed the php_open_temporary_file() usage in ext/gd.c . |
php-pulls
commented
Feb 20, 2014
*ext/gd/gd.c
|
neufeind
commented
Feb 20, 2014
had no gd-devel installed, thus gd got disabled during build and I didn't notice it. Thanks for the feedback. |
neufeind
commented
Feb 20, 2014
Still something broken? This is a neverending story :-( |
Tyrael
commented
Feb 20, 2014
Starting program: /Users/tyrael/checkouts/php-src.git/./sapi/cli/php ext/gd/tests/bug41442.php Program received signal SIGSEGV, Segmentation fault. caused by this line: I think it is caused by the fact that we allow the NULL pointer to reach all the way here, and spprintf %s expects a null terminated string argument. |
Tyrael
commented
Feb 21, 2014
this simple patch solves the segfault, but it would be nice if somebody else could approve this: |
nikic
commented
Feb 21, 2014
@Tyrael You need to indent the patch with four spaces or wrap it in ``` to properly format it. |
Tyrael
commented
Feb 21, 2014
ah, thanks. |
neufeind
commented
Apr 11, 2014
Could somebody maybe update the patch and review this? At least I hope we're close ... |
Tyrael
commented
Apr 12, 2014
neufeind: only you can update the patch in the pull request. |
smalyshev
commented
Apr 13, 2014
Also this has a binary API change in php_open_temporary_file, so unless it's in 5.6.0, it can not be in 5.6 branch at all. |
ghost
commented
Mar 7, 2015
Can one of the admins verify this patch? |
neufeind
commented
Mar 7, 2015
It seems to need some adjustment, but I'm not sure how to continue with it / track that down. A test fails - but how do I debug that? |
Tyrael
commented
Sep 3, 2015
if you still want to pursue this, please create a new PR |
neufeind
commented
Sep 3, 2015
I still didn't find out how to track down the failing test. The patch itself worked afaik but my tries (as a php-src-newbie) to find help unfortunately lead nowhere :-( |
Implementation of this RFC:
https://wiki.php.net/rfc/tempnam-suffix