FAQ
fmk Wed Oct 29 00:34:01 2003 EDT

Modified files:
/php-src/ext ext_skel_win32.php
Log:
Fix typo in parameter

Index: php-src/ext/ext_skel_win32.php
diff -u php-src/ext/ext_skel_win32.php:1.4 php-src/ext/ext_skel_win32.php:1.5
--- php-src/ext/ext_skel_win32.php:1.4 Sun Jun 29 12:07:17 2003
+++ php-src/ext/ext_skel_win32.php Wed Oct 29 00:34:00 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: ext_skel_win32.php,v 1.4 2003/06/29 16:07:17 hholzgra Exp $ */
+/* $Id: ext_skel_win32.php,v 1.5 2003/10/29 05:34:00 fmk Exp $ */

if (php_sapi_name() != "cli") {
echo "Please run this script using the CLI version of PHP\n";
@@ -11,7 +11,7 @@
1) Make sure you have CygWin installed
2) Adjust the $cygwin_path to match your installation
3) Change the environment cariable PATHEXT to include .PHP
- 4) run ext_skel --ext_name=...
+ 4) run ext_skel --extname=...
the first time you run this script you will be asked to
associate it with a program. chooses the CLI version of php.
*/

Search Discussions

  • Frank M. Kromann at Oct 29, 2003 at 5:42 am
    fmk Wed Oct 29 00:42:06 2003 EDT

    Modified files:
    /php-src/ext ext_skel_win32.php
    Log:
    On win32 extensions starts with php_

    Index: php-src/ext/ext_skel_win32.php
    diff -u php-src/ext/ext_skel_win32.php:1.5 php-src/ext/ext_skel_win32.php:1.6
    --- php-src/ext/ext_skel_win32.php:1.5 Wed Oct 29 00:34:00 2003
    +++ php-src/ext/ext_skel_win32.php Wed Oct 29 00:42:05 2003
    @@ -1,5 +1,5 @@
    <?php
    -/* $Id: ext_skel_win32.php,v 1.5 2003/10/29 05:34:00 fmk Exp $ */
    +/* $Id: ext_skel_win32.php,v 1.6 2003/10/29 05:42:05 fmk Exp $ */

    if (php_sapi_name() != "cli") {
    echo "Please run this script using the CLI version of PHP\n";
    @@ -45,6 +45,19 @@
    $fp = fopen("$extname/$extname.dsp", "wb");
    if ($fp) {
    fwrite($fp, $dsp_file);
    + fclose($fp);
    + }
    +}
    +
    +$fp = fopen("$extname/$extname.php", "rb");
    +if ($fp) {
    + $php_file = fread($fp, filesize("$extname/$extname.php"));
    + fclose($fp);
    +
    + $php_file = str_replace("dl('", "dl('php_", $php_file);
    + $fp = fopen("$extname/$extname.php", "wb");
    + if ($fp) {
    + fwrite($fp, $php_file);
    fclose($fp);
    }
    }

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedOct 29, '03 at 5:34a
activeOct 29, '03 at 5:42a
posts2
users1
websitephp.net

1 user in discussion

Frank M. Kromann: 2 posts

People

Translate

site design / logo © 2019 Grokbase