php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24314 ext_skel --proto=<file> doesn't work
Submitted: 2003-06-24 07:53 UTC Modified: 2003-06-25 06:06 UTC
From: anzenews at volja dot net Assigned: hholzgra (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 4CVS-2003-06-24 (stable) OS: Linux
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: anzenews at volja dot net
New email:
PHP Version: OS:

 

 [2003-06-24 07:53 UTC] anzenews at volja dot net
Description:
------------
Hi! 

When I try to create my extension skelet using ext_skel like this:
/home/tmp/php/ext$ ./ext_skel --extname=myext --proto=myext.proto

I get this output:
------------
Creating directory myext
awk: run time error: regular expression compile failed (missing '(')
^(\]* *))
        FILENAME="-" FNR=1 NR=1
Creating basic files: config.m4 .cvsignore myext.c php_myext.h CREDITS EXPERIMENTAL tests/001.phpt 
myext.phprm: cannot remove `function_entries': No such file or directory
rm: cannot remove `function_declarations': No such file or directory
rm: cannot remove `function_stubs': No such file or directory
 [done].

To use your new extension, you...
...
------------

Extension is created, but not the function I specified in myext.proto.
It worked in 4.0.3.pl1, it didn't work in 4.3.2 and it doesn't work in current CVS version.


Reproduce code:
---------------
myext.phproto (taken from README.EXT_SKEL):
bool my_drawtext(resource image, string text, resource font, int x, int y [, int color])


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-24 08:56 UTC] hholzgra@php.net
works fine for me

what is your awk version?

(mine is "GNU Awk 3.1.1")
 [2003-06-24 09:20 UTC] anzenews at volja dot net
My version is of gawk is 3.1.0-3 (Debian stable). 
I tried to test with newer one (3.1.2-4 - 
testing/unstable), but I don't have the right 
libc6 (2.3.1 or above) - which means I should 
download libc6, libc6-dev and probably some other 
packages too... I wouldn't like to upgrade unless 
necessary, especially as it is not in stable yet.
 [2003-06-24 09:41 UTC] hholzgra@php.net
please try to change ext/skeleton/create_stubs line 156 from

    gobble("\\]* *)")

to

   gobble("\\]* *\\)")

 [2003-06-25 00:40 UTC] anzenews at volja dot net
OK, that works! :)

Thanks for help, really appreciate it!

Enjoy!
 [2003-06-25 06:06 UTC] hholzgra@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 17:01:27 2024 UTC