Testing PHP Extensions — what makes a good test

By @flijten - http://www.freeklijten.nl/home/2015/03/22/Testing-PHP-extensions-what-makes-a-good-test

Be the first to comment - What do you think?  Posted by admin - March 23, 2015 at 10:20 am

Categories: PECL PHP Extensions   Tags:

The PHP Internals Book

This sure looks like required read­ing for any­one look­ing at supporting/writing PHP exten­sions: http://www.phpinternalsbook.com/.

Be the first to comment - What do you think?  Posted by admin - March 17, 2015 at 2:39 pm

Categories: PECL PHP Extensions   Tags:

List of Questions to Ask When the Time Comes

Ques­tions I Really Need to Ask Some­one Else

1. Multi-platform test­ing. The bug list is writ­ten against var­i­ous dif­fer­ent oper­at­ing sys­tems and ver­sions (of course). I’ve never done a Win­dows build, so that’s surely a blind spot. How might I best test exten­sions in a Win­dows envi­ron­ment? Do we have procedures/setups for test­ing mul­ti­ple plat­forms? For the record, I run Win­dows 7 on my Mac under VMWare Fusion. I may have bet­ter infor­ma­tion once I’ve installed and played with the Ras­mus build.

2. I have not yet found the pecl-specific IRC chan­nel. I’ve found #php­men­tor­ing and #gophp7-ext. Ah. It’s on Eris Free Net, not Freenode.

Ques­tions I Should Be Able to Answer Myself

Answers to the fol­low­ing should be self evi­dent once I look. These are my reminders to do so.

1. How do I par­tic­i­pate in bug list dis­cus­sions? I would assume that I need to get an account. 

2. How do I update doc­u­men­ta­tion? I would assume that I need to get an account, and it’s likely to be the same account as for bug lists.

3. What mail­ing lists should I get on?

Links to Some of the Answers

Here is a col­lec­tion of links as I catch them. They may well hold answers to above questions.

Read more…

Be the first to comment - What do you think?  Posted by admin - March 16, 2015 at 2:19 pm

Categories: PECL PHP Extensions   Tags:

The PHP PDO Extension

The PDO exten­sion… that might be an inter­est­ing exten­sion to get to know thor­oughly, along with what­ever MySQL dri­ver sits under­neath it. Since where I work is a PHP/MySQL shop with large enter­prise data­base usage, I should think it would be in my company’s best inter­est to have this knowl­edge in-house as well. I had already planned on learn­ing a lot more in the way of MySQL design, tun­ing, and inter­nals. The PHP dri­ver might just be an inter­est­ing place to start.

An excuse to dive back into C-based device dri­ver devel­op­ment and/or sup­port, all in the name of PHP… how cool is that? Nice!

The bug list does appear sub­stan­tial. Book­mark: PHP Bug tracker for PDO and friends.

Be the first to comment - What do you think?  Posted by admin - at 12:11 pm

Categories: PECL PHP Extensions   Tags:

Reaching the Inner Circle: It’s In the Man Page

A gen­er­a­tion ago, the stan­dard answer to any Unix ques­tion was “read the man page.” Before I explain how this relates to learn­ing PHP Inter­nals and about PHP Exten­sions, I should explain what a man page even is! The old school answer would be, “read the ‘man’ man page.” These days it’s explained on Wikipedia: http://en.wikipedia.org/wiki/Man_page.

On Unix, and to a large extent Linux, most every­thing is doc­u­mented in the man pages: Com­mand usage, library usage, sys­tem calls, header files, util­i­ties, even (even­tu­ally) some tutorials.

Unix (and there­fore Linux) and arro­gance go together. Larry Wall, the cre­ator of Perl, calls it hubris, and declares it to be a manda­tory trait. Time after time, the stan­dard (and cor­rect) answer is “It’s in the man page.” It may take you sev­eral days to fig­ure out which man page to go read; that fact was both assumed and expected. No self respect­ing Unix guru will waste his or her time with some­one inca­pable of fig­ur­ing out which man page to read; and all Unix gurus are self respecting.

Dil­bert, 20 years ago, learned it this way: http://dilbert.com/strip/1995–06-24. The comic is so spot-on that the stan­dard mod­ern text on deep-down Unix pro­gram­ming has the comic on the book’s front cover (see above right)! There’s a third edi­tion out, so if you fol­low my link, be sure to flip to the more recent edi­tion before you buy the book. If you need to pro­gram with pthreads, named pipes, and other Unix/Linux sys­tem calls, you’ll be famil­iar with that book.

So what does this have to do with PHP Exten­sions? Bear with me; we’re get­ting there.
Read more…

Be the first to comment - What do you think?  Posted by admin - at 10:00 am

Categories: PECL PHP Extensions   Tags:

PHP Extensions Slide Deck

The slide deck is here: http://www.slideshare.net/auroraeosrose/php-extensions-45834933. Eliz­a­beth Smith’s talk page for the event is here: https://joind.in/talk/view/13836.

On the right hand col­umn of the slide share page is a list of related slide decks, with sev­eral on PHP exten­sions and PHP internals.

Be the first to comment - What do you think?  Posted by admin - at 6:35 am

Categories: PECL PHP Extensions   Tags:

Reflections on Midwest PHP Conference 2015: Software Craftsmanship

This was my first-ever PHP con­fer­ence, gath­er­ing, or meet-up. I intended to keep an open mind and hope for the best. For­tu­nately, I was pleas­antly surprised.

For the past many months, I’ve been reflect­ing on “soft­ware crafts­man­ship.” I’ve stud­ied numer­ous ways to improve my prac­tice of the art. Does “soft­ware crafts­man­ship” even apply to the PHP world? The pub­lished books gen­er­ally refer to the Java world, for exam­ple, the Clean Code series by “Uncle Bob” Martin.

In the PHP world, where does Soft­ware Crafts­man­ship or a Pur­suit of Excel­lence fit in the par­a­digm of get­ting the code into pro­duc­tion? What’s impor­tant? What is not?

I’m com­ing to real­ize that I am not ask­ing the right question.

Read more…

Be the first to comment - What do you think?  Posted by admin - March 15, 2015 at 8:32 pm

Categories: PECL PHP Extensions   Tags:

Collaborating with Family Tree Maker

Oth­ers may have a bet­ter solu­tion to this issue. I wel­come sug­ges­tions. Mean­while, here is my plan.

I have a Fam­ily Tree Maker data­base. It’s inside my copy of Fam­ily Tree Maker for Win­dows 2014. It’s also linked to an online tree at Ancestry.com.

When I get updates from other peo­ple, the nor­mal pro­ce­dure is to re-type the infor­ma­tion. Merg­ing infor­ma­tion is ALWAYS a bad thing. How­ever, I’m now faced with a dif­fer­ent sit­u­a­tion: Tran­scrib­ing our paper and man­u­script infor­ma­tion into Fam­ily Tree Maker. Read more…

Be the first to comment - What do you think?  Posted by admin - January 2, 2015 at 2:20 pm

Categories: Genealogy Webmaster's Journal   Tags:

Starting a Family Tree

You have seen the Ancestry.com com­mer­cials about explor­ing your iden­tity. Great! Where to start?

At this point you need to con­sider your cus­tomer require­ments, where YOU are the cus­tomer. What’s your level of inter­est? How deeply do you want to dive? Do you want to con­nect with other rel­a­tives’ infor­ma­tion? Read more…

Be the first to comment - What do you think?  Posted by admin - at 11:20 am

Categories: Genealogy Webmaster's Journal   Tags:

Data Design Proposal

This is a con­sol­i­da­tion of the “Sec­ond Design” posts into a sin­gle doc­u­ment. It’s the same text, just put together into a sin­gle page for con­ve­nience. If I do any edit­ing, it will be to THIS document.

Read more…

Be the first to comment - What do you think?  Posted by admin - June 29, 2014 at 2:21 pm

Categories: Data Design   Tags:

Next Page »