php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12144 Error in execution operator (`dir .\*.*`)
Submitted: 2001-07-13 11:18 UTC Modified: 2002-02-04 02:10 UTC
From: andronov at ics dot perm dot su Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: Windows NT Server 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andronov at ics dot perm dot su
New email:
PHP Version: OS:

 

 [2001-07-13 11:18 UTC] andronov at ics dot perm dot su
I've installed PHP 4.0.6 with Win32 installer (php406-installer.exe). Using the following code crashes PHP:
 <?php
        $m = `dir /b .\*.php`;
        echo $m;
 ?>
It works fine in PHP 4.0.5

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-19 04:50 UTC] sniper@php.net
What do you mean by 'crash' here? Does it output any 
error messages?

 [2001-08-19 23:55 UTC] andronov at ics dot perm dot su
I mean the following thing:
1. Make a file "bug.php", containing lines
 <?php
        $m = `dir /b .\*.php`;
        echo $m;
 ?>

2. Install PHP 4.0.6 with php406-installer.exe on WinNT4 Server SP6a + IE5.5

3. Try to execute command like this:
 php.exe bug.php

4. I've got a message box with the title 
"OleMainThreadWndName: php.exe - Application Error"

When I do this thing with PHP 4.0.5 everything is OK.
 [2002-01-18 01:57 UTC] nohn@php.net
Tried to verify this bug with PHP 4.1.1. PHP did'nt crash. Uses this:
<?php
  $m = system('dir /b .\*.php');
  echo $m;
?>

an this:

<?php
  $m = 'dir /b .\*.php';
  echo $m;
?>

I don't think the last snippet will crash anything ;)
 [2002-02-04 02:10 UTC] yohgaki@php.net
So closed?

Please reopen if problem is in 4.1.1
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC