php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29448 include_once() && sprintf() bug
Submitted: 2004-07-29 20:17 UTC Modified: 2004-08-18 01:00 UTC
From: ylke at netlabs dot hu Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.3.8 OS: Linux netlabs 2.4.26-grsec-2.0
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-07-29 20:17 UTC] ylke at netlabs dot hu
Description:
------------
include_once(sprintf("%s/modules/spec_%s/%s.php",$this->set[path],$name,$name));

if i run this row, one of the apache childers will exit with segmentation fault.

if the line below doesnt contains the sprintf() then php wont segfault and will write some parse warning in the specified file.

why do this?


Reproduce code:
---------------
include_once(sprintf("%s/modules/spec_%s/%s.php",$this->set[path],$name,$name));


Expected result:
----------------
segmentation fault


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-02 17:25 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.


 [2004-08-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 12 14:01:34 2024 UTC