Re: Bug #1593 Updated: mktemp crash
| From: | Michal Kara | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Bug #1593 Updated: mktemp crash | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-7512@lists.php.net to get a copy of this message | ||
> The tempnam() (we don't have a mktemp function) checks multiple times what mktemp()
> returns. Your example works here. If it crashes for you, please provide a backtrace.
>
Sorry about the function name.
gate:/tmp/aa # l
total 2
d-w------- 2 lemming root 1024 Jun 24 14:34 ./
drwxrwxrwt 9 root root 1024 Jun 24 14:34 ../
gate:/tmp/aa #
-----
lemming@gate:~ > php
<?
echo tempnam("/tmp/aa","xxx");
?>
Segmentation fault
lemming@gate:~ > php -v
3.0.9
lemming@gate:~ >
(gdb) bt
#0 0x806d582 in php3_tempnam (ht=0x80cc020, return_value=0x80a9df0,
list=0x80bacb4, plist=0x80bac88) at functions/file.c:475
#1 0x805396c in phpparse () at control_structures_inline.h:934
#2 0x805ab17 in php3_parse (yyin=0x80a9d98) at main.c:1541
#3 0x805b39e in main (argc=1, argv=0xbffff98c) at main.c:1850
(gdb)
Michal Kara alias lemming