Share

SWIG

Tracker: Bugs

5 swig generated PHP5 module causes "already destroyed" error - ID: 1634295
Last Update: Comment added ( tkurosaka )

% swig -php5 -make -withc "example.c" example.i
Edit makefile to:
* Change `php -r '{....}'` to $(shell php -r '....}')
* Change $(PROG) to $(MODULE)
* Add -DZTS, -pthread, etc.
(See the other php bug)

Copy example.so to the PHP5 module directory.

$ php -r 'dl("example.so"); echo gcd(27, 9) . "\n";'
9
/phpdev/php-5.2.0/Zend/zend_hash.c(679) : ht=0x88163e0 is already
destroyed


Teruhiko Kurosaka ( tkurosaka ) - 2007-01-12 19:28

5

Deleted

Duplicate

kruland

php

None

Public


Comment ( 1 )

Date: 2007-01-12 19:30
Sender: tkurosaka


Sorry, this is a dup made by mistake. I'll delete it.



Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2007-01-12 19:30 tkurosaka
resolution_id None 2007-01-12 19:30 tkurosaka
close_date - 2007-01-12 19:30 tkurosaka