Re: just another beginner
| From: | Hadi Aminzadeh | Date: | Mon, 10 Nov 2008 07:39:15 +0000 |
| Subject: | Re: just another beginner | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5868@lists.php.net to get a copy of this message | ||
Hi Dear,
I want to write a new extension for jalali date ( a date format that use in
some country)
But I have some problem.
I use CodeGen_PECL.
1 - when I add this lines to my xml
<maintainer>
<user>ha60</user>
<name>Aminzadeh</name>
<email>ha_60@yahoo.com</email>
<role>lead</role>
</maintainer>
I receive this error :
Fatal error: Call to a member function setUser() on a non-object in
/usr/share/php/CodeGen/ExtensionParser.php on line 259
But when I remove it its work fine. where is my problem?
2 - when I compile my extension its add to phpinfo() but when I use this
function (hello_word) in my php file a save dialog will appear
my code is:
PHP_FUNCTION(hello_word)
{
if (ZEND_NUM_ARGS()>0) {
WRONG_PARAM_COUNT;
}
print("hello Word!");
RETURN_FALSE;
}
tanks for your help.
Best Regards,
Aminzadeh